您好,我目前正在学习matplotlib。我刚刚了解了数字和add_axes()
方法。对于add_axes()
方法,传入一个包含[left, bottom, width, height]
的列表
显然,width
和height
控制图形的宽度和高度,但是left
和bottom
做什么呢
这是我的add_axes()
->axes = figure.add_axes([0.1, 0.1, 0.6, 0.6])
我一直在改变left
和bottom
,但绘图上没有任何变化。我阅读了关于figure.add_axes()
的matplotlib文档,但它没有解释left
和bottom
做了什么
谢谢大家!
mpl.figure.add_轴的说明和示例
将轴添加到当前图形或指定轴。
从matplotlib mpl.figure.ad_axes method documentation:
rect:浮点数的顺序。新轴的尺寸[左、下、宽、高]。所有数量均以图形宽度和高度的分数表示
Here is a quick google search
以下是一个例子:
相关问题 更多 >
编程相关推荐