散景劇情具有相等軸
我創建與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