Locking aspect ratio to 1

Is there a way to force the x and y axes to have the same scale in bokeh? This would be equivalent to calling axis(‘equal’) in matplotlib.

Alex,

We want to have more fleshed out support for automating this later, but for the time being, the best you can probably do is to make sure to set plot_width and plot_height to be the same, then provide a border value large enough to accommodate all you axes, titles, etc.

from bokeh.plotting import *
output_file('/tmp/foo.html')
figure(border_fill="#aa8888", plot_width=500, plot_height=500, border=100, title="My Plot")
line([1,2], [3,4])
show()

···

--
Bryan Van de Ven
Continuum Analytics

On May 22, 2014 at 12:30:48 PM, [email protected]com ([email protected]) wrote:

Is there a way to force the x and y axes to have the same scale in bokeh?
This would be equivalent to calling axis('equal') in matplotlib.

--
You received this message because you are subscribed to the Google Groups "Bokeh Discussion
- Public" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit https://groups.google.com/a/continuum.io/d/msgid/bokeh/23afd5c6-7876-4c9a-bcca-51c06240f0e6%40continuum.io.
For more options, visit https://groups.google.com/a/continuum.io/d/optout.