Vertical lines on timeseries

Is it possible to draw a vertical line at a particular point in time on a time-series chart? Seems like this should be trivial given the power of Bokeh but I can’t seem to figure it out.

I agree - this is a feature I have been struggling to find also. I wish to plot error bars on time series data, and as of yet, I can’t see an example of how to do this effectively (other than by creating a path object and plotting a line on top of it, which seems sub-optimal).

Is there a way to do error bars on TS data that we are missing?

···

On 30 Jan 2015, at 19:56, Jason Mackay [email protected] wrote:

Is it possible to draw a vertical line at a particular point in time on a time-series chart? Seems like this should be trivial given the power of Bokeh but I can’t seem to figure it out.

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/2d7564e8-35b0-428a-9f03-aef05b1a277d%40continuum.io.

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

Hi guys,

While it is definitely possible to draw this by hand, an "hline" or "vline" annotation is one of those many small features that would be extremely nice, but that just has not happened to have been gotten to. There is in fact an open issued already for this:

  Support horizontal or vertical spans (similar to aaxhspan/axvspan in Matplotlib) · Issue #1238 · bokeh/bokeh · GitHub

If anyone is interested in pitching in to Bokeh dev, this would actually be a great small chunk of work to get started on, and we would definitely be able to help anyone who was interested work through the task. Otherwise, it's now in the "short-term" milestone, but... lots of things are in that milestone. :slight_smile:

Regarding what to do today: either ray or line should work, or rect or quad if you want something "wider". You will just have to set the coordinates "by hand" for now.

Thanks,

Bryan

···

On Jan 30, 2015, at 1:11 PM, Ben Laken <[email protected]> wrote:

I agree - this is a feature I have been struggling to find also. I wish to plot error bars on time series data, and as of yet, I can’t see an example of how to do this effectively (other than by creating a path object and plotting a line on top of it, which seems sub-optimal).

Is there a way to do error bars on TS data that we are missing?

On 30 Jan 2015, at 19:56, Jason Mackay <[email protected]> wrote:

Is it possible to draw a vertical line at a particular point in time on a time-series chart? Seems like this should be trivial given the power of Bokeh but I can't seem to figure it out.

--
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/2d7564e8-35b0-428a-9f03-aef05b1a277d%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/204BCC86-5428-4F73-90DE-298DE7139DC6%40gmail.com\.
For more options, visit https://groups.google.com/a/continuum.io/d/optout\.

Thanks for the quick reply Bryan, I check out the open issue you linked, and at least for what I had in mind (an error bar feature), that doesn’t seem like it would work. Ideally I was thinking of something more like http://matplotlib.org/1.2.1/examples/pylab_examples/errorbar_demo.html

Do you think the time series will eventually support such a feature?

Thanks,

—Ben

···

On 30 Jan 2015, at 20:19, Bryan Van de Ven [email protected] wrote:

Hi guys,

While it is definitely possible to draw this by hand, an “hline” or “vline” annotation is one of those many small features that would be extremely nice, but that just has not happened to have been gotten to. There is in fact an open issued already for this:

https://github.com/bokeh/bokeh/issues/1238

If anyone is interested in pitching in to Bokeh dev, this would actually be a great small chunk of work to get started on, and we would definitely be able to help anyone who was interested work through the task. Otherwise, it’s now in the “short-term” milestone, but… lots of things are in that milestone. :slight_smile:

Regarding what to do today: either ray or line should work, or rect or quad if you want something “wider”. You will just have to set the coordinates “by hand” for now.

Thanks,

Bryan

On Jan 30, 2015, at 1:11 PM, Ben Laken [email protected] wrote:

I agree - this is a feature I have been struggling to find also. I wish to plot error bars on time series data, and as of yet, I can’t see an example of how to do this effectively (other than by creating a path object and plotting a line on top of it, which seems sub-optimal).

Is there a way to do error bars on TS data that we are missing?

On 30 Jan 2015, at 19:56, Jason Mackay [email protected] wrote:

Is it possible to draw a vertical line at a particular point in time on a time-series chart? Seems like this should be trivial given the power of Bokeh but I can’t seem to figure it out.


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/2d7564e8-35b0-428a-9f03-aef05b1a277d%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/204BCC86-5428-4F73-90DE-298DE7139DC6%40gmail.com.
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/A9F1499E-5A77-49D9-B12E-461221D30EE1%40continuum.io.
For more options, visit https://groups.google.com/a/continuum.io/d/optout.

Error bars are exactly the sort of feature that should be "easy to add" at the plotting.py interface, and "built in" to the higher level bokeh.charts interface. As I said it would not be a huge undertaking, I would love to help a new contributor get started working on something like this.

Bryan

···

On Jan 30, 2015, at 1:26 PM, Ben Laken <[email protected]> wrote:

Thanks for the quick reply Bryan, I check out the open issue you linked, and at least for what I had in mind (an error bar feature), that doesn’t seem like it would work. Ideally I was thinking of something more like pylab_examples example code: errorbar_demo.py — Matplotlib 1.2.1 documentation

Do you think the time series will eventually support such a feature?

Thanks,
  —Ben

On 30 Jan 2015, at 20:19, Bryan Van de Ven <[email protected]> wrote:

Hi guys,

While it is definitely possible to draw this by hand, an "hline" or "vline" annotation is one of those many small features that would be extremely nice, but that just has not happened to have been gotten to. There is in fact an open issued already for this:

  Support horizontal or vertical spans (similar to aaxhspan/axvspan in Matplotlib) · Issue #1238 · bokeh/bokeh · GitHub

If anyone is interested in pitching in to Bokeh dev, this would actually be a great small chunk of work to get started on, and we would definitely be able to help anyone who was interested work through the task. Otherwise, it's now in the "short-term" milestone, but... lots of things are in that milestone. :slight_smile:

Regarding what to do today: either ray or line should work, or rect or quad if you want something "wider". You will just have to set the coordinates "by hand" for now.

Thanks,

Bryan

On Jan 30, 2015, at 1:11 PM, Ben Laken <[email protected]> wrote:

I agree - this is a feature I have been struggling to find also. I wish to plot error bars on time series data, and as of yet, I can’t see an example of how to do this effectively (other than by creating a path object and plotting a line on top of it, which seems sub-optimal).

Is there a way to do error bars on TS data that we are missing?

On 30 Jan 2015, at 19:56, Jason Mackay <[email protected]> wrote:

Is it possible to draw a vertical line at a particular point in time on a time-series chart? Seems like this should be trivial given the power of Bokeh but I can't seem to figure it out.

--
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/2d7564e8-35b0-428a-9f03-aef05b1a277d%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/204BCC86-5428-4F73-90DE-298DE7139DC6%40gmail.com\.
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/A9F1499E-5A77-49D9-B12E-461221D30EE1%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/2AB2439A-BC10-417D-A074-6B765B628055%40gmail.com\.
For more options, visit https://groups.google.com/a/continuum.io/d/optout\.

FWIW I did try ray but I couldn’t find a good example. It seemed to crash when I passed in a pandas.tslib.Timestamp as the x coordinate.

···

On Friday, January 30, 2015 at 11:19:16 AM UTC-8, Bryan Van de ven wrote:

Hi guys,

While it is definitely possible to draw this by hand, an “hline” or “vline” annotation is one of those many small features that would be extremely nice, but that just has not happened to have been gotten to. There is in fact an open issued already for this:

    [https://github.com/bokeh/bokeh/issues/1238](https://github.com/bokeh/bokeh/issues/1238)    

If anyone is interested in pitching in to Bokeh dev, this would actually be a great small chunk of work to get started on, and we would definitely be able to help anyone who was interested work through the task. Otherwise, it’s now in the “short-term” milestone, but… lots of things are in that milestone. :slight_smile:

Regarding what to do today: either ray or line should work, or rect or quad if you want something “wider”. You will just have to set the coordinates “by hand” for now.

Thanks,

Bryan

On Jan 30, 2015, at 1:11 PM, Ben Laken [email protected] wrote:

I agree - this is a feature I have been struggling to find also. I wish to plot error bars on time series data, and as of yet, I can’t see an example of how to do this effectively (other than by creating a path object and plotting a line on top of it, which seems sub-optimal).

Is there a way to do error bars on TS data that we are missing?

On 30 Jan 2015, at 19:56, Jason Mackay [email protected] wrote:

Is it possible to draw a vertical line at a particular point in time on a time-series chart? Seems like this should be trivial given the power of Bokeh but I can’t seem to figure it out.


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/2d7564e8-35b0-428a-9f03-aef05b1a277d%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/204BCC86-5428-4F73-90DE-298DE7139DC6%40gmail.com.

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

The current encoder may not handle tslib.Timestamp (will require investigation). Can you try supplying a different datetime type (np.datetime, etc)?

Bryan

···

On Jan 30, 2015, at 2:05 PM, Jason Mackay <[email protected]> wrote:

FWIW I did try ray but I couldn't find a good example. It seemed to crash when I passed in a pandas.tslib.Timestamp as the x coordinate.

On Friday, January 30, 2015 at 11:19:16 AM UTC-8, Bryan Van de ven wrote:
Hi guys,

While it is definitely possible to draw this by hand, an "hline" or "vline" annotation is one of those many small features that would be extremely nice, but that just has not happened to have been gotten to. There is in fact an open issued already for this:

        Support horizontal or vertical spans (similar to aaxhspan/axvspan in Matplotlib) · Issue #1238 · bokeh/bokeh · GitHub

If anyone is interested in pitching in to Bokeh dev, this would actually be a great small chunk of work to get started on, and we would definitely be able to help anyone who was interested work through the task. Otherwise, it's now in the "short-term" milestone, but... lots of things are in that milestone. :slight_smile:

Regarding what to do today: either ray or line should work, or rect or quad if you want something "wider". You will just have to set the coordinates "by hand" for now.

Thanks,

Bryan

> On Jan 30, 2015, at 1:11 PM, Ben Laken <[email protected]> wrote:
>
> I agree - this is a feature I have been struggling to find also. I wish to plot error bars on time series data, and as of yet, I can’t see an example of how to do this effectively (other than by creating a path object and plotting a line on top of it, which seems sub-optimal).
>
> Is there a way to do error bars on TS data that we are missing?
>
>
>> On 30 Jan 2015, at 19:56, Jason Mackay <[email protected]> wrote:
>>
>> Is it possible to draw a vertical line at a particular point in time on a time-series chart? Seems like this should be trivial given the power of Bokeh but I can't seem to figure it out.
>>
>> --
>> 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/2d7564e8-35b0-428a-9f03-aef05b1a277d%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+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/204BCC86-5428-4F73-90DE-298DE7139DC6%40gmail.com\.
> 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/f6e4f0a4-78d2-41ab-8ed8-6bfb0740d88a%40continuum.io\.
For more options, visit https://groups.google.com/a/continuum.io/d/optout\.

I may not be using this correctly but here is what I tried:
ray(

event, # the time of the event

0, # start on the y=0 axis

90, # 90 degrees = straight up??

500, # some big number to make it go off the viewing area

color = “red”)

It crashed on np.datetime64:

Unexpected column type: <type 'numpy.datetime64'>
···

On Friday, January 30, 2015 at 12:07:29 PM UTC-8, Bryan Van de ven wrote:

The current encoder may not handle tslib.Timestamp (will require investigation). Can you try supplying a different datetime type (np.datetime, etc)?

Bryan

On Jan 30, 2015, at 2:05 PM, Jason Mackay [email protected] wrote:

FWIW I did try ray but I couldn’t find a good example. It seemed to crash when I passed in a pandas.tslib.Timestamp as the x coordinate.

On Friday, January 30, 2015 at 11:19:16 AM UTC-8, Bryan Van de ven wrote:

Hi guys,

While it is definitely possible to draw this by hand, an “hline” or “vline” annotation is one of those many small features that would be extremely nice, but that just has not happened to have been gotten to. There is in fact an open issued already for this:

    [https://github.com/bokeh/bokeh/issues/1238](https://github.com/bokeh/bokeh/issues/1238)    

If anyone is interested in pitching in to Bokeh dev, this would actually be a great small chunk of work to get started on, and we would definitely be able to help anyone who was interested work through the task. Otherwise, it’s now in the “short-term” milestone, but… lots of things are in that milestone. :slight_smile:

Regarding what to do today: either ray or line should work, or rect or quad if you want something “wider”. You will just have to set the coordinates “by hand” for now.

Thanks,

Bryan

On Jan 30, 2015, at 1:11 PM, Ben Laken [email protected] wrote:

I agree - this is a feature I have been struggling to find also. I wish to plot error bars on time series data, and as of yet, I can’t see an example of how to do this effectively (other than by creating a path object and plotting a line on top of it, which seems sub-optimal).

Is there a way to do error bars on TS data that we are missing?

On 30 Jan 2015, at 19:56, Jason Mackay [email protected] wrote:

Is it possible to draw a vertical line at a particular point in time on a time-series chart? Seems like this should be trivial given the power of Bokeh but I can’t seem to figure it out.


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/2d7564e8-35b0-428a-9f03-aef05b1a277d%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/204BCC86-5428-4F73-90DE-298DE7139DC6%40gmail.com.
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/f6e4f0a4-78d2-41ab-8ed8-6bfb0740d88a%40continuum.io.

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

Hmm maybe a bug. Try this?

        ray(
            [event], # NOTE: single element list
            0, # start on the y=0 axis
            90, # 90 degrees = straight up??
            500, # some big number to make it go off the viewing area
            color = "red")

https://github.com/bokeh/bokeh/blob/master/examples/glyphs/iris_splom.py

···

On Jan 30, 2015, at 2:14 PM, Jason Mackay <[email protected]> wrote:

I may not be using this correctly but here is what I tried:
        ray(
            event, # the time of the event
            0, # start on the y=0 axis
            90, # 90 degrees = straight up??
            500, # some big number to make it go off the viewing area
            color = "red")

It crashed on np.datetime64:
Unexpected column type: <type 'numpy.datetime64'>

On Friday, January 30, 2015 at 12:07:29 PM UTC-8, Bryan Van de ven wrote:
The current encoder may not handle tslib.Timestamp (will require investigation). Can you try supplying a different datetime type (np.datetime, etc)?

Bryan

> On Jan 30, 2015, at 2:05 PM, Jason Mackay <[email protected]> wrote:
>
> FWIW I did try ray but I couldn't find a good example. It seemed to crash when I passed in a pandas.tslib.Timestamp as the x coordinate.
>
> On Friday, January 30, 2015 at 11:19:16 AM UTC-8, Bryan Van de ven wrote:
> Hi guys,
>
> While it is definitely possible to draw this by hand, an "hline" or "vline" annotation is one of those many small features that would be extremely nice, but that just has not happened to have been gotten to. There is in fact an open issued already for this:
>
> Support horizontal or vertical spans (similar to aaxhspan/axvspan in Matplotlib) · Issue #1238 · bokeh/bokeh · GitHub
>
> If anyone is interested in pitching in to Bokeh dev, this would actually be a great small chunk of work to get started on, and we would definitely be able to help anyone who was interested work through the task. Otherwise, it's now in the "short-term" milestone, but... lots of things are in that milestone. :slight_smile:
>
> Regarding what to do today: either ray or line should work, or rect or quad if you want something "wider". You will just have to set the coordinates "by hand" for now.
>
> Thanks,
>
> Bryan
>
> > On Jan 30, 2015, at 1:11 PM, Ben Laken <[email protected]> wrote:
> >
> > I agree - this is a feature I have been struggling to find also. I wish to plot error bars on time series data, and as of yet, I can’t see an example of how to do this effectively (other than by creating a path object and plotting a line on top of it, which seems sub-optimal).
> >
> > Is there a way to do error bars on TS data that we are missing?
> >
> >
> >> On 30 Jan 2015, at 19:56, Jason Mackay <[email protected]> wrote:
> >>
> >> Is it possible to draw a vertical line at a particular point in time on a time-series chart? Seems like this should be trivial given the power of Bokeh but I can't seem to figure it out.
> >>
> >> --
> >> 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/2d7564e8-35b0-428a-9f03-aef05b1a277d%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+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/204BCC86-5428-4F73-90DE-298DE7139DC6%40gmail.com\.
> > 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+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/f6e4f0a4-78d2-41ab-8ed8-6bfb0740d88a%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/92503676-13d7-4465-945e-2979bf6f4562%40continuum.io\.
For more options, visit https://groups.google.com/a/continuum.io/d/optout\.

Okay that actual drew something! After a little tweaking of the parameters I got it to work.

Final code is as follows, this draws two rays to get the line both above and below the axis. I had several things wrong above including the units for the angle and the order of parameters. Also it appears that setting the length to 0 makes it infinite (handy!). Some docs or a sample using the ray API would be very useful (looks like you guys are on the case for api docs already based on another thread here in the group).

Thanks a ton for your help Bryan!

ray(

[event],

0, # on the x-axis

0, # length = infinite

math.pi / 2, # in radians

color = “red”)

ray(

[event],

0,

0,

3 * math.pi / 2,

color = “red”)

···

On Friday, January 30, 2015 at 12:16:56 PM UTC-8, Bryan Van de ven wrote:

Hmm maybe a bug. Try this?

    ray(

        [event],  # NOTE: single element list

        0,         # start on the y=0 axis

        90,       # 90 degrees = straight up??

        500,     # some big number to make it go off the viewing area

        color = "red")

https://github.com/bokeh/bokeh/blob/master/examples/glyphs/iris_splom.py

On Jan 30, 2015, at 2:14 PM, Jason Mackay [email protected] wrote:

I may not be using this correctly but here is what I tried:

    ray(
        event,  # the time of the event
        0,         # start on the y=0 axis
        90,       # 90 degrees = straight up??
        500,     # some big number to make it go off the viewing area
        color = "red")

It crashed on np.datetime64:

Unexpected column type: <type ‘numpy.datetime64’>

On Friday, January 30, 2015 at 12:07:29 PM UTC-8, Bryan Van de ven wrote:

The current encoder may not handle tslib.Timestamp (will require investigation). Can you try supplying a different datetime type (np.datetime, etc)?

Bryan

On Jan 30, 2015, at 2:05 PM, Jason Mackay [email protected] wrote:

FWIW I did try ray but I couldn’t find a good example. It seemed to crash when I passed in a pandas.tslib.Timestamp as the x coordinate.

On Friday, January 30, 2015 at 11:19:16 AM UTC-8, Bryan Van de ven wrote:
Hi guys,

While it is definitely possible to draw this by hand, an “hline” or “vline” annotation is one of those many small features that would be extremely nice, but that just has not happened to have been gotten to. There is in fact an open issued already for this:

    [https://github.com/bokeh/bokeh/issues/1238](https://github.com/bokeh/bokeh/issues/1238)    

If anyone is interested in pitching in to Bokeh dev, this would actually be a great small chunk of work to get started on, and we would definitely be able to help anyone who was interested work through the task. Otherwise, it’s now in the “short-term” milestone, but… lots of things are in that milestone. :slight_smile:

Regarding what to do today: either ray or line should work, or rect or quad if you want something “wider”. You will just have to set the coordinates “by hand” for now.

Thanks,

Bryan

On Jan 30, 2015, at 1:11 PM, Ben Laken [email protected] wrote:

I agree - this is a feature I have been struggling to find also. I wish to plot error bars on time series data, and as of yet, I can’t see an example of how to do this effectively (other than by creating a path object and plotting a line on top of it, which seems sub-optimal).

Is there a way to do error bars on TS data that we are missing?

On 30 Jan 2015, at 19:56, Jason Mackay [email protected] wrote:

Is it possible to draw a vertical line at a particular point in time on a time-series chart? Seems like this should be trivial given the power of Bokeh but I can’t seem to figure it out.


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/2d7564e8-35b0-428a-9f03-aef05b1a277d%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/204BCC86-5428-4F73-90DE-298DE7139DC6%40gmail.com.
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/f6e4f0a4-78d2-41ab-8ed8-6bfb0740d88a%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/92503676-13d7-4465-945e-2979bf6f4562%40continuum.io.

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

Hi!! I have seen that the ticket is closed and the feature was released but I still cannot find how to add a vertical line in the x axis (on Today).

···

On Friday, 30 January 2015 18:56:30 UTC, Jason Mackay wrote:

Is it possible to draw a vertical line at a particular point in time on a time-series chart? Seems like this should be trivial given the power of Bokeh but I can’t seem to figure it out.

Do you need help or have any questions? Drop us a line at [email protected] or call us on 0330 900 1001

Like us on Facebook | Follow us on Twitter | Find us on LinkedIn

Disclaimer:

This email and any attachments are confidential and may contain legally privilege information. If you are not the intended recipient, please email or telephone the sender immediately and delete this message from your system. Do not copy, distribute, disclose or otherwise use this email or any attachments. You should carry out your own virus checks before opening any attachment. Tempus Energy Limited accepts no liability for any loss or damage which may be caused by software viruses.