I’m kind of clueless how to use the DatetimeTickFormatter.
So far I have a Dataframe with a column of integers which should represent seconds.
When I set the xaxis type to ‘datetime’ I get milliseconds [ms].
Is there an option to show seconds [s] instead of milliseconds [ms]? Furthermore my most prefered option would be to convert the seconds to a min:sec format. Is this possible?
Do you have a sample of the date/secondss. It will depend on the object and format you have are using. If you are using a list of datetime objects, they will need to have an actual date corresponding to it and seconds specified in the object. The Datetimetickformatter can adjust the format the dates. If you supply a reproducible example, it would be easier to help you. tThe x_axis_type refers to datetime objects.
···
On Tuesday, February 28, 2017 at 10:03:01 AM UTC-5, C wrote:
Hello,
I’m kind of clueless how to use the DatetimeTickFormatter.
So far I have a Dataframe with a column of integers which should represent seconds.
When I set the xaxis type to ‘datetime’ I get milliseconds [ms].
Is there an option to show seconds [s] instead of milliseconds [ms]? Furthermore my most prefered option would be to convert the seconds to a min:sec format. Is this possible?
so I finally got the document which I have to work with. It contains strings which represent milliseconds. I converteted them into a min:sec format.
This is the code I have so far. When I try to run it it gives me the following error:
AttributeError: unexpected attribute 'y_axis_type' to Chart, similar attributes are y_mapper_type
Do you have a sample of the date/secondss. It will depend on the object and format you have are using. If you are using a list of datetime objects, they will need to have an actual date corresponding to it and seconds specified in the object. The Datetimetickformatter can adjust the format the dates. If you supply a reproducible example, it would be easier to help you. tThe x_axis_type refers to datetime objects.
On Tuesday, February 28, 2017 at 10:03:01 AM UTC-5, C wrote:
Hello,
I’m kind of clueless how to use the DatetimeTickFormatter.
So far I have a Dataframe with a column of integers which should represent seconds.
When I set the xaxis type to ‘datetime’ I get milliseconds [ms].
Is there an option to show seconds [s] instead of milliseconds [ms]? Furthermore my most prefered option would be to convert the seconds to a min:sec format. Is this possible?
Best regards,
Charlotte
–
You received this message because you are subscribed to a topic in the Google Groups “Bokeh Discussion - Public” group.