On May 12, 2016, at 9:57 AM, Sarah Bird - Continuum <sbird@continuum.io> wrote:
Hi Jim,
First-up I didn't realize you were in the notebook. I had assumed you're working with the server.
I only really work in the notebook for prototyping so I'm no expert (for example I'm not really sure about how best to use push_notebook), but the main thing that's springing to mind.
What about just sticking with DataRange1d and then switching between setting start=3 | end=6 (or whatever numbers) and start=None | end=None - which will cause DataRange1d to use the auto values?
The other thing I'd say is that I always create a new/seperate plot for every one I'm viewing. So you may want a "create_plot" method that returns a new plot if you want lots of copies of the sample plot.
If this doesn't help, if may be helpful to give us something more concrete: I tried this, execpted x, but got y.
Best,
Bird
On 5/11/16 6:16 PM, Jim Sharpe wrote:
Hi Sarah,
Thanks much for the helpful reply. That was exactly the kind of answer that I was hoping for. Unfortunately although that solution does appear to reset the scaling behavior back to automatic, I still am having trouble getting it to take effect on graphs that are currently displayed. The attached notebook demonstrates that it is possible to set a new y_range scale and also set it to autoscale, but apparently only for new copies of the graph. I thought this might be similar to an issue regarding updating Bokeh table data, so I tried adding the figure to curdoc, but that didn't help. Do you have any idea how to modify the scale of a currently displayed graph?
On Wednesday, May 11, 2016 at 1:00:27 PM UTC-6, Sarah Bird wrote:
I don't know if this would work, but the first thing that I would try would be to set p.y_range = DataRange1d() (which is the auto-scaling type of datarange).
Best,
Bird
On 5/11/16 11:21 AM, Jim Sharpe wrote:
I have an application where there are a bunch of graphs displayed with each initially using the default y scaling sets the y scale to match the data.
I can toggle that behavior off and set all the charts to use the same scale by setting the y_range on each of the figures. But now I want the option of going back to the original scaling behavior.
Is it possible to "remove" the y_range that I set or some other way to have the figure go back to automatically scaling the vertical axis (short of creating a whole new set of figures)?
Note that I don't want to set a new/different y_range, but have each figure again calculate it.
--
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+un...@continuum.io.
To post to this group, send email to bo...@continuum.io.
To view this discussion on the web visit https://groups.google.com/a/continuum.io/d/msgid/bokeh/1f1c8372-dd25-42cd-b9e0-e30d61de4a1c%40continuum.io\.
For more options, visit https://groups.google.com/a/continuum.io/d/optout\.
--
Sarah Bird
Developer, Bokeh
--
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/90b18d26-92de-4cd0-8dc1-63e010b82ab0%40continuum.io\.
For more options, visit https://groups.google.com/a/continuum.io/d/optout\.
--
Sarah Bird
Developer, Bokeh
--
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/c695cde8-7eac-3b48-e6c8-f1fe3b7c3d84%40continuum.io\.
For more options, visit https://groups.google.com/a/continuum.io/d/optout\.