Setting user defined date range

Is it possible to set the range for a time series data? I’ve tried converting the start and end datetimes to int/float as well.
For example,

curplot().x_range = Range1d(start=start_date, end=end_date)

I’ve also tried,

curplot().x_range.start = start_date
curplot().x_range.end = end_date

Salil

Hi Salil,

You can set the range with a Range1d object, although you will have to coerce your datetime instances to milliseconds. Cells [3] and [9] in this notebook should explain the method in context.

We do have an open issue to decide how to best implement this going forward, so please feel free to add your input.

Thanks!

Karan

···

On Thu, May 22, 2014 at 12:55 PM, [email protected] wrote:

Is it possible to set the range for a time series data? I’ve tried converting the start and end datetimes to int/float as well.
For example,

curplot().x_range = Range1d(start=start_date, end=end_date)

I’ve also tried,

curplot().x_range.start = start_date
curplot().x_range.end = end_date

Salil

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/29aca71e-08c0-49a2-9d33-a3192fdf1ac1%40continuum.io.

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

Thanks Karan. This works. I will take a look at the issue and hopefully have some suggestions that haven’t already been mentioned.

Salil

···

On Thursday, May 22, 2014 11:21:46 AM UTC-7, Karan Dodia wrote:

Hi Salil,

You can set the range with a Range1d object, although you will have to coerce your datetime instances to milliseconds. Cells [3] and [9] in this notebook should explain the method in context.

We do have an open issue to decide how to best implement this going forward, so please feel free to add your input.

Thanks!

Karan

On Thu, May 22, 2014 at 12:55 PM, [email protected] wrote:

Is it possible to set the range for a time series data? I’ve tried converting the start and end datetimes to int/float as well.
For example,

curplot().x_range = Range1d(start=start_date, end=end_date)

I’ve also tried,

curplot().x_range.start = start_date
curplot().x_range.end = end_date

Salil

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/29aca71e-08c0-49a2-9d33-a3192fdf1ac1%40continuum.io.

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

Thanks Karan. This works. I will take a look at the issue and hopefully have some suggestions that haven’t already been mentioned.

Salil

···

On Thursday, May 22, 2014 11:21:46 AM UTC-7, Karan Dodia wrote:

Hi Salil,

You can set the range with a Range1d object, although you will have to coerce your datetime instances to milliseconds. Cells [3] and [9] in this notebook should explain the method in context.

We do have an open issue to decide how to best implement this going forward, so please feel free to add your input.

Thanks!

Karan

On Thu, May 22, 2014 at 12:55 PM, [email protected] wrote:

Is it possible to set the range for a time series data? I’ve tried converting the start and end datetimes to int/float as well.
For example,

curplot().x_range = Range1d(start=start_date, end=end_date)

I’ve also tried,

curplot().x_range.start = start_date
curplot().x_range.end = end_date

Salil

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/29aca71e-08c0-49a2-9d33-a3192fdf1ac1%40continuum.io.

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