Here are the examples of the python api bokeh.models.tickers.FixedTicker taken from open source projects. By voting up you can indicate which examples are most useful and appropriate.
3 Examples
3
View Source File : axes.py
License : Apache License 2.0
Project Creator : spotify
License : Apache License 2.0
Project Creator : spotify
def set_xaxis_tick_values(self, values):
"""Set x-axis tick values.
Args:
values (list or DatetimeIndex): Values for the axis ticks.
Returns:
Current chart object
"""
self._chart.figure.xaxis.ticker = FixedTicker(ticks=values)
return self._chart
def set_xaxis_tick_format(self, num_format):
3
View Source File : axes.py
License : Apache License 2.0
Project Creator : spotify
License : Apache License 2.0
Project Creator : spotify
def set_yaxis_tick_values(self, values):
"""Set y-axis tick values.
Args:
values (list): Values for the axis ticks.
Returns:
Current chart object
"""
self._chart.figure.yaxis[
self._y_axis_index].ticker = FixedTicker(ticks=values)
return self._chart
def set_yaxis_tick_format(self, num_format):
0
View Source File : axes.py
License : Apache License 2.0
Project Creator : spotify
License : Apache License 2.0
Project Creator : spotify
def set_xaxis_tick_values(self, values):
"""Set x-axis tick values.
Args:
values (list or DatetimeIndex): Values for the axis ticks.
Note:
Values should be a DatetimeIndex or list of
pandas._libs.tslib.Timestamp objects.
We suggest using pd.date_range to generate this list.
e.g. for a range of month start dates in 2018:
pd.date_range('2018-01-01', '2019-01-01', freq='MS')
Returns:
Current chart object
"""
values = self._convert_timestamp_list_to_epoch_ms(values)
self._chart.figure.xaxis.ticker = FixedTicker(ticks=values)
return self._chart
def set_xaxis_tick_format(self, date_format):