bokeh.models.tickers¶
Models for computing good tick locations on different kinds of plots.
-
class
AdaptiveTicker(**kwargs)[source]¶ Bases:
bokeh.models.tickers.ContinuousTickerGenerate “nice” round ticks at any magnitude.
Creates ticks that are “base” multiples of a set of given mantissas. For example, with
base=10andmantissas=[1, 2, 5], the ticker will generate the sequence:..., 0.1, 0.2, 0.5, 1, 2, 5, 10, 20, 50, 100, ...
-
class
BasicTicker(**kwargs)[source]¶ Bases:
bokeh.models.tickers.AdaptiveTickerGenerate ticks on a linear scale.
Note
This class may be renamed to
LinearTickerin the future.
-
class
CategoricalTicker(**kwargs)[source]¶ Bases:
bokeh.models.tickers.TickerGenerate ticks for categorical ranges.
-
class
CompositeTicker(**kwargs)[source]¶ Bases:
bokeh.models.tickers.ContinuousTickerCombine different tickers at different scales.
Uses the
min_intervalandmax_intervalinterval attributes of the tickers to select the appropriate ticker at different scales.
-
class
ContinuousTicker(**kwargs)[source]¶ Bases:
bokeh.models.tickers.TickerA base class for non-categorical ticker types.
ContinuousTickeris not generally useful to instantiate on its own.
-
class
DatetimeTicker(**kwargs)[source]¶ Bases:
bokeh.models.tickers.CompositeTickerGenerate nice ticks across different date and time scales.
-
class
DaysTicker(**kwargs)[source]¶ Bases:
bokeh.models.tickers.SingleIntervalTickerGenerate ticks spaced apart by specific, even multiples of days.
-
class
FixedTicker(**kwargs)[source]¶ Bases:
bokeh.models.tickers.ContinuousTickerGenerate ticks at fixed, explicitly supplied locations.
Note
The
desired_num_ticksproperty is ignored by this Ticker.
-
class
LogTicker(**kwargs)[source]¶ Bases:
bokeh.models.tickers.AdaptiveTickerGenerate ticks on a log scale.
-
class
MonthsTicker(**kwargs)[source]¶ Bases:
bokeh.models.tickers.SingleIntervalTickerGenerate ticks spaced apart by specific, even multiples of months.
-
class
SingleIntervalTicker(**kwargs)[source]¶ Bases:
bokeh.models.tickers.ContinuousTickerGenerate evenly spaced ticks at a fixed interval regardless of scale.
-
class
Ticker(**kwargs)[source]¶ Bases:
bokeh.model.ModelA base class for all ticker types.
Tickeris not generally useful to instantiate on its own.
-
class
YearsTicker(**kwargs)[source]¶ Bases:
bokeh.models.tickers.SingleIntervalTickerGenerate ticks spaced apart even numbers of years.