On Aug 23, 2017, at 11:51, parlane via Bokeh Discussion - Public <[email protected]> wrote:
I am having a similar issue in Bokeh 0.12.6. The following throws "Range FactorRange is incompatible is Scale LinearScale":
from bokeh.plotting import figure, output_file, show
from bokeh.models import FactorRange
factors = ["a", "b", "c", "d", "e", "f", "g", "h"]
x = [50, 40, 65, 10, 25, 37, 80, 60]
output_file("categorical.html")
p = figure()
p.y_range = FactorRange(factors=factors)
p.circle(x, factors, size=15, fill_color="orange", line_color="green", line_width=3)
show(p)
On Tuesday, April 25, 2017 at 7:49:50 AM UTC-7, Divya Mounika Gurram wrote:
To start with, I have created a empty figure and tried to update the figure dynamically when x_range is set. I was able to do it using bokeh 0.12.4 version but after upgrading to 0.12.5, it throws me an error
I was trying to set x range by : plot.x_range.factors = source.data['feature']
feature dynamically changes based on selection through widgets.
Error:
error handling message Message 'PATCH-DOC' (revision 1): AttributeError("unexpected attribute 'factors' to DataRange1d, possible attributes are bounds, callback, default_span, end, flipped, follow, follow_interval, js_event_callbacks, js_property_callbacks, max_interval, min_interval, name, names, range_padding, renderers, start, subscribed_events or tags",)
--
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/52b598e6-b947-4593-8077-86c155ab3612%40continuum.io\.
For more options, visit https://groups.google.com/a/continuum.io/d/optout\.