bokeh.models.axes¶
Guide renderers for various kinds of axes that can be added to Bokeh plots
-
class
Axis(**kwargs)[source]¶ Bases:
bokeh.models.renderers.GuideRendererA base class that defines common properties for all axis types.
Axisis not generally useful to instantiate on its own.-
axis_label¶ property type:
StringA text label for the axis, displayed parallel to the axis rule.
Note
LaTeX notation is not currently supported; please see #647 to track progress or contribute.
-
axis_label_standoff¶ property type:
IntThe distance in pixels that the axis labels should be offset from the tick labels.
-
axis_label_text_alpha¶ property type:
NumberSpecThe text alpha of the axis label.
-
axis_label_text_baseline¶ property type:
Enum(TextBaseline)The text baseline of the axis label.
-
axis_label_text_font_size¶ property type:
FontSizeSpecThe text font size of the axis label.
-
axis_label_text_font_style¶ property type:
Enum(FontStyle)The text font style of the axis label.
-
axis_line_alpha¶ property type:
NumberSpecThe line alpha of the axis line.
-
axis_line_dash¶ property type:
DashPatternThe line dash of the axis line.
-
axis_line_width¶ property type:
NumberSpecThe line width of the axis line.
-
bounds¶ property type:
Either(Auto,Tuple(Float,Float),Tuple(Datetime,Datetime) )Bounds for the rendered axis. If unset, the axis will span the entire plot in the given dimension.
-
formatter¶ property type:
Instance(TickFormatter)A TickFormatter to use for formatting the visual appearance of ticks.
-
major_label_orientation¶ property type:
Either(Enum( Enumeration(horizontal, vertical) ),Float)What direction the major label text should be oriented. If a i number is supplied, the angle of the text is measured from horizontal.
-
major_label_standoff¶ property type:
IntThe distance in pixels that the major tick labels should be offset from the associated ticks.
-
major_label_text_alpha¶ property type:
NumberSpecThe text alpha of the major tick labels.
-
major_label_text_baseline¶ property type:
Enum(TextBaseline)The text baseline of the major tick labels.
-
major_label_text_font_size¶ property type:
FontSizeSpecThe text font size of the major tick labels.
-
major_label_text_font_style¶ property type:
Enum(FontStyle)The text font style of the major tick labels.
-
major_tick_in¶ property type:
IntThe distance in pixels that major ticks should extend into the main plot area.
-
major_tick_line_alpha¶ property type:
NumberSpecThe line alpha of the major ticks.
-
major_tick_line_dash¶ property type:
DashPatternThe line dash of the major ticks.
-
major_tick_line_width¶ property type:
NumberSpecThe line width of the major ticks.
-
major_tick_out¶ property type:
IntThe distance in pixels that major ticks should extend out of the main plot area.
-
minor_tick_in¶ property type:
IntThe distance in pixels that minor ticks should extend into the main plot area.
-
minor_tick_line_alpha¶ property type:
NumberSpecThe line alpha of the minor ticks.
-
minor_tick_line_dash¶ property type:
DashPatternThe line dash of the minor ticks.
-
minor_tick_line_width¶ property type:
NumberSpecThe line width of the minor ticks.
-
minor_tick_out¶ property type:
IntThe distance in pixels that major ticks should extend out of the main plot area.
-
ticker¶ property type:
Instance(Ticker)A Ticker to use for computing locations of axis components.
-
-
class
CategoricalAxis(**kwargs)[source]¶ Bases:
bokeh.models.axes.AxisAn axis that picks evenly spaced tick locations for a collection of categories/factors.
-
class
ContinuousAxis(**kwargs)[source]¶ Bases:
bokeh.models.axes.AxisA base class for all numeric, non-categorical axes types.
ContinuousAxisis not generally useful to instantiate on its own.
-
class
DatetimeAxis(**kwargs)[source]¶ Bases:
bokeh.models.axes.LinearAxisAn LinearAxis that picks nice numbers for tick locations on a datetime scale. Configured with a
DatetimeTickFormatterby default.
-
class
LinearAxis(**kwargs)[source]¶ Bases:
bokeh.models.axes.ContinuousAxisAn axis that picks nice numbers for tick locations on a linear scale. Configured with a
BasicTickFormatterby default.
-
class
LogAxis(**kwargs)[source]¶ Bases:
bokeh.models.axes.ContinuousAxisAn axis that picks nice numbers for tick locations on a log scale. Configured with a
LogTickFormatterby default.