Python MatPlotlib Lesson 2 - Markers - Line - Labels - Titles - Grid

preview_player
Показать описание
Python MatPlotlib Lesson 2 - Markers - Line - Labels - Titles - Grid

- Matplotlib Markers:
-- Markers:
You can use the keyword argument marker to emphasize each point with a specified marker
-- Format Strings fmt:
You can use also use the shortcut string notation parameter to specify the marker.
This parameter is also called fmt, and is written with this syntax:
marker|line|color
-- Marker Size:
You can use the keyword argument markersize or the shorter version, ms to set the size of the markers
-- Marker Color:
You can use the keyword argument markeredgecolor or the shorter mec to set the color of the edge of the markers
--------------------
- Matplotlib Line:
-- Linestyle:
You can use the keyword argument linestyle, or shorter ls, to change the style of the plotted line
-- Shorter Syntax:
The line style can be written in a shorter syntax:
linestyle can be written as ls.
dotted can be written as :.
dashed can be written as --.
-- Line Color:
You can use the keyword argument color or the shorter c to set the color of the line.
-- Line Width:
You can use the keyword argument linewidth or the shorter lw to change the width of the line.

-------------------
- Matplotlib Labels and Title:
- Create Labels for a Plot:
With Pyplot, you can use the xlabel() and ylabel() functions to set a label for the x- and y-axis.
-- Set Font Properties for Title and Labels:
-- Position the Title:
You can use the loc parameter in title() to position the title.
Legal values are: 'left', 'right', and 'center'. Default value is 'center'.
--------------------
- Matplotlib Adding Grid Lines:
-- Add Grid Lines to a Plot:
With Pyplot, you can use the grid() function to add grid lines to the plot.
- Specify Which Grid Lines to Display.
-- Set Line Properties for the Grid:
You can also set the line properties of the grid, like this: grid(color = 'color', linestyle = 'linestyle', linewidth = number).
-----------------------------------------------------------------------------------------------------------------------
Book Link:
Ps Programming Languages
-----------------------------------------------------------------------------------------------------------------------
another Courses:

شرح كتاب Basics Labs for Embedded Systems Using Arduino

Raspberry pi Basic Projects-رازبيري باي

NodeMCU Course (in Arabic)- NodeMCU كورس تعلم شريحة

Microsoft Publisher - الناشر المكتبي

Microsoft Front Page - Lessons مايكروسوفت فرونت بيج

Computer Vision with Python-OpenCV الرؤيا الحاسوبية مع بايثون OpenCV

Measurement LABVIEW LABs

Control LABs with MATLAB

Microcontroller LAB - Arduino Lessons

Adobe InDesign Course - in Arabic كورس اندزاين بالعربي
---------------------------------------------------------------------------------------------------------
Рекомендации по теме