On Feb 13, 2017, at 10:19, C <[email protected]> wrote:
Hey,
thanks for this quick reply!
Now it gives me the following error:
Number property 'y' given invalid value: a
Am Montag, 13. Februar 2017 17:01:36 UTC+1 schrieb Bryan Van de ven:
Hi,
By default, strings are interpreted as column names. This is the best correct thing in the majority of situations, but there are a a few ambiguous cases where it can be ambiguous (basically whenever a string could also be a value). You probably will need to tell Bokeh explicitly that "a" is a value, and not a column name:
from bokeh.core.properties import value
p.triangle(x=x_value, y=value("a"))
Thanks,
Bryan
> On Feb 13, 2017, at 09:54, workmail...@gmail.com wrote:
>
> Hello,
>
> I wondered if its possible to add markers to a figure refering to the catecorical y-axis. This is the example:
>
> from bokeh.plotting import figure, output_file, show
>
>
>
> factors = ["a", "b", "c", "d", "e", "f", "g", "h"]
> x = [50, 40, 65, 10, 25, 37, 80, 60]
>
>
>
> output_file("categorical.html")
>
>
>
> p = figure(y_range=factors)
>
>
>
> p.circle(x, factors, size=15, fill_color="orange", line_color="green", line_width=3)
>
>
>
> show(p)
>
> And I would like to do something like this:
>
> p.triangle(x=x_value, y="a")
>
> so the triangle shows up at the coordinates (x_value,"a")
>
> Best regards,
> Charlotte
>
> --
> 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/65c1e107-9310-412e-b577-992f0d440822%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 [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/fd575e4d-65e6-41af-be5c-af5c9cd16d27%40continuum.io\.
For more options, visit https://groups.google.com/a/continuum.io/d/optout\.