On Apr 22, 2016, at 5:37 AM, Robert Solli <solli.robert@gmail.com> wrote:
A note is that the above is run as a callback on an .on_change trigger in a document hosted by a bokeh server.
2016-04-22 11:58 GMT+02:00 Robert <solli.robert@gmail.com>:
Hi!
After multiplying a line with a constant (several orders of magnitude). I want to add another axis, set the previous line to be invisible and add another line which has the new axis affixed to it.
I try to do this by:
figure_obj.extra_y_ranges = {"add_y": Range1d(start = np.amin(dataset["y"]),
end = np.amax(dataset["y"]))}
figure_obj.add_layout(LogAxis(y_range_name = "add_y", axis_label = dataset["y_unit"]), "right")
line_obj.glyph.line_alpha = 0
new_line_renderer = figure_obj.line("x", "y", source = source_local, line_width = 2,
line_color = getattr(self, attrname+"_"+dataset["sample_element"]+"color"),
legend = dataset["sample_element"],
name = dataset["sample_element"],
y_range_name = "add_y")
Which runs, but does not add an additional axis.
--
You received this message because you are subscribed to a topic in the Google Groups "Bokeh Discussion - Public" group.
To unsubscribe from this topic, visit https://groups.google.com/a/continuum.io/d/topic/bokeh/f0fUiWtyW5I/unsubscribe\.
To unsubscribe from this group and all its topics, 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/9c868041-7b06-4aee-b661-b77424269db6%40continuum.io\.
For more options, visit https://groups.google.com/a/continuum.io/d/optout\.
--
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/CA%2BAkX3_-QxJE8bZTYr_jXdiP98Eou2U-am7e3-nMeoDedHAdUg%40mail.gmail.com\.
For more options, visit https://groups.google.com/a/continuum.io/d/optout\.