☰Read-only archive⌕
Looking for help with Bokeh?

This is a read-only archive. Ask questions and join the conversation on GitHub.

Visit Community Support on GitHub →
Archived discussions · Captured October 28, 2026

Locking aspect ratio to 1

Community Support
Bryan
Bryan

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, alex.flint@gmail.com (alex.flint@gmail.com) 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 bokeh+unsubscribe@continuum.io.
To post to this group, send email to bokeh@continuum.io.
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\.

⌁   Link to post

End of archived discussion · Replies are disabled