散景剧情具有相等轴
我创建与Python
库Bokeh
(见代码)的曲线图。散景剧情具有相等轴
from bokeh.plotting import *
figure()
hold()
rect([1,3], [1,1], [1,0.5], [1,0.5])
patch([0,0,4,4], [2,0,0,2], line_color="black", fill_color=None)
show()
如何可以代表正方形(矩形具有相同的宽度和高度)以相等的轴为与命令axis('equal')
matplotlib?
http://matplotlib.org/examples/pylab_examples/axis_equal_demo.html
我看到改变的情节的宽度和高度或定义轴范围来解决这个问题,但我认为,应该有一个更聪明的替代选项。
注意:我正在使用Python v.2.7.8
和Bokeh v.0.6.1
。
这是一个悬而未决的问题:https://github.com/bokeh/bokeh/issues/474 – bigreddot 2014-11-04 17:11:06
感谢您的链接。我期待着使用一个解决方案。 – Spirou 2014-11-07 12:13:53
请注意@DuCorey关于'match_aspect'的0.12.7 – bigreddot 2017-08-30 14:52:56