绘图模块允许您制作二维和三维绘图。目前,这些绘图是使用matplotlib作为后端呈现的。如果没有matplotlib,也可以使用textback绘制二维图。
表[]列举了本节所用到的plot, plot_parametric, plot3d, plot3d_parametric函数的通用参数及其功能描述。
表[]
title
字符串,标题
xlabel
字符串,x轴坐标,
ylabel
字符串,y轴坐标
legend
布尔类型,显示图例
xscale
{‘linear’,’log’} ,设置x轴范围,
yscale
{‘linear’,’log’},设置y轴范围
axis
布尔类型,显示坐标轴
axis_center
浮点型二元组或{‘center’, ‘auto’}
xlim
浮点型,x轴的极限
yim
浮点型,y轴的极限
aspect_ratio
浮点型二元组或{‘auto’}
autoscale:
布尔类型
margin
0~1之间的浮点数,图边距
Last updated 3 years ago