☰Read-only archive⌕
Looking for help with Bokeh?

This is a read-only archive. Ask questions and join the conversation on GitHub.

Visit Community Support on GitHub →
Archived discussions · Captured October 28, 2026

Setting user defined date range

Community Support
krackerjakk
krackerjakk

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

⌁   Link to post
Karan_Dodia
Karan_Dodia

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, krackerjakk@gmail.com 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 bokeh+unsubscribe@continuum.io.

To post to this group, send email to bokeh@continuum.io.

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.

⌁   Link to post
krackerjakk
krackerjakk

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

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

⌁   Link to post
krackerjakk
krackerjakk

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

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

⌁   Link to post

End of archived discussion · Replies are disabled