matplotlib 學習筆記02:marker標記詳解

本文內容來自於matplotlib官網:matplotlib官網markers資料html

 

This module contains functions to handle markers. Used by both the marker functionality of plot and scatter.api

All possible markers are defined here:ide

該模塊包含處理標記的功能。 用於plot和scatter的這兩個模塊的標記功能。ui

這裏定義了全部可能的標記: this

marker description
"." point
"," pixel
"o" circle
"v" triangle_down
"^" triangle_up
"<" triangle_left
">" triangle_right
"1" tri_down
"2" tri_up
"3" tri_left
"4" tri_right
"8" octagon
"s" square
"p" pentagon
"P" plus (filled)
"*" star
"h" hexagon1
"H" hexagon2
"+" plus
"x" x
"X" x (filled)
"D" diamond
"d" thin_diamond
"|" vline
"_" hline
TICKLEFT tickleft
TICKRIGHT tickright
TICKUP tickup
TICKDOWN tickdown
CARETLEFT caretleft (centered at tip)
CARETRIGHT caretright (centered at tip)
CARETUP caretup (centered at tip)
CARETDOWN caretdown (centered at tip)
CARETLEFTBASE caretleft (centered at base)
CARETRIGHTBASE caretright (centered at base)
CARETUPBASE caretup (centered at base)
"None"" or "" nothing
'$...$' render the string using mathtext.
verts a list of (x, y) pairs used for Path vertices. The center of the marker is located at (0,0) and the size is normalized.
path Path instance.
(numsidesstyleangle)

The marker can also be a tuple (numsidesstyleangle), which will create a custom, regular symbol.spa

numsides:
the number of sides
style:

the style of the regular symbol:code

0
a regular polygon
1
a star-like symbol
2
an asterisk
3
a circle ( numsides and  angle is ignored)
angle:
the angle of rotation of the symbol

 

For backward compatibility, the form (verts, 0) is also accepted, but it is equivalent to just verts for giving a raw set of vertices that define the shape.orm

None is the default which means 'nothing', however this table is referred to from other docs for the valid inputs from marker inputs and in those cases None still means 'default'.htm

爲了向後兼容,表單(verts,0)也被接受,但它只至關於verts,用於給出一組定義形狀的原始頂點。blog

無默認值表示「無」,可是此表從其餘文檔中引用來自標記輸入的有效輸入,在這些狀況下,「無」仍表示「默認」。

 

 

做者:biyoulin

出處:http://www.cnblogs.com/biyoulin/

版權聲明:本文版權歸做者全部,歡迎轉載,但未經做者贊成必須保留此段聲明,且在文章頁面明顯位置給出原文鏈接,不然保留追究法律責任的權利。 

做者:biyoulin 出處:http://www.cnblogs.com/biyoulin/ 版權聲明:本文版權歸做者和博客園共有,歡迎轉載,但未經做者贊成必須保留此段聲明,且在文章頁面明顯位置給出原文鏈接,不然保留追究法律責任的權利。
相關文章
相關標籤/搜索