On Aug 24, 2015, at 10:00 AM, google@django.in-berlin.de wrote:
That works nicely, thanks!
Let's say I want to keep some padding, though, for better optical results. This DataRange1D class in http://bokeh.pydata.org/en/dev/docs/reference/models/ranges.html should come in handy. In fact, I can add this to the left axis easily like this (overwriting the default value, I suppose):
ydr = DataRange1d(range_padding=0.05)
p = figure(title="Double vertical axis example",
x_axis_label='Time (h)', y_axis_label='Temp. (°C)',
y_range=ydr)
But it's not clear where to add the same for the second (right) axis. I've tried in LinearAxis, but no luck. Is that possible, too?
Thanks!
Bryan Van de ven:
So to fix this, you can set the celsius range explicitly so that the initial ranges line up correctly (and the initial ranges are what determines the relative scaling when zooming, e.g). You can do this either by passing
y_range=(0,100)
to the figure function call, or by setting the y_range attribute after the fact:
p.y_range=Range1d(0,100)
--
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/5cad8ac1-ba75-45d9-826e-4e4ca6444d9a%40continuum.io\.
For more options, visit https://groups.google.com/a/continuum.io/d/optout\.