tick_params参数

参数 说明 参数 说明
axis {‘x’, ‘y’, ‘both’}, optional
坐标轴;默认 ‘both’
labelsize float or str
标签大小,可文字 ‘large’
reset bool, default: False
恢复初始设置
zorder float
Tick and label zorder
which {‘major’, ‘minor’, ‘both’}
主、副刻度线;默认 ‘major’
bottom, top, left, right bool
四边是否显示刻度线
direction {‘in’, ‘out’, ‘inout’}
绘图区内侧、外侧和同时
labelbottom, labeltop,
labelleft, labelright
bool
四边是否显示标签
length float
刻度线长度
labelrotation float
标签旋转
width float
刻度线宽度
grid_color color
网格颜色
color color
刻度线颜色
grid_alpha float
网格透明度
labelcolor color
标签颜色
grid_linewidth float
网格线宽度
colors color
标签和刻度线颜色
grid_linestyle str
Any valid ‘.Line2D’ line style spec
pad float
标签和刻度线的距离

你可能感兴趣的:(matplotlib)