interactive glyphs

I have a simple time series plot.

Now I need a layer over it that highlights specific ranges. Glyphs come to mind, something like the following:

fig.quad(top=[10], bottom=[0], left=[0], right=[100], color="#B3DE69", fill_alpha = 0.2)

``

Now the user should be able to add/remove such glyphs and adjust their left and right parameters. The bokeh server should then save these adjustments. BoxEditTool comes to mind, but the functionality I miss is editing left and right parameters. (I know that I can delete and add a glyph to change left/right parameters, but that is not an option, since zooming in and adjusting the left/right parameters is required).

Any way to interactively adjust the left and right parameters? Or completely different approaches to achieve highlighting of specific ranges?

Hi,

0.13 introduced the RangeTool:

  https://bokeh.github.io/blog/2018/6/13/release-0-13-0/

Thanks,

Bryan

···

On Jul 25, 2018, at 03:10, davor <[email protected]> wrote:

I have a simple time series plot.

Now I need a layer over it that highlights specific ranges. Glyphs come to mind, something like the following:

fig.quad(top=[10], bottom=[0], left=[0], right=[100], color="#B3DE69", fill_alpha = 0.2)

Now the user should be able to add/remove such glyphs and adjust their left and right parameters. The bokeh server should then save these adjustments. BoxEditTool comes to mind, but the functionality I miss is editing left and right parameters. (I know that I can delete and add a glyph to change left/right parameters, but that is not an option, since zooming in and adjusting the left/right parameters is required).

Any way to interactively adjust the left and right parameters? Or completely different approaches to achieve highlighting of specific ranges?

--
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/f3b62864-cb18-45c8-8e28-e8204ef335ef%40continuum.io.
For more options, visit https://groups.google.com/a/continuum.io/d/optout.

I must be very lucky today. Thanks Bryan.

Will try it out tomorrow. The manual states that its main use case is to select a range which is to be magnified in an other plot. So I hope I can re-adapt it to my case where I need several ranges specified on a single plot.

···

On Wednesday, 25 July 2018 16:58:31 UTC+2, Bryan Van de ven wrote:

Hi,

0.13 introduced the RangeTool:

    [https://bokeh.github.io/blog/2018/6/13/release-0-13-0/](https://bokeh.github.io/blog/2018/6/13/release-0-13-0/)

Thanks,

Bryan

On Jul 25, 2018, at 03:10, davor [email protected] wrote:

I have a simple time series plot.

Now I need a layer over it that highlights specific ranges. Glyphs come to mind, something like the following:

fig.quad(top=[10], bottom=[0], left=[0], right=[100], color="#B3DE69", fill_alpha = 0.2)

Now the user should be able to add/remove such glyphs and adjust their left and right parameters. The bokeh server should then save these adjustments. BoxEditTool comes to mind, but the functionality I miss is editing left and right parameters. (I know that I can delete and add a glyph to change left/right parameters, but that is not an option, since zooming in and adjusting the left/right parameters is required).

Any way to interactively adjust the left and right parameters? Or completely different approaches to achieve highlighting of specific ranges?


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/f3b62864-cb18-45c8-8e28-e8204ef335ef%40continuum.io.

For more options, visit https://groups.google.com/a/continuum.io/d/optout.

There doesn’t seem to be a corresponding glyph on which the RangeTool could work. So although it looks nice, I don’t think I can use it for my case (adding/removing/adjusting ranges).

Wednesday, 25 July 2018 21:34:06 UTC+2, davor wrote:

···

I must be very lucky today. Thanks Bryan.

Will try it out tomorrow. The manual states that its main use case is to select a range which is to be magnified in an other plot. So I hope I can re-adapt it to my case where I need several ranges specified on a single plot.

On Wednesday, 25 July 2018 16:58:31 UTC+2, Bryan Van de ven wrote:

Hi,

0.13 introduced the RangeTool:

    [https://bokeh.github.io/blog/2018/6/13/release-0-13-0/](https://bokeh.github.io/blog/2018/6/13/release-0-13-0/)

Thanks,

Bryan

On Jul 25, 2018, at 03:10, davor [email protected] wrote:

I have a simple time series plot.

Now I need a layer over it that highlights specific ranges. Glyphs come to mind, something like the following:

fig.quad(top=[10], bottom=[0], left=[0], right=[100], color="#B3DE69", fill_alpha = 0.2)

Now the user should be able to add/remove such glyphs and adjust their left and right parameters. The bokeh server should then save these adjustments. BoxEditTool comes to mind, but the functionality I miss is editing left and right parameters. (I know that I can delete and add a glyph to change left/right parameters, but that is not an option, since zooming in and adjusting the left/right parameters is required).

Any way to interactively adjust the left and right parameters? Or completely different approaches to achieve highlighting of specific ranges?


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/f3b62864-cb18-45c8-8e28-e8204ef335ef%40continuum.io.

For more options, visit https://groups.google.com/a/continuum.io/d/optout.

Hi,

I will be honest and say that I don't understand this statement. The range tool does not function on any glyphs, as the name suggests, the range tool is for updating range objects. However, you could add callbacks on the range objects, and those callbacks could update any glyph however you like. That would be a prototypical usage scenario in my mind. However, it's possible you have use-case requirements that were not considered, i.e. I didn't really have cases with multiple range tools in mind, or with adding/removing range tools either, so it's possible the current range tool is not suitable. It's hard to say without know more about what you are actually trying to accomplish.

Thanks,

Bryan

···

On Jul 30, 2018, at 00:36, davor <[email protected]> wrote:

There doesn't seem to be a corresponding glyph on which the RangeTool could work. So although it looks nice, I don't think I can use it for my case (adding/removing/adjusting ranges).

Wednesday, 25 July 2018 21:34:06 UTC+2, davor wrote:
I must be very lucky today. Thanks Bryan.

Will try it out tomorrow. The manual states that its main use case is to select a range which is to be magnified in an other plot. So I hope I can re-adapt it to my case where I need several ranges specified on a single plot.

On Wednesday, 25 July 2018 16:58:31 UTC+2, Bryan Van de ven wrote:
Hi,

0.13 introduced the RangeTool:

        https://bokeh.github.io/blog/2018/6/13/release-0-13-0/

Thanks,

Bryan

> On Jul 25, 2018, at 03:10, davor <[email protected]> wrote:
>
> I have a simple time series plot.
>
> Now I need a layer over it that highlights specific ranges. Glyphs come to mind, something like the following:
>
> fig.quad(top=[10], bottom=[0], left=[0], right=[100], color="#B3DE69", fill_alpha = 0.2)
>
> Now the user should be able to add/remove such glyphs and adjust their left and right parameters. The bokeh server should then save these adjustments. BoxEditTool comes to mind, but the functionality I miss is editing left and right parameters. (I know that I can delete and add a glyph to change left/right parameters, but that is not an option, since zooming in and adjusting the left/right parameters is required).
>
> Any way to interactively adjust the left and right parameters? Or completely different approaches to achieve highlighting of specific ranges?
>
>
> --
> 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/f3b62864-cb18-45c8-8e28-e8204ef335ef%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+unsubs[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/e09cca96-8c37-4c4d-806a-4362e36131d8%40continuum.io.
For more options, visit https://groups.google.com/a/continuum.io/d/optout.