Matplotlib 线条的属性

属性名

描述

agg_filter

一个过滤器函数,它接受一个 (m, n, 3) 浮点数组和一个 dpi 值,并返回一个 (m, n, 3) 数组和距图像左下角的两个偏移量

alpha

标量或无

animated

布尔

antialiased或aa

布尔

clip_box

Bbox

clip_on

布尔

clip_path

补丁或(路径,变换)或无

color或 c

颜色

dash_capstyle

CapStyle或 {'butt', 'projecting', 'round'}

dash_joinstyle

JoinStyle或 {'miter', 'round', 'bevel'}

dashes

浮动序列(以点为单位的开/关墨水)或(无,无)

data

(2, N) 数组或两个一维数组

drawstyle或 ds

{'default', 'steps', 'steps-pre', 'steps-mid', 'steps-post'},默认值:'default'

figure

Figure

fillstyle

{'full', 'left', 'right', 'bottom', 'top', 'none'}

gapcolor

颜色或无

gid

字符串

in_layout

布尔

label

目的

linestyle或 ls

{'-', '--', '-.', ':', '', (offset, on-off-seq), ...}

linewidth或 lw

漂浮

marker

标记样式字符串,PathMarkerStyle

markeredgecolor或mec

颜色

markeredgewidth或mew

漂浮

markerfacecolor或 mfc

颜色

markerfacecoloralt或 mfcalt

颜色

markersize或毫秒

漂浮

markevery

无或 int 或 (int, int) 或 slice 或 list[int] 或 float 或 (float, float) 或 list[bool]

mouseover

布尔

path_effects

AbstractPathEffect

picker

浮动或可调用[[艺术家,事件],元组[布尔,字典]]

pickradius

未知

rasterized

布尔

sketch_params

(比例:浮动,长度:浮动,随机性:浮动)

snap

布尔或无

solid_capstyle

CapStyle或 {'butt', 'projecting', 'round'}

solid_joinstyle

JoinStyle或 {'miter', 'round', 'bevel'}

transform

未知

url

字符串

visible

布尔

xdata

一维数组

ydata

一维数组

zorder

漂浮

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值