holoviews.mpl Package ¶
mpl
Package
¶
annotation
Module
¶
-
class
holoviews.plotting.mpl.annotation.
AnnotationPlot
( annotation , **params ) [source] ¶ -
Bases:
holoviews.plotting.mpl.element.ElementPlot
AnnotationPlot handles the display of all annotation elements.
-
param Parameter
fontsize
( allow_None=True, constant=False, default=None, instantiate=False, pickle_default_value=True, precedence=None, readonly=False ) - Specifies various fontsizes of the displayed text. Finer control is available by supplying a dictionary where any unmentioned keys reverts to the default sizes, e.g: {‘ticks’:20, ‘title’:15, ‘ylabel’:5, ‘xlabel’:5, ‘legend’:8, ‘legend_title’:13} You can set the fontsize of both ‘ylabel’ and ‘xlabel’ together using the ‘labels’ key.
-
param Boolean
show_title
( allow_None=False, bounds=(0, 1), constant=False, default=True, instantiate=False, pickle_default_value=True, precedence=None, readonly=False ) - Whether to display the plot title.
-
param String
title_format
( allow_None=False, basestring=<class ‘str’>, constant=False, default={label} {group} {dimensions}, instantiate=False, pickle_default_value=True, precedence=None, readonly=False ) - The formatting string for the title of this plot, allows defining a label group separator and dimension labels.
-
param Boolean
normalize
( allow_None=False, bounds=(0, 1), constant=False, default=True, instantiate=False, pickle_default_value=True, precedence=None, readonly=False ) - Whether to compute ranges across all Elements at this level of plotting. Allows selecting normalization at different levels for nested data containers.
-
param Parameter
projection
( allow_None=True, constant=False, default=None, instantiate=False, pickle_default_value=True, precedence=None, readonly=False ) - The projection of the plot axis, default of None is equivalent to 2D plot, ‘3d’ and ‘polar’ are also supported by matplotlib by default. May also supply a custom projection that is either a matplotlib projection type or implements the _as_mpl_axes method.
-
param Number
fig_alpha
( allow_None=False, bounds=(0, 1), constant=False, default=1.0, inclusive_bounds=(True, True), instantiate=False, pickle_default_value=True, precedence=None, readonly=False, softbounds=None, time_dependent=False, time_fn=<Time Time00001> ) - Alpha of the overall figure background.
-
param NumericTuple
fig_bounds
( allow_None=False, constant=False, default=(0.15, 0.15, 0.85, 0.85), instantiate=False, length=4, pickle_default_value=True, precedence=None, readonly=False ) - The bounds of the overall figure as a 4-tuple of the form (left, bottom, right, top), defining the size of the border around the subplots.
-
param Parameter
fig_inches
( allow_None=False, constant=False, default=4, instantiate=False, pickle_default_value=True, precedence=None, readonly=False ) - The overall matplotlib figure size in inches. May be set as an integer in which case it will be used to autocompute a size. Alternatively may be set with an explicit tuple or list, in which case it will be applied directly after being scaled by fig_size. If either the width or height is set to None, it will be computed automatically.
-
param Boolean
fig_latex
( allow_None=False, bounds=(0, 1), constant=False, default=False, instantiate=False, pickle_default_value=True, precedence=None, readonly=False ) - Whether to use LaTeX text in the overall figure.
-
param Dict
fig_rcparams
( allow_None=False, constant=False, default={}, instantiate=True, is_instance=True, pickle_default_value=True, precedence=None, readonly=False ) - matplotlib rc parameters to apply to the overall figure.
-
param Number
fig_size
( allow_None=False, bounds=(1, None), constant=False, default=100.0, inclusive_bounds=(True, True), instantiate=False, pickle_default_value=True, precedence=None, readonly=False, softbounds=None, time_dependent=False, time_fn=<Time Time00001> ) - Size relative to the supplied overall fig_inches in percent.
-
param HookList
initial_hooks
( allow_None=False, bounds=(0, None), constant=False, default=[], instantiate=True, pickle_default_value=True, precedence=None, readonly=False ) - Optional list of hooks called before plotting the data onto the axis. The hook is passed the plot object and the displayed object, other plotting handles can be accessed via plot.handles.
-
param HookList
final_hooks
( allow_None=False, bounds=(0, None), constant=False, default=[], instantiate=True, pickle_default_value=True, precedence=None, readonly=False ) - Optional list of hooks called when finalizing an axis. The hook is passed the plot object and the displayed object, other plotting handles can be accessed via plot.handles.
-
param HookList
finalize_hooks
( allow_None=False, bounds=(0, None), constant=False, default=[], instantiate=True, pickle_default_value=True, precedence=None, readonly=False ) - Optional list of hooks called when finalizing an axis. The hook is passed the plot object and the displayed object, other plotting handles can be accessed via plot.handles.
-
param String
sublabel_format
( allow_None=True, basestring=<class ‘str’>, constant=False, default=None, instantiate=False, pickle_default_value=True, precedence=None, readonly=False ) - Allows labeling the subaxes in each plot with various formatters including {Alpha}, {alpha}, {numeric} and {roman}.
-
param NumericTuple
sublabel_position
( allow_None=False, constant=False, default=(-0.35, 0.85), instantiate=False, length=2, pickle_default_value=True, precedence=None, readonly=False ) - Position relative to the plot for placing the optional subfigure label.
-
param Number
sublabel_size
( allow_None=False, bounds=None, constant=False, default=18, inclusive_bounds=(True, True), instantiate=False, pickle_default_value=True, precedence=None, readonly=False, softbounds=None, time_dependent=False, time_fn=<Time Time00001> ) - Size of optional subfigure label.
-
param Boolean
show_frame
( allow_None=False, bounds=(0, 1), constant=False, default=False, instantiate=False, pickle_default_value=True, precedence=None, readonly=False ) - Whether or not to show a complete frame around the plot.
-
param Boolean
apply_ranges
( allow_None=False, bounds=(0, 1), constant=False, default=True, instantiate=False, pickle_default_value=True, precedence=None, readonly=False ) - Whether to compute the plot bounds from the data itself.
-
param Boolean
apply_extents
( allow_None=False, bounds=(0, 1), constant=False, default=True, instantiate=False, pickle_default_value=True, precedence=None, readonly=False ) - Whether to apply extent overrides on the Elements
-
param Boolean
apply_ticks
( allow_None=False, bounds=(0, 1), constant=False, default=True, instantiate=False, pickle_default_value=True, precedence=None, readonly=False ) - Whether to apply custom ticks.
-
param Parameter
aspect
( allow_None=False, constant=False, default=square, instantiate=False, pickle_default_value=True, precedence=None, readonly=False ) - The aspect ratio mode of the plot. By default, a plot may select its own appropriate aspect ratio but sometimes it may be necessary to force a square aspect ratio (e.g. to display the plot as an element of a grid). The modes ‘auto’ and ‘equal’ correspond to the axis modes of the same name in matplotlib, a numeric value may also be passed.
-
param ClassSelector
bgcolor
( allow_None=True, constant=False, default=None, instantiate=True, is_instance=True, pickle_default_value=True, precedence=None, readonly=False ) - If set bgcolor overrides the background color of the axis.
-
param ObjectSelector
invert_axes
( allow_None=None, check_on_set=False, compute_default_fn=None, constant=False, default=False, instantiate=False, objects=[], pickle_default_value=True, precedence=None, readonly=False ) - Inverts the axes of the plot. Note that this parameter may not always be respected by all plots but should be respected by adjoined plots when appropriate.
-
param Boolean
invert_xaxis
( allow_None=False, bounds=(0, 1), constant=False, default=False, instantiate=False, pickle_default_value=True, precedence=None, readonly=False ) - Whether to invert the plot x-axis.
-
param Boolean
invert_yaxis
( allow_None=False, bounds=(0, 1), constant=False, default=False, instantiate=False, pickle_default_value=True, precedence=None, readonly=False ) - Whether to invert the plot y-axis.
-
param Boolean
invert_zaxis
( allow_None=False, bounds=(0, 1), constant=False, default=False, instantiate=False, pickle_default_value=True, precedence=None, readonly=False ) - Whether to invert the plot z-axis.
-
param List
labelled
( allow_None=False, bounds=(0, None), constant=False, default=[‘x’, ‘y’], instantiate=True, pickle_default_value=True, precedence=None, readonly=False ) - Whether to plot the ‘x’ and ‘y’ labels.
-
param Boolean
logx
( allow_None=False, bounds=(0, 1), constant=False, default=False, instantiate=False, pickle_default_value=True, precedence=None, readonly=False ) - Whether to apply log scaling to the x-axis of the Chart.
-
param Boolean
logy
( allow_None=False, bounds=(0, 1), constant=False, default=False, instantiate=False, pickle_default_value=True, precedence=None, readonly=False ) - Whether to apply log scaling to the y-axis of the Chart.
-
param Boolean
logz
( allow_None=False, bounds=(0, 1), constant=False, default=False, instantiate=False, pickle_default_value=True, precedence=None, readonly=False ) - Whether to apply log scaling to the y-axis of the Chart.
-
param Boolean
show_legend
( allow_None=False, bounds=(0, 1), constant=False, default=False, instantiate=False, pickle_default_value=True, precedence=None, readonly=False ) - Whether to show legend for the plot.
-
param Boolean
show_grid
( allow_None=False, bounds=(0, 1), constant=False, default=False, instantiate=False, pickle_default_value=True, precedence=None, readonly=False ) - Whether to show a Cartesian grid on the plot.
-
param ObjectSelector
xaxis
( allow_None=None, check_on_set=True, compute_default_fn=None, constant=False, default=bottom, instantiate=False, objects=[‘top’, ‘bottom’, ‘bare’, ‘top-bare’, ‘bottom-bare’, None], pickle_default_value=True, precedence=None, readonly=False ) - Whether and where to display the xaxis, bare options allow suppressing all axis labels including ticks and xlabel. Valid options are ‘top’, ‘bottom’, ‘bare’, ‘top-bare’ and ‘bottom-bare’.
-
param ObjectSelector
yaxis
( allow_None=None, check_on_set=True, compute_default_fn=None, constant=False, default=left, instantiate=False, objects=[‘left’, ‘right’, ‘bare’, ‘left-bare’, ‘right-bare’, None], pickle_default_value=True, precedence=None, readonly=False ) - Whether and where to display the yaxis, bare options allow suppressing all axis labels including ticks and ylabel. Valid options are ‘left’, ‘right’, ‘bare’ ‘left-bare’ and ‘right-bare’.
-
param Boolean
zaxis
( allow_None=False, bounds=(0, 1), constant=False, default=True, instantiate=False, pickle_default_value=True, precedence=None, readonly=False ) - Whether to display the z-axis.
-
param Parameter
xticks
( allow_None=True, constant=False, default=None, instantiate=False, pickle_default_value=True, precedence=None, readonly=False ) - Ticks along x-axis specified as an integer, explicit list of tick locations, list of tuples containing the locations and labels or a matplotlib tick locator object. If set to None default matplotlib ticking behavior is applied.
-
param Integer
xrotation
( allow_None=False, bounds=(0, 360), constant=False, default=0, inclusive_bounds=(True, True), instantiate=False, pickle_default_value=True, precedence=None, readonly=False, softbounds=None, time_dependent=False, time_fn=<Time Time00001> ) - Rotation angle of the xticks.
-
param Parameter
yticks
( allow_None=True, constant=False, default=None, instantiate=False, pickle_default_value=True, precedence=None, readonly=False ) - Ticks along y-axis specified as an integer, explicit list of tick locations, list of tuples containing the locations and labels or a matplotlib tick locator object. If set to None default matplotlib ticking behavior is applied.
-
param Integer
yrotation
( allow_None=False, bounds=(0, 360), constant=False, default=0, inclusive_bounds=(True, True), instantiate=False, pickle_default_value=True, precedence=None, readonly=False, softbounds=None, time_dependent=False, time_fn=<Time Time00001> ) - Rotation angle of the yticks.
-
param Integer
zrotation
( allow_None=False, bounds=(0, 360), constant=False, default=0, inclusive_bounds=(True, True), instantiate=False, pickle_default_value=True, precedence=None, readonly=False, softbounds=None, time_dependent=False, time_fn=<Time Time00001> ) - Rotation angle of the zticks.
-
param Parameter
zticks
( allow_None=True, constant=False, default=None, instantiate=False, pickle_default_value=True, precedence=None, readonly=False ) - Ticks along z-axis specified as an integer, explicit list of tick locations, list of tuples containing the locations and labels or a matplotlib tick locator object. If set to None default matplotlib ticking behavior is applied.
-
anim
( start=0 , stop=None , fps=30 ) ¶ -
Method to return a matplotlib animation. The start and stop frames may be specified as well as the fps.
-
compute_ranges
( obj , key , ranges ) ¶ -
Given an object, a specific key and the normalization options this method will find the specified normalization options on the appropriate OptionTree, group the elements according to the selected normalization option (i.e. either per frame or over the whole animation) and finally compute the dimension ranges in each group. The new set of ranges is returned.
-
debug
( msg , *args , **kw ) ¶ -
Print msg merged with args as a debugging statement.
See Python’s logging module for details of message formatting.
-
defaults
( ) ¶ -
Return {parameter_name:parameter.default} for all non-constant Parameters.
Note that a Parameter for which instantiate==True has its default instantiated.
-
force_new_dynamic_value
= functools.partial(<function Parameterized.force_new_dynamic_value>, <class 'holoviews.plotting.mpl.annotation.AnnotationPlot'>) ¶
-
get_extents
( view , ranges ) ¶ -
Gets the extents for the axes from the current View. The globally computed ranges can optionally override the extents.
-
get_param_values
( onlychanged=False ) ¶ -
Return a list of name,value pairs for all Parameters of this object.
If onlychanged is True, will only return values that are not equal to the default value.
-
get_value_generator
= functools.partial(<function Parameterized.get_value_generator>, <class 'holoviews.plotting.mpl.annotation.AnnotationPlot'>) ¶
-
get_zorder
( overlay , key , el ) ¶ -
Computes the z-order of element in the NdOverlay taking into account possible batching of elements.
-
init_artists
( ax , plot_args , plot_kwargs ) ¶ -
Initializes the artist based on the plot method declared on the plot.
-
init_comm
( ) ¶ -
Initializes comm and attaches streams.
-
inspect_value
= functools.partial(<function Parameterized.inspect_value>, <class 'holoviews.plotting.mpl.annotation.AnnotationPlot'>) ¶
-
matches
( spec ) ¶ -
Matches a specification against the current Plot.
-
message
( msg , *args , **kw ) ¶ -
Print msg merged with args as a message.
See Python’s logging module for details of message formatting.
-
params
( parameter_name=None ) ¶ -
Return the Parameters of this class as the dictionary {name: parameter_object}
Includes Parameters from this class and its superclasses.
-
pprint
( imports=None , prefix=' ' , unknown_value='<?>' , qualify=False , separator='' ) ¶ -
(Experimental) Pretty printed representation that may be evaluated with eval. See pprint() function for more details.
-
print_param_defaults
( ) ¶ -
Print the default values of all cls’s Parameters.
-
print_param_values
( ) ¶ -
Print the values of all this object’s Parameters.
-
push
( ) ¶ -
Pushes updated plot data via the Comm.
-
refresh
( **kwargs ) ¶ -
Refreshes the plot by rerendering it and then pushing the updated data if the plot has an associated Comm.
-
script_repr
( imports=[] , prefix=' ' ) ¶ -
Variant of __repr__ designed for generating a runnable script.
-
set_default
( param_name , value ) ¶ -
Set the default value of param_name.
Equivalent to setting param_name on the class.
-
set_dynamic_time_fn
= functools.partial(<function Parameterized.set_dynamic_time_fn>, <class 'holoviews.plotting.mpl.annotation.AnnotationPlot'>) ¶
-
set_param
= functools.partial(<function Parameterized.set_param>, <class 'holoviews.plotting.mpl.annotation.AnnotationPlot'>) ¶
-
state_pop
( ) ¶ -
Restore the most recently saved state.
See state_push() for more details.
-
state_push
( ) ¶ -
Save this instance’s state.
For Parameterized instances, this includes the state of dynamically generated values.
Subclasses that maintain short-term state should additionally save and restore that state using state_push() and state_pop().
Generally, this method is used by operations that need to test something without permanently altering the objects’ state.
-
teardown_handles
( ) ¶ -
If no custom update_handles method is supplied this method is called to tear down any previous handles before replacing them.
-
traverse
( fn=None , specs=None , full_breadth=True ) ¶ -
Traverses any nested DimensionedPlot returning a list of all plots that match the specs. The specs should be supplied as a list of either Plot types or callables, which should return a boolean given the plot class.
-
verbose
( msg , *args , **kw ) ¶ -
Print msg merged with args as a verbose message.
See Python’s logging module for details of message formatting.
-
warning
( msg , *args , **kw ) ¶ -
Print msg merged with args as a warning, unless module variable warnings_as_exceptions is True, then raise an Exception containing the arguments.
See Python’s logging module for details of message formatting.
-
param Parameter
-
class
holoviews.plotting.mpl.annotation.
ArrowPlot
( annotation , **params ) [source] ¶ -
Bases:
holoviews.plotting.mpl.annotation.AnnotationPlot
Draw an arrow using the information supplied to the Arrow annotation
-
param Parameter
fontsize
( allow_None=True, constant=False, default=None, instantiate=False, pickle_default_value=True, precedence=None, readonly=False ) - Specifies various fontsizes of the displayed text. Finer control is available by supplying a dictionary where any unmentioned keys reverts to the default sizes, e.g: {‘ticks’:20, ‘title’:15, ‘ylabel’:5, ‘xlabel’:5, ‘legend’:8, ‘legend_title’:13} You can set the fontsize of both ‘ylabel’ and ‘xlabel’ together using the ‘labels’ key.
-
param Boolean
show_title
( allow_None=False, bounds=(0, 1), constant=False, default=True, instantiate=False, pickle_default_value=True, precedence=None, readonly=False ) - Whether to display the plot title.
-
param String
title_format
( allow_None=False, basestring=<class ‘str’>, constant=False, default={label} {group} {dimensions}, instantiate=False, pickle_default_value=True, precedence=None, readonly=False ) - The formatting string for the title of this plot, allows defining a label group separator and dimension labels.
-
param Boolean
normalize
( allow_None=False, bounds=(0, 1), constant=False, default=True, instantiate=False, pickle_default_value=True, precedence=None, readonly=False ) - Whether to compute ranges across all Elements at this level of plotting. Allows selecting normalization at different levels for nested data containers.
-
param Parameter
projection
( allow_None=True, constant=False, default=None, instantiate=False, pickle_default_value=True, precedence=None, readonly=False ) - The projection of the plot axis, default of None is equivalent to 2D plot, ‘3d’ and ‘polar’ are also supported by matplotlib by default. May also supply a custom projection that is either a matplotlib projection type or implements the _as_mpl_axes method.
-
param Number
fig_alpha
( allow_None=False, bounds=(0, 1), constant=False, default=1.0, inclusive_bounds=(True, True), instantiate=False, pickle_default_value=True, precedence=None, readonly=False, softbounds=None, time_dependent=False, time_fn=<Time Time00001> ) - Alpha of the overall figure background.
-
param NumericTuple
fig_bounds
( allow_None=False, constant=False, default=(0.15, 0.15, 0.85, 0.85), instantiate=False, length=4, pickle_default_value=True, precedence=None, readonly=False ) - The bounds of the overall figure as a 4-tuple of the form (left, bottom, right, top), defining the size of the border around the subplots.
-
param Parameter
fig_inches
( allow_None=False, constant=False, default=4, instantiate=False, pickle_default_value=True, precedence=None, readonly=False ) - The overall matplotlib figure size in inches. May be set as an integer in which case it will be used to autocompute a size. Alternatively may be set with an explicit tuple or list, in which case it will be applied directly after being scaled by fig_size. If either the width or height is set to None, it will be computed automatically.
-
param Boolean
fig_latex
( allow_None=False, bounds=(0, 1), constant=False, default=False, instantiate=False, pickle_default_value=True, precedence=None, readonly=False ) - Whether to use LaTeX text in the overall figure.
-
param Dict
fig_rcparams
( allow_None=False, constant=False, default={}, instantiate=True, is_instance=True, pickle_default_value=True, precedence=None, readonly=False ) - matplotlib rc parameters to apply to the overall figure.
-
param Number
fig_size
( allow_None=False, bounds=(1, None), constant=False, default=100.0, inclusive_bounds=(True, True), instantiate=False, pickle_default_value=True, precedence=None, readonly=False, softbounds=None, time_dependent=False, time_fn=<Time Time00001> ) - Size relative to the supplied overall fig_inches in percent.
-
param HookList
initial_hooks
( allow_None=False, bounds=(0, None), constant=False, default=[], instantiate=True, pickle_default_value=True, precedence=None, readonly=False ) - Optional list of hooks called before plotting the data onto the axis. The hook is passed the plot object and the displayed object, other plotting handles can be accessed via plot.handles.
-
param HookList
final_hooks
( allow_None=False, bounds=(0, None), constant=False, default=[], instantiate=True, pickle_default_value=True, precedence=None, readonly=False ) - Optional list of hooks called when finalizing an axis. The hook is passed the plot object and the displayed object, other plotting handles can be accessed via plot.handles.
-
param HookList
finalize_hooks
( allow_None=False, bounds=(0, None), constant=False, default=[], instantiate=True, pickle_default_value=True, precedence=None, readonly=False ) - Optional list of hooks called when finalizing an axis. The hook is passed the plot object and the displayed object, other plotting handles can be accessed via plot.handles.
-
param String
sublabel_format
( allow_None=True, basestring=<class ‘str’>, constant=False, default=None, instantiate=False, pickle_default_value=True, precedence=None, readonly=False ) - Allows labeling the subaxes in each plot with various formatters including {Alpha}, {alpha}, {numeric} and {roman}.
-
param NumericTuple
sublabel_position
( allow_None=False, constant=False, default=(-0.35, 0.85), instantiate=False, length=2, pickle_default_value=True, precedence=None, readonly=False ) - Position relative to the plot for placing the optional subfigure label.
-
param Number
sublabel_size
( allow_None=False, bounds=None, constant=False, default=18, inclusive_bounds=(True, True), instantiate=False, pickle_default_value=True, precedence=None, readonly=False, softbounds=None, time_dependent=False, time_fn=<Time Time00001> ) - Size of optional subfigure label.
-
param Boolean
show_frame
( allow_None=False, bounds=(0, 1), constant=False, default=False, instantiate=False, pickle_default_value=True, precedence=None, readonly=False ) - Whether or not to show a complete frame around the plot.
-
param Boolean
apply_ranges
( allow_None=False, bounds=(0, 1), constant=False, default=True, instantiate=False, pickle_default_value=True, precedence=None, readonly=False ) - Whether to compute the plot bounds from the data itself.
-
param Boolean
apply_extents
( allow_None=False, bounds=(0, 1), constant=False, default=True, instantiate=False, pickle_default_value=True, precedence=None, readonly=False ) - Whether to apply extent overrides on the Elements
-
param Boolean
apply_ticks
( allow_None=False, bounds=(0, 1), constant=False, default=True, instantiate=False, pickle_default_value=True, precedence=None, readonly=False ) - Whether to apply custom ticks.
-
param Parameter
aspect
( allow_None=False, constant=False, default=square, instantiate=False, pickle_default_value=True, precedence=None, readonly=False ) - The aspect ratio mode of the plot. By default, a plot may select its own appropriate aspect ratio but sometimes it may be necessary to force a square aspect ratio (e.g. to display the plot as an element of a grid). The modes ‘auto’ and ‘equal’ correspond to the axis modes of the same name in matplotlib, a numeric value may also be passed.
-
param ClassSelector
bgcolor
( allow_None=True, constant=False, default=None, instantiate=True, is_instance=True, pickle_default_value=True, precedence=None, readonly=False ) - If set bgcolor overrides the background color of the axis.
-
param ObjectSelector
invert_axes
( allow_None=None, check_on_set=False, compute_default_fn=None, constant=False, default=False, instantiate=False, objects=[], pickle_default_value=True, precedence=None, readonly=False ) - Inverts the axes of the plot. Note that this parameter may not always be respected by all plots but should be respected by adjoined plots when appropriate.
-
param Boolean
invert_xaxis
( allow_None=False, bounds=(0, 1), constant=False, default=False, instantiate=False, pickle_default_value=True, precedence=None, readonly=False ) - Whether to invert the plot x-axis.
-
param Boolean
invert_yaxis
( allow_None=False, bounds=(0, 1), constant=False, default=False, instantiate=False, pickle_default_value=True, precedence=None, readonly=False ) - Whether to invert the plot y-axis.
-
param Boolean
invert_zaxis
( allow_None=False, bounds=(0, 1), constant=False, default=False, instantiate=False, pickle_default_value=True, precedence=None, readonly=False ) - Whether to invert the plot z-axis.
-
param List
labelled
( allow_None=False, bounds=(0, None), constant=False, default=[‘x’, ‘y’], instantiate=True, pickle_default_value=True, precedence=None, readonly=False ) - Whether to plot the ‘x’ and ‘y’ labels.
-
param Boolean
logx
( allow_None=False, bounds=(0, 1), constant=False, default=False, instantiate=False, pickle_default_value=True, precedence=None, readonly=False ) - Whether to apply log scaling to the x-axis of the Chart.
-
param Boolean
logy
( allow_None=False, bounds=(0, 1), constant=False, default=False, instantiate=False, pickle_default_value=True, precedence=None, readonly=False ) - Whether to apply log scaling to the y-axis of the Chart.
-
param Boolean
logz
( allow_None=False, bounds=(0, 1), constant=False, default=False, instantiate=False, pickle_default_value=True, precedence=None, readonly=False ) - Whether to apply log scaling to the y-axis of the Chart.
-
param Boolean
show_legend
( allow_None=False, bounds=(0, 1), constant=False, default=False, instantiate=False, pickle_default_value=True, precedence=None, readonly=False ) - Whether to show legend for the plot.
-
param Boolean
show_grid
( allow_None=False, bounds=(0, 1), constant=False, default=False, instantiate=False, pickle_default_value=True, precedence=None, readonly=False ) - Whether to show a Cartesian grid on the plot.
-
param ObjectSelector
xaxis
( allow_None=None, check_on_set=True, compute_default_fn=None, constant=False, default=bottom, instantiate=False, objects=[‘top’, ‘bottom’, ‘bare’, ‘top-bare’, ‘bottom-bare’, None], pickle_default_value=True, precedence=None, readonly=False ) - Whether and where to display the xaxis, bare options allow suppressing all axis labels including ticks and xlabel. Valid options are ‘top’, ‘bottom’, ‘bare’, ‘top-bare’ and ‘bottom-bare’.
-
param ObjectSelector
yaxis
( allow_None=None, check_on_set=True, compute_default_fn=None, constant=False, default=left, instantiate=False, objects=[‘left’, ‘right’, ‘bare’, ‘left-bare’, ‘right-bare’, None], pickle_default_value=True, precedence=None, readonly=False ) - Whether and where to display the yaxis, bare options allow suppressing all axis labels including ticks and ylabel. Valid options are ‘left’, ‘right’, ‘bare’ ‘left-bare’ and ‘right-bare’.
-
param Boolean
zaxis
( allow_None=False, bounds=(0, 1), constant=False, default=True, instantiate=False, pickle_default_value=True, precedence=None, readonly=False ) - Whether to display the z-axis.
-
param Parameter
xticks
( allow_None=True, constant=False, default=None, instantiate=False, pickle_default_value=True, precedence=None, readonly=False ) - Ticks along x-axis specified as an integer, explicit list of tick locations, list of tuples containing the locations and labels or a matplotlib tick locator object. If set to None default matplotlib ticking behavior is applied.
-
param Integer
xrotation
( allow_None=False, bounds=(0, 360), constant=False, default=0, inclusive_bounds=(True, True), instantiate=False, pickle_default_value=True, precedence=None, readonly=False, softbounds=None, time_dependent=False, time_fn=<Time Time00001> ) - Rotation angle of the xticks.
-
param Parameter
yticks
( allow_None=True, constant=False, default=None, instantiate=False, pickle_default_value=True, precedence=None, readonly=False ) - Ticks along y-axis specified as an integer, explicit list of tick locations, list of tuples containing the locations and labels or a matplotlib tick locator object. If set to None default matplotlib ticking behavior is applied.
-
param Integer
yrotation
( allow_None=False, bounds=(0, 360), constant=False, default=0, inclusive_bounds=(True, True), instantiate=False, pickle_default_value=True, precedence=None, readonly=False, softbounds=None, time_dependent=False, time_fn=<Time Time00001> ) - Rotation angle of the yticks.
-
param Integer
zrotation
( allow_None=False, bounds=(0, 360), constant=False, default=0, inclusive_bounds=(True, True), instantiate=False, pickle_default_value=True, precedence=None, readonly=False, softbounds=None, time_dependent=False, time_fn=<Time Time00001> ) - Rotation angle of the zticks.
-
param Parameter
zticks
( allow_None=True, constant=False, default=None, instantiate=False, pickle_default_value=True, precedence=None, readonly=False ) - Ticks along z-axis specified as an integer, explicit list of tick locations, list of tuples containing the locations and labels or a matplotlib tick locator object. If set to None default matplotlib ticking behavior is applied.
-
anim
( start=0 , stop=None , fps=30 ) ¶ -
Method to return a matplotlib animation. The start and stop frames may be specified as well as the fps.
-
compute_ranges
( obj , key , ranges ) ¶ -
Given an object, a specific key and the normalization options this method will find the specified normalization options on the appropriate OptionTree, group the elements according to the selected normalization option (i.e. either per frame or over the whole animation) and finally compute the dimension ranges in each group. The new set of ranges is returned.
-
debug
( msg , *args , **kw ) ¶ -
Print msg merged with args as a debugging statement.
See Python’s logging module for details of message formatting.
-
defaults
( ) ¶ -
Return {parameter_name:parameter.default} for all non-constant Parameters.
Note that a Parameter for which instantiate==True has its default instantiated.
-
force_new_dynamic_value
= functools.partial(<function Parameterized.force_new_dynamic_value>, <class 'holoviews.plotting.mpl.annotation.ArrowPlot'>) ¶
-
get_extents
( view , ranges ) ¶ -
Gets the extents for the axes from the current View. The globally computed ranges can optionally override the extents.
-
get_param_values
( onlychanged=False ) ¶ -
Return a list of name,value pairs for all Parameters of this object.
If onlychanged is True, will only return values that are not equal to the default value.
-
get_value_generator
= functools.partial(<function Parameterized.get_value_generator>, <class 'holoviews.plotting.mpl.annotation.ArrowPlot'>) ¶
-
get_zorder
( overlay , key , el ) ¶ -
Computes the z-order of element in the NdOverlay taking into account possible batching of elements.
-
init_artists
( ax , plot_args , plot_kwargs ) ¶ -
Initializes the artist based on the plot method declared on the plot.
-
init_comm
( ) ¶ -
Initializes comm and attaches streams.
-
inspect_value
= functools.partial(<function Parameterized.inspect_value>, <class 'holoviews.plotting.mpl.annotation.ArrowPlot'>) ¶
-
matches
( spec ) ¶ -
Matches a specification against the current Plot.
-
message
( msg , *args , **kw ) ¶ -
Print msg merged with args as a message.
See Python’s logging module for details of message formatting.
-
params
( parameter_name=None ) ¶ -
Return the Parameters of this class as the dictionary {name: parameter_object}
Includes Parameters from this class and its superclasses.
-
pprint
( imports=None , prefix=' ' , unknown_value='<?>' , qualify=False , separator='' ) ¶ -
(Experimental) Pretty printed representation that may be evaluated with eval. See pprint() function for more details.
-
print_param_defaults
( ) ¶ -
Print the default values of all cls’s Parameters.
-
print_param_values
( ) ¶ -
Print the values of all this object’s Parameters.
-
push
( ) ¶ -
Pushes updated plot data via the Comm.
-
refresh
( **kwargs ) ¶ -
Refreshes the plot by rerendering it and then pushing the updated data if the plot has an associated Comm.
-
script_repr
( imports=[] , prefix=' ' ) ¶ -
Variant of __repr__ designed for generating a runnable script.
-
set_default
( param_name , value ) ¶ -
Set the default value of param_name.
Equivalent to setting param_name on the class.
-
set_dynamic_time_fn
= functools.partial(<function Parameterized.set_dynamic_time_fn>, <class 'holoviews.plotting.mpl.annotation.ArrowPlot'>) ¶
-
set_param
= functools.partial(<function Parameterized.set_param>, <class 'holoviews.plotting.mpl.annotation.ArrowPlot'>) ¶
-
state_pop
( ) ¶ -
Restore the most recently saved state.
See state_push() for more details.
-
state_push
( ) ¶ -
Save this instance’s state.
For Parameterized instances, this includes the state of dynamically generated values.
Subclasses that maintain short-term state should additionally save and restore that state using state_push() and state_pop().
Generally, this method is used by operations that need to test something without permanently altering the objects’ state.
-
teardown_handles
( ) ¶ -
If no custom update_handles method is supplied this method is called to tear down any previous handles before replacing them.
-
traverse
( fn=None , specs=None , full_breadth=True ) ¶ -
Traverses any nested DimensionedPlot returning a list of all plots that match the specs. The specs should be supplied as a list of either Plot types or callables, which should return a boolean given the plot class.
-
verbose
( msg , *args , **kw ) ¶ -
Print msg merged with args as a verbose message.
See Python’s logging module for details of message formatting.
-
warning
( msg , *args , **kw ) ¶ -
Print msg merged with args as a warning, unless module variable warnings_as_exceptions is True, then raise an Exception containing the arguments.
See Python’s logging module for details of message formatting.
-
param Parameter
-
class
holoviews.plotting.mpl.annotation.
HLinePlot
( annotation , **params ) [source] ¶ -
Bases:
holoviews.plotting.mpl.annotation.AnnotationPlot
Draw a horizontal line on the axis
-
param Parameter
fontsize
( allow_None=True, constant=False, default=None, instantiate=False, pickle_default_value=True, precedence=None, readonly=False ) - Specifies various fontsizes of the displayed text. Finer control is available by supplying a dictionary where any unmentioned keys reverts to the default sizes, e.g: {‘ticks’:20, ‘title’:15, ‘ylabel’:5, ‘xlabel’:5, ‘legend’:8, ‘legend_title’:13} You can set the fontsize of both ‘ylabel’ and ‘xlabel’ together using the ‘labels’ key.
-
param Boolean
show_title
( allow_None=False, bounds=(0, 1), constant=False, default=True, instantiate=False, pickle_default_value=True, precedence=None, readonly=False ) - Whether to display the plot title.
-
param String
title_format
( allow_None=False, basestring=<class ‘str’>, constant=False, default={label} {group} {dimensions}, instantiate=False, pickle_default_value=True, precedence=None, readonly=False ) - The formatting string for the title of this plot, allows defining a label group separator and dimension labels.
-
param Boolean
normalize
( allow_None=False, bounds=(0, 1), constant=False, default=True, instantiate=False, pickle_default_value=True, precedence=None, readonly=False ) - Whether to compute ranges across all Elements at this level of plotting. Allows selecting normalization at different levels for nested data containers.
-
param Parameter
projection
( allow_None=True, constant=False, default=None, instantiate=False, pickle_default_value=True, precedence=None, readonly=False ) - The projection of the plot axis, default of None is equivalent to 2D plot, ‘3d’ and ‘polar’ are also supported by matplotlib by default. May also supply a custom projection that is either a matplotlib projection type or implements the _as_mpl_axes method.
-
param Number
fig_alpha
( allow_None=False, bounds=(0, 1), constant=False, default=1.0, inclusive_bounds=(True, True), instantiate=False, pickle_default_value=True, precedence=None, readonly=False, softbounds=None, time_dependent=False, time_fn=<Time Time00001> ) - Alpha of the overall figure background.
-
param NumericTuple
fig_bounds
( allow_None=False, constant=False, default=(0.15, 0.15, 0.85, 0.85), instantiate=False, length=4, pickle_default_value=True, precedence=None, readonly=False ) - The bounds of the overall figure as a 4-tuple of the form (left, bottom, right, top), defining the size of the border around the subplots.
-
param Parameter
fig_inches
( allow_None=False, constant=False, default=4, instantiate=False, pickle_default_value=True, precedence=None, readonly=False ) - The overall matplotlib figure size in inches. May be set as an integer in which case it will be used to autocompute a size. Alternatively may be set with an explicit tuple or list, in which case it will be applied directly after being scaled by fig_size. If either the width or height is set to None, it will be computed automatically.
-
param Boolean
fig_latex
( allow_None=False, bounds=(0, 1), constant=False, default=False, instantiate=False, pickle_default_value=True, precedence=None, readonly=False ) - Whether to use LaTeX text in the overall figure.
-
param Dict
fig_rcparams
( allow_None=False, constant=False, default={}, instantiate=True, is_instance=True, pickle_default_value=True, precedence=None, readonly=False ) - matplotlib rc parameters to apply to the overall figure.
-
param Number
fig_size
( allow_None=False, bounds=(1, None), constant=False, default=100.0, inclusive_bounds=(True, True), instantiate=False, pickle_default_value=True, precedence=None, readonly=False, softbounds=None, time_dependent=False, time_fn=<Time Time00001> ) - Size relative to the supplied overall fig_inches in percent.
-
param HookList
initial_hooks
( allow_None=False, bounds=(0, None), constant=False, default=[], instantiate=True, pickle_default_value=True, precedence=None, readonly=False ) - Optional list of hooks called before plotting the data onto the axis. The hook is passed the plot object and the displayed object, other plotting handles can be accessed via plot.handles.
-
param HookList
final_hooks
( allow_None=False, bounds=(0, None), constant=False, default=[], instantiate=True, pickle_default_value=True, precedence=None, readonly=False ) - Optional list of hooks called when finalizing an axis. The hook is passed the plot object and the displayed object, other plotting handles can be accessed via plot.handles.
-
param HookList
finalize_hooks
( allow_None=False, bounds=(0, None), constant=False, default=[], instantiate=True, pickle_default_value=True, precedence=None, readonly=False ) - Optional list of hooks called when finalizing an axis. The hook is passed the plot object and the displayed object, other plotting handles can be accessed via plot.handles.
-
param String
sublabel_format
( allow_None=True, basestring=<class ‘str’>, constant=False, default=None, instantiate=False, pickle_default_value=True, precedence=None, readonly=False ) - Allows labeling the subaxes in each plot with various formatters including {Alpha}, {alpha}, {numeric} and {roman}.
-
param NumericTuple
sublabel_position
( allow_None=False, constant=False, default=(-0.35, 0.85), instantiate=False, length=2, pickle_default_value=True, precedence=None, readonly=False ) - Position relative to the plot for placing the optional subfigure label.
-
param Number
sublabel_size
( allow_None=False, bounds=None, constant=False, default=18, inclusive_bounds=(True, True), instantiate=False, pickle_default_value=True, precedence=None, readonly=False, softbounds=None, time_dependent=False, time_fn=<Time Time00001> ) - Size of optional subfigure label.
-
param Boolean
show_frame
( allow_None=False, bounds=(0, 1), constant=False, default=False, instantiate=False, pickle_default_value=True, precedence=None, readonly=False ) - Whether or not to show a complete frame around the plot.
-
param Boolean
apply_ranges
( allow_None=False, bounds=(0, 1), constant=False, default=True, instantiate=False, pickle_default_value=True, precedence=None, readonly=False ) - Whether to compute the plot bounds from the data itself.
-
param Boolean
apply_extents
( allow_None=False, bounds=(0, 1), constant=False, default=True, instantiate=False, pickle_default_value=True, precedence=None, readonly=False ) - Whether to apply extent overrides on the Elements
-
param Boolean
apply_ticks
( allow_None=False, bounds=(0, 1), constant=False, default=True, instantiate=False, pickle_default_value=True, precedence=None, readonly=False ) - Whether to apply custom ticks.
-
param Parameter
aspect
( allow_None=False, constant=False, default=square, instantiate=False, pickle_default_value=True, precedence=None, readonly=False ) - The aspect ratio mode of the plot. By default, a plot may select its own appropriate aspect ratio but sometimes it may be necessary to force a square aspect ratio (e.g. to display the plot as an element of a grid). The modes ‘auto’ and ‘equal’ correspond to the axis modes of the same name in matplotlib, a numeric value may also be passed.
-
param ClassSelector
bgcolor
( allow_None=True, constant=False, default=None, instantiate=True, is_instance=True, pickle_default_value=True, precedence=None, readonly=False ) - If set bgcolor overrides the background color of the axis.
-
param ObjectSelector
invert_axes
( allow_None=None, check_on_set=False, compute_default_fn=None, constant=False, default=False, instantiate=False, objects=[], pickle_default_value=True, precedence=None, readonly=False ) - Inverts the axes of the plot. Note that this parameter may not always be respected by all plots but should be respected by adjoined plots when appropriate.
-
param Boolean
invert_xaxis
( allow_None=False, bounds=(0, 1), constant=False, default=False, instantiate=False, pickle_default_value=True, precedence=None, readonly=False ) - Whether to invert the plot x-axis.
-
param Boolean
invert_yaxis
( allow_None=False, bounds=(0, 1), constant=False, default=False, instantiate=False, pickle_default_value=True, precedence=None, readonly=False ) - Whether to invert the plot y-axis.
-
param Boolean
invert_zaxis
( allow_None=False, bounds=(0, 1), constant=False, default=False, instantiate=False, pickle_default_value=True, precedence=None, readonly=False ) - Whether to invert the plot z-axis.
-
param List
labelled
( allow_None=False, bounds=(0, None), constant=False, default=[‘x’, ‘y’], instantiate=True, pickle_default_value=True, precedence=None, readonly=False ) - Whether to plot the ‘x’ and ‘y’ labels.
-
param Boolean
logx
( allow_None=False, bounds=(0, 1), constant=False, default=False, instantiate=False, pickle_default_value=True, precedence=None, readonly=False ) - Whether to apply log scaling to the x-axis of the Chart.
-
param Boolean
logy
( allow_None=False, bounds=(0, 1), constant=False, default=False, instantiate=False, pickle_default_value=True, precedence=None, readonly=False ) - Whether to apply log scaling to the y-axis of the Chart.
-
param Boolean
logz
( allow_None=False, bounds=(0, 1), constant=False, default=False, instantiate=False, pickle_default_value=True, precedence=None, readonly=False ) - Whether to apply log scaling to the y-axis of the Chart.
-
param Boolean
show_legend
( allow_None=False, bounds=(0, 1), constant=False, default=False, instantiate=False, pickle_default_value=True, precedence=None, readonly=False ) - Whether to show legend for the plot.
-
param Boolean
show_grid
( allow_None=False, bounds=(0, 1), constant=False, default=False, instantiate=False, pickle_default_value=True, precedence=None, readonly=False ) - Whether to show a Cartesian grid on the plot.
-
param ObjectSelector
xaxis
( allow_None=None, check_on_set=True, compute_default_fn=None, constant=False, default=bottom, instantiate=False, objects=[‘top’, ‘bottom’, ‘bare’, ‘top-bare’, ‘bottom-bare’, None], pickle_default_value=True, precedence=None, readonly=False ) - Whether and where to display the xaxis, bare options allow suppressing all axis labels including ticks and xlabel. Valid options are ‘top’, ‘bottom’, ‘bare’, ‘top-bare’ and ‘bottom-bare’.
-
param ObjectSelector
yaxis
( allow_None=None, check_on_set=True, compute_default_fn=None, constant=False, default=left, instantiate=False, objects=[‘left’, ‘right’, ‘bare’, ‘left-bare’, ‘right-bare’, None], pickle_default_value=True, precedence=None, readonly=False ) - Whether and where to display the yaxis, bare options allow suppressing all axis labels including ticks and ylabel. Valid options are ‘left’, ‘right’, ‘bare’ ‘left-bare’ and ‘right-bare’.
-
param Boolean
zaxis
( allow_None=False, bounds=(0, 1), constant=False, default=True, instantiate=False, pickle_default_value=True, precedence=None, readonly=False ) - Whether to display the z-axis.
-
param Parameter
xticks
( allow_None=True, constant=False, default=None, instantiate=False, pickle_default_value=True, precedence=None, readonly=False ) - Ticks along x-axis specified as an integer, explicit list of tick locations, list of tuples containing the locations and labels or a matplotlib tick locator object. If set to None default matplotlib ticking behavior is applied.
-
param Integer
xrotation
( allow_None=False, bounds=(0, 360), constant=False, default=0, inclusive_bounds=(True, True), instantiate=False, pickle_default_value=True, precedence=None, readonly=False, softbounds=None, time_dependent=False, time_fn=<Time Time00001> ) - Rotation angle of the xticks.
-
param Parameter
yticks
( allow_None=True, constant=False, default=None, instantiate=False, pickle_default_value=True, precedence=None, readonly=False ) - Ticks along y-axis specified as an integer, explicit list of tick locations, list of tuples containing the locations and labels or a matplotlib tick locator object. If set to None default matplotlib ticking behavior is applied.
-
param Integer
yrotation
( allow_None=False, bounds=(0, 360), constant=False, default=0, inclusive_bounds=(True, True), instantiate=False, pickle_default_value=True, precedence=None, readonly=False, softbounds=None, time_dependent=False, time_fn=<Time Time00001> ) - Rotation angle of the yticks.
-
param Integer
zrotation
( allow_None=False, bounds=(0, 360), constant=False, default=0, inclusive_bounds=(True, True), instantiate=False, pickle_default_value=True, precedence=None, readonly=False, softbounds=None, time_dependent=False, time_fn=<Time Time00001> ) - Rotation angle of the zticks.
-
param Parameter
zticks
( allow_None=True, constant=False, default=None, instantiate=False, pickle_default_value=True, precedence=None, readonly=False ) - Ticks along z-axis specified as an integer, explicit list of tick locations, list of tuples containing the locations and labels or a matplotlib tick locator object. If set to None default matplotlib ticking behavior is applied.
-
anim
( start=0 , stop=None , fps=30 ) ¶ -
Method to return a matplotlib animation. The start and stop frames may be specified as well as the fps.
-
compute_ranges
( obj , key , ranges ) ¶ -
Given an object, a specific key and the normalization options this method will find the specified normalization options on the appropriate OptionTree, group the elements according to the selected normalization option (i.e. either per frame or over the whole animation) and finally compute the dimension ranges in each group. The new set of ranges is returned.
-
debug
( msg , *args , **kw ) ¶ -
Print msg merged with args as a debugging statement.
See Python’s logging module for details of message formatting.
-
defaults
( ) ¶ -
Return {parameter_name:parameter.default} for all non-constant Parameters.
Note that a Parameter for which instantiate==True has its default instantiated.
-
force_new_dynamic_value
= functools.partial(<function Parameterized.force_new_dynamic_value>, <class 'holoviews.plotting.mpl.annotation.HLinePlot'>) ¶
-
get_extents
( view , ranges ) ¶ -
Gets the extents for the axes from the current View. The globally computed ranges can optionally override the extents.
-
get_param_values
( onlychanged=False ) ¶ -
Return a list of name,value pairs for all Parameters of this object.
If onlychanged is True, will only return values that are not equal to the default value.
-
get_value_generator
= functools.partial(<function Parameterized.get_value_generator>, <class 'holoviews.plotting.mpl.annotation.HLinePlot'>) ¶
-
get_zorder
( overlay , key , el ) ¶ -
Computes the z-order of element in the NdOverlay taking into account possible batching of elements.
-
init_artists
( ax , plot_args , plot_kwargs ) ¶ -
Initializes the artist based on the plot method declared on the plot.
-
init_comm
( ) ¶ -
Initializes comm and attaches streams.
-
inspect_value
= functools.partial(<function Parameterized.inspect_value>, <class 'holoviews.plotting.mpl.annotation.HLinePlot'>) ¶
-
matches
( spec ) ¶ -
Matches a specification against the current Plot.
-
message
( msg , *args , **kw ) ¶ -
Print msg merged with args as a message.
See Python’s logging module for details of message formatting.
-
params
( parameter_name=None ) ¶ -
Return the Parameters of this class as the dictionary {name: parameter_object}
Includes Parameters from this class and its superclasses.
-
pprint
( imports=None , prefix=' ' , unknown_value='<?>' , qualify=False , separator='' ) ¶ -
(Experimental) Pretty printed representation that may be evaluated with eval. See pprint() function for more details.
-
print_param_defaults
( ) ¶ -
Print the default values of all cls’s Parameters.
-
print_param_values
( ) ¶ -
Print the values of all this object’s Parameters.
-
push
( ) ¶ -
Pushes updated plot data via the Comm.
-
refresh
( **kwargs ) ¶ -
Refreshes the plot by rerendering it and then pushing the updated data if the plot has an associated Comm.
-
script_repr
( imports=[] , prefix=' ' ) ¶ -
Variant of __repr__ designed for generating a runnable script.
-
set_default
( param_name , value ) ¶ -
Set the default value of param_name.
Equivalent to setting param_name on the class.
-
set_dynamic_time_fn
= functools.partial(<function Parameterized.set_dynamic_time_fn>, <class 'holoviews.plotting.mpl.annotation.HLinePlot'>) ¶
-
set_param
= functools.partial(<function Parameterized.set_param>, <class 'holoviews.plotting.mpl.annotation.HLinePlot'>) ¶
-
state_pop
( ) ¶ -
Restore the most recently saved state.
See state_push() for more details.
-
state_push
( ) ¶ -
Save this instance’s state.
For Parameterized instances, this includes the state of dynamically generated values.
Subclasses that maintain short-term state should additionally save and restore that state using state_push() and state_pop().
Generally, this method is used by operations that need to test something without permanently altering the objects’ state.
-
teardown_handles
( ) ¶ -
If no custom update_handles method is supplied this method is called to tear down any previous handles before replacing them.
-
traverse
( fn=None , specs=None , full_breadth=True ) ¶ -
Traverses any nested DimensionedPlot returning a list of all plots that match the specs. The specs should be supplied as a list of either Plot types or callables, which should return a boolean given the plot class.
-
verbose
( msg , *args , **kw ) ¶ -
Print msg merged with args as a verbose message.
See Python’s logging module for details of message formatting.
-
warning
( msg , *args , **kw ) ¶ -
Print msg merged with args as a warning, unless module variable warnings_as_exceptions is True, then raise an Exception containing the arguments.
See Python’s logging module for details of message formatting.
-
param Parameter
-
class
holoviews.plotting.mpl.annotation.
SplinePlot
( annotation , **params ) [source] ¶ -
Bases:
holoviews.plotting.mpl.annotation.AnnotationPlot
Draw the supplied Spline annotation (see Spline docstring)
-
param Parameter
fontsize
( allow_None=True, constant=False, default=None, instantiate=False, pickle_default_value=True, precedence=None, readonly=False ) - Specifies various fontsizes of the displayed text. Finer control is available by supplying a dictionary where any unmentioned keys reverts to the default sizes, e.g: {‘ticks’:20, ‘title’:15, ‘ylabel’:5, ‘xlabel’:5, ‘legend’:8, ‘legend_title’:13} You can set the fontsize of both ‘ylabel’ and ‘xlabel’ together using the ‘labels’ key.
-
param Boolean
show_title
( allow_None=False, bounds=(0, 1), constant=False, default=True, instantiate=False, pickle_default_value=True, precedence=None, readonly=False ) - Whether to display the plot title.
-
param String
title_format
( allow_None=False, basestring=<class ‘str’>, constant=False, default={label} {group} {dimensions}, instantiate=False, pickle_default_value=True, precedence=None, readonly=False ) - The formatting string for the title of this plot, allows defining a label group separator and dimension labels.
-
param Boolean
normalize
( allow_None=False, bounds=(0, 1), constant=False, default=True, instantiate=False, pickle_default_value=True, precedence=None, readonly=False ) - Whether to compute ranges across all Elements at this level of plotting. Allows selecting normalization at different levels for nested data containers.
-
param Parameter
projection
( allow_None=True, constant=False, default=None, instantiate=False, pickle_default_value=True, precedence=None, readonly=False ) - The projection of the plot axis, default of None is equivalent to 2D plot, ‘3d’ and ‘polar’ are also supported by matplotlib by default. May also supply a custom projection that is either a matplotlib projection type or implements the _as_mpl_axes method.
-
param Number
fig_alpha
( allow_None=False, bounds=(0, 1), constant=False, default=1.0, inclusive_bounds=(True, True), instantiate=False, pickle_default_value=True, precedence=None, readonly=False, softbounds=None, time_dependent=False, time_fn=<Time Time00001> ) - Alpha of the overall figure background.
-
param NumericTuple
fig_bounds
( allow_None=False, constant=False, default=(0.15, 0.15, 0.85, 0.85), instantiate=False, length=4, pickle_default_value=True, precedence=None, readonly=False ) - The bounds of the overall figure as a 4-tuple of the form (left, bottom, right, top), defining the size of the border around the subplots.
-
param Parameter
fig_inches
( allow_None=False, constant=False, default=4, instantiate=False, pickle_default_value=True, precedence=None, readonly=False ) - The overall matplotlib figure size in inches. May be set as an integer in which case it will be used to autocompute a size. Alternatively may be set with an explicit tuple or list, in which case it will be applied directly after being scaled by fig_size. If either the width or height is set to None, it will be computed automatically.
-
param Boolean
fig_latex
( allow_None=False, bounds=(0, 1), constant=False, default=False, instantiate=False, pickle_default_value=True, precedence=None, readonly=False ) - Whether to use LaTeX text in the overall figure.
-
param Dict
fig_rcparams
( allow_None=False, constant=False, default={}, instantiate=True, is_instance=True, pickle_default_value=True, precedence=None, readonly=False ) - matplotlib rc parameters to apply to the overall figure.
-
param Number
fig_size
( allow_None=False, bounds=(1, None), constant=False, default=100.0, inclusive_bounds=(True, True), instantiate=False, pickle_default_value=True, precedence=None, readonly=False, softbounds=None, time_dependent=False, time_fn=<Time Time00001> ) - Size relative to the supplied overall fig_inches in percent.
-
param HookList
initial_hooks
( allow_None=False, bounds=(0, None), constant=False, default=[], instantiate=True, pickle_default_value=True, precedence=None, readonly=False ) - Optional list of hooks called before plotting the data onto the axis. The hook is passed the plot object and the displayed object, other plotting handles can be accessed via plot.handles.
-
param HookList
final_hooks
( allow_None=False, bounds=(0, None), constant=False, default=[], instantiate=True, pickle_default_value=True, precedence=None, readonly=False ) - Optional list of hooks called when finalizing an axis. The hook is passed the plot object and the displayed object, other plotting handles can be accessed via plot.handles.
-
param HookList
finalize_hooks
( allow_None=False, bounds=(0, None), constant=False, default=[], instantiate=True, pickle_default_value=True, precedence=None, readonly=False ) - Optional list of hooks called when finalizing an axis. The hook is passed the plot object and the displayed object, other plotting handles can be accessed via plot.handles.
-
param String
sublabel_format
( allow_None=True, basestring=<class ‘str’>, constant=False, default=None, instantiate=False, pickle_default_value=True, precedence=None, readonly=False ) - Allows labeling the subaxes in each plot with various formatters including {Alpha}, {alpha}, {numeric} and {roman}.
-
param NumericTuple
sublabel_position
( allow_None=False, constant=False, default=(-0.35, 0.85), instantiate=False, length=2, pickle_default_value=True, precedence=None, readonly=False ) - Position relative to the plot for placing the optional subfigure label.
-
param Number
sublabel_size
( allow_None=False, bounds=None, constant=False, default=18, inclusive_bounds=(True, True), instantiate=False, pickle_default_value=True, precedence=None, readonly=False, softbounds=None, time_dependent=False, time_fn=<Time Time00001> ) - Size of optional subfigure label.
-
param Boolean
show_frame
( allow_None=False, bounds=(0, 1), constant=False, default=False, instantiate=False, pickle_default_value=True, precedence=None, readonly=False ) - Whether or not to show a complete frame around the plot.
-
param Boolean
apply_ranges
( allow_None=False, bounds=(0, 1), constant=False, default=True, instantiate=False, pickle_default_value=True, precedence=None, readonly=False ) - Whether to compute the plot bounds from the data itself.
-
param Boolean
apply_extents
( allow_None=False, bounds=(0, 1), constant=False, default=True, instantiate=False, pickle_default_value=True, precedence=None, readonly=False ) - Whether to apply extent overrides on the Elements
-
param Boolean
apply_ticks
( allow_None=False, bounds=(0, 1), constant=False, default=True, instantiate=False, pickle_default_value=True, precedence=None, readonly=False ) - Whether to apply custom ticks.
-
param Parameter
aspect
( allow_None=False, constant=False, default=square, instantiate=False, pickle_default_value=True, precedence=None, readonly=False ) - The aspect ratio mode of the plot. By default, a plot may select its own appropriate aspect ratio but sometimes it may be necessary to force a square aspect ratio (e.g. to display the plot as an element of a grid). The modes ‘auto’ and ‘equal’ correspond to the axis modes of the same name in matplotlib, a numeric value may also be passed.
-
param ClassSelector
bgcolor
( allow_None=True, constant=False, default=None, instantiate=True, is_instance=True, pickle_default_value=True, precedence=None, readonly=False ) - If set bgcolor overrides the background color of the axis.
-
param ObjectSelector
invert_axes
( allow_None=None, check_on_set=False, compute_default_fn=None, constant=False, default=False, instantiate=False, objects=[], pickle_default_value=True, precedence=None, readonly=False ) - Inverts the axes of the plot. Note that this parameter may not always be respected by all plots but should be respected by adjoined plots when appropriate.
-
param Boolean
invert_xaxis
( allow_None=False, bounds=(0, 1), constant=False, default=False, instantiate=False, pickle_default_value=True, precedence=None, readonly=False ) - Whether to invert the plot x-axis.
-
param Boolean
invert_yaxis
( allow_None=False, bounds=(0, 1), constant=False, default=False, instantiate=False, pickle_default_value=True, precedence=None, readonly=False ) - Whether to invert the plot y-axis.
-
param Boolean
invert_zaxis
( allow_None=False, bounds=(0, 1), constant=False, default=False, instantiate=False, pickle_default_value=True, precedence=None, readonly=False ) - Whether to invert the plot z-axis.
-
param List
labelled
( allow_None=False, bounds=(0, None), constant=False, default=[‘x’, ‘y’], instantiate=True, pickle_default_value=True, precedence=None, readonly=False ) - Whether to plot the ‘x’ and ‘y’ labels.
-
param Boolean
logx
( allow_None=False, bounds=(0, 1), constant=False, default=False, instantiate=False, pickle_default_value=True, precedence=None, readonly=False ) - Whether to apply log scaling to the x-axis of the Chart.
-
param Boolean
logy
( allow_None=False, bounds=(0, 1), constant=False, default=False, instantiate=False, pickle_default_value=True, precedence=None, readonly=False ) - Whether to apply log scaling to the y-axis of the Chart.
-
param Boolean
logz
( allow_None=False, bounds=(0, 1), constant=False, default=False, instantiate=False, pickle_default_value=True, precedence=None, readonly=False ) - Whether to apply log scaling to the y-axis of the Chart.
-
param Boolean
show_legend
( allow_None=False, bounds=(0, 1), constant=False, default=False, instantiate=False, pickle_default_value=True, precedence=None, readonly=False ) - Whether to show legend for the plot.
-
param Boolean
show_grid
( allow_None=False, bounds=(0, 1), constant=False, default=False, instantiate=False, pickle_default_value=True, precedence=None, readonly=False ) - Whether to show a Cartesian grid on the plot.
-
param ObjectSelector
xaxis
( allow_None=None, check_on_set=True, compute_default_fn=None, constant=False, default=bottom, instantiate=False, objects=[‘top’, ‘bottom’, ‘bare’, ‘top-bare’, ‘bottom-bare’, None], pickle_default_value=True, precedence=None, readonly=False ) - Whether and where to display the xaxis, bare options allow suppressing all axis labels including ticks and xlabel. Valid options are ‘top’, ‘bottom’, ‘bare’, ‘top-bare’ and ‘bottom-bare’.
-
param ObjectSelector
yaxis
( allow_None=None, check_on_set=True, compute_default_fn=None, constant=False, default=left, instantiate=False, objects=[‘left’, ‘right’, ‘bare’, ‘left-bare’, ‘right-bare’, None], pickle_default_value=True, precedence=None, readonly=False ) - Whether and where to display the yaxis, bare options allow suppressing all axis labels including ticks and ylabel. Valid options are ‘left’, ‘right’, ‘bare’ ‘left-bare’ and ‘right-bare’.
-
param Boolean
zaxis
( allow_None=False, bounds=(0, 1), constant=False, default=True, instantiate=False, pickle_default_value=True, precedence=None, readonly=False ) - Whether to display the z-axis.
-
param Parameter
xticks
( allow_None=True, constant=False, default=None, instantiate=False, pickle_default_value=True, precedence=None, readonly=False ) - Ticks along x-axis specified as an integer, explicit list of tick locations, list of tuples containing the locations and labels or a matplotlib tick locator object. If set to None default matplotlib ticking behavior is applied.
-
param Integer
xrotation
( allow_None=False, bounds=(0, 360), constant=False, default=0, inclusive_bounds=(True, True), instantiate=False, pickle_default_value=True, precedence=None, readonly=False, softbounds=None, time_dependent=False, time_fn=<Time Time00001> ) - Rotation angle of the xticks.
-
param Parameter
yticks
( allow_None=True, constant=False, default=None, instantiate=False, pickle_default_value=True, precedence=None, readonly=False ) - Ticks along y-axis specified as an integer, explicit list of tick locations, list of tuples containing the locations and labels or a matplotlib tick locator object. If set to None default matplotlib ticking behavior is applied.
-
param Integer
yrotation
( allow_None=False, bounds=(0, 360), constant=False, default=0, inclusive_bounds=(True, True), instantiate=False, pickle_default_value=True, precedence=None, readonly=False, softbounds=None, time_dependent=False, time_fn=<Time Time00001> ) - Rotation angle of the yticks.
-
param Integer
zrotation
( allow_None=False, bounds=(0, 360), constant=False, default=0, inclusive_bounds=(True, True), instantiate=False, pickle_default_value=True, precedence=None, readonly=False, softbounds=None, time_dependent=False, time_fn=<Time Time00001> ) - Rotation angle of the zticks.
-
param Parameter
zticks
( allow_None=True, constant=False, default=None, instantiate=False, pickle_default_value=True, precedence=None, readonly=False ) - Ticks along z-axis specified as an integer, explicit list of tick locations, list of tuples containing the locations and labels or a matplotlib tick locator object. If set to None default matplotlib ticking behavior is applied.
-
anim
( start=0 , stop=None , fps=30 ) ¶ -
Method to return a matplotlib animation. The start and stop frames may be specified as well as the fps.
-
compute_ranges
( obj , key , ranges ) ¶ -
Given an object, a specific key and the normalization options this method will find the specified normalization options on the appropriate OptionTree, group the elements according to the selected normalization option (i.e. either per frame or over the whole animation) and finally compute the dimension ranges in each group. The new set of ranges is returned.
-
debug
( msg , *args , **kw ) ¶ -
Print msg merged with args as a debugging statement.
See Python’s logging module for details of message formatting.
-
defaults
( ) ¶ -
Return {parameter_name:parameter.default} for all non-constant Parameters.
Note that a Parameter for which instantiate==True has its default instantiated.
-
force_new_dynamic_value
= functools.partial(<function Parameterized.force_new_dynamic_value>, <class 'holoviews.plotting.mpl.annotation.SplinePlot'>) ¶
-
get_extents
( view , ranges ) ¶ -
Gets the extents for the axes from the current View. The globally computed ranges can optionally override the extents.
-
get_param_values
( onlychanged=False ) ¶ -
Return a list of name,value pairs for all Parameters of this object.
If onlychanged is True, will only return values that are not equal to the default value.
-
get_value_generator
= functools.partial(<function Parameterized.get_value_generator>, <class 'holoviews.plotting.mpl.annotation.SplinePlot'>) ¶
-
get_zorder
( overlay , key , el ) ¶ -
Computes the z-order of element in the NdOverlay taking into account possible batching of elements.
-
init_artists
( ax , plot_args , plot_kwargs ) ¶ -
Initializes the artist based on the plot method declared on the plot.
-
init_comm
( ) ¶ -
Initializes comm and attaches streams.
-
inspect_value
= functools.partial(<function Parameterized.inspect_value>, <class 'holoviews.plotting.mpl.annotation.SplinePlot'>) ¶
-
matches
( spec ) ¶ -
Matches a specification against the current Plot.
-
message
( msg , *args , **kw ) ¶ -
Print msg merged with args as a message.
See Python’s logging module for details of message formatting.
-
params
( parameter_name=None ) ¶ -
Return the Parameters of this class as the dictionary {name: parameter_object}
Includes Parameters from this class and its superclasses.
-
pprint
( imports=None , prefix=' ' , unknown_value='<?>' , qualify=False , separator='' ) ¶ -
(Experimental) Pretty printed representation that may be evaluated with eval. See pprint() function for more details.
-
print_param_defaults
( ) ¶ -
Print the default values of all cls’s Parameters.
-
print_param_values
( ) ¶ -
Print the values of all this object’s Parameters.
-
push
( ) ¶ -
Pushes updated plot data via the Comm.
-
refresh
( **kwargs ) ¶ -
Refreshes the plot by rerendering it and then pushing the updated data if the plot has an associated Comm.
-
script_repr
( imports=[] , prefix=' ' ) ¶ -
Variant of __repr__ designed for generating a runnable script.
-
set_default
( param_name , value ) ¶ -
Set the default value of param_name.
Equivalent to setting param_name on the class.
-
set_dynamic_time_fn
= functools.partial(<function Parameterized.set_dynamic_time_fn>, <class 'holoviews.plotting.mpl.annotation.SplinePlot'>) ¶
-
set_param
= functools.partial(<function Parameterized.set_param>, <class 'holoviews.plotting.mpl.annotation.SplinePlot'>) ¶
-
state_pop
( ) ¶ -
Restore the most recently saved state.
See state_push() for more details.
-
state_push
( ) ¶ -
Save this instance’s state.
For Parameterized instances, this includes the state of dynamically generated values.
Subclasses that maintain short-term state should additionally save and restore that state using state_push() and state_pop().
Generally, this method is used by operations that need to test something without permanently altering the objects’ state.
-
teardown_handles
( ) ¶ -
If no custom update_handles method is supplied this method is called to tear down any previous handles before replacing them.
-
traverse
( fn=None , specs=None , full_breadth=True ) ¶ -
Traverses any nested DimensionedPlot returning a list of all plots that match the specs. The specs should be supplied as a list of either Plot types or callables, which should return a boolean given the plot class.
-
verbose
( msg , *args , **kw ) ¶ -
Print msg merged with args as a verbose message.
See Python’s logging module for details of message formatting.
-
warning
( msg , *args , **kw ) ¶ -
Print msg merged with args as a warning, unless module variable warnings_as_exceptions is True, then raise an Exception containing the arguments.
See Python’s logging module for details of message formatting.
-
param Parameter
-
class
holoviews.plotting.mpl.annotation.
TextPlot
( annotation , **params ) [source] ¶ -
Bases:
holoviews.plotting.mpl.annotation.AnnotationPlot
Draw the Text annotation object
-
param Parameter
fontsize
( allow_None=True, constant=False, default=None, instantiate=False, pickle_default_value=True, precedence=None, readonly=False ) - Specifies various fontsizes of the displayed text. Finer control is available by supplying a dictionary where any unmentioned keys reverts to the default sizes, e.g: {‘ticks’:20, ‘title’:15, ‘ylabel’:5, ‘xlabel’:5, ‘legend’:8, ‘legend_title’:13} You can set the fontsize of both ‘ylabel’ and ‘xlabel’ together using the ‘labels’ key.
-
param Boolean
show_title
( allow_None=False, bounds=(0, 1), constant=False, default=True, instantiate=False, pickle_default_value=True, precedence=None, readonly=False ) - Whether to display the plot title.
-
param String
title_format
( allow_None=False, basestring=<class ‘str’>, constant=False, default={label} {group} {dimensions}, instantiate=False, pickle_default_value=True, precedence=None, readonly=False ) - The formatting string for the title of this plot, allows defining a label group separator and dimension labels.
-
param Boolean
normalize
( allow_None=False, bounds=(0, 1), constant=False, default=True, instantiate=False, pickle_default_value=True, precedence=None, readonly=False ) - Whether to compute ranges across all Elements at this level of plotting. Allows selecting normalization at different levels for nested data containers.
-
param Parameter
projection
( allow_None=True, constant=False, default=None, instantiate=False, pickle_default_value=True, precedence=None, readonly=False ) - The projection of the plot axis, default of None is equivalent to 2D plot, ‘3d’ and ‘polar’ are also supported by matplotlib by default. May also supply a custom projection that is either a matplotlib projection type or implements the _as_mpl_axes method.
-
param Number
fig_alpha
( allow_None=False, bounds=(0, 1), constant=False, default=1.0, inclusive_bounds=(True, True), instantiate=False, pickle_default_value=True, precedence=None, readonly=False, softbounds=None, time_dependent=False, time_fn=<Time Time00001> ) - Alpha of the overall figure background.
-
param NumericTuple
fig_bounds
( allow_None=False, constant=False, default=(0.15, 0.15, 0.85, 0.85), instantiate=False, length=4, pickle_default_value=True, precedence=None, readonly=False ) - The bounds of the overall figure as a 4-tuple of the form (left, bottom, right, top), defining the size of the border around the subplots.
-
param Parameter
fig_inches
( allow_None=False, constant=False, default=4, instantiate=False, pickle_default_value=True, precedence=None, readonly=False ) - The overall matplotlib figure size in inches. May be set as an integer in which case it will be used to autocompute a size. Alternatively may be set with an explicit tuple or list, in which case it will be applied directly after being scaled by fig_size. If either the width or height is set to None, it will be computed automatically.
-
param Boolean
fig_latex
( allow_None=False, bounds=(0, 1), constant=False, default=False, instantiate=False, pickle_default_value=True, precedence=None, readonly=False ) - Whether to use LaTeX text in the overall figure.
-
param Dict
fig_rcparams
( allow_None=False, constant=False, default={}, instantiate=True, is_instance=True, pickle_default_value=True, precedence=None, readonly=False ) - matplotlib rc parameters to apply to the overall figure.
-
param Number
fig_size
( allow_None=False, bounds=(1, None), constant=False, default=100.0, inclusive_bounds=(True, True), instantiate=False, pickle_default_value=True, precedence=None, readonly=False, softbounds=None, time_dependent=False, time_fn=<Time Time00001> ) - Size relative to the supplied overall fig_inches in percent.
-
param HookList
initial_hooks
( allow_None=False, bounds=(0, None), constant=False, default=[], instantiate=True, pickle_default_value=True, precedence=None, readonly=False ) - Optional list of hooks called before plotting the data onto the axis. The hook is passed the plot object and the displayed object, other plotting handles can be accessed via plot.handles.
-
param HookList
final_hooks
( allow_None=False, bounds=(0, None), constant=False, default=[], instantiate=True, pickle_default_value=True, precedence=None, readonly=False ) - Optional list of hooks called when finalizing an axis. The hook is passed the plot object and the displayed object, other plotting handles can be accessed via plot.handles.
-
param HookList
finalize_hooks
( allow_None=False, bounds=(0, None), constant=False, default=[], instantiate=True, pickle_default_value=True, precedence=None, readonly=False ) - Optional list of hooks called when finalizing an axis. The hook is passed the plot object and the displayed object, other plotting handles can be accessed via plot.handles.
-
param String
sublabel_format
( allow_None=True, basestring=<class ‘str’>, constant=False, default=None, instantiate=False, pickle_default_value=True, precedence=None, readonly=False ) - Allows labeling the subaxes in each plot with various formatters including {Alpha}, {alpha}, {numeric} and {roman}.
-
param NumericTuple
sublabel_position
( allow_None=False, constant=False, default=(-0.35, 0.85), instantiate=False, length=2, pickle_default_value=True, precedence=None, readonly=False ) - Position relative to the plot for placing the optional subfigure label.
-
param Number
sublabel_size
( allow_None=False, bounds=None, constant=False, default=18, inclusive_bounds=(True, True), instantiate=False, pickle_default_value=True, precedence=None, readonly=False, softbounds=None, time_dependent=False, time_fn=<Time Time00001> ) - Size of optional subfigure label.
-
param Boolean
show_frame
( allow_None=False, bounds=(0, 1), constant=False, default=False, instantiate=False, pickle_default_value=True, precedence=None, readonly=False ) - Whether or not to show a complete frame around the plot.
-
param Boolean
apply_ranges
( allow_None=False, bounds=(0, 1), constant=False, default=True, instantiate=False, pickle_default_value=True, precedence=None, readonly=False ) - Whether to compute the plot bounds from the data itself.
-
param Boolean
apply_extents
( allow_None=False, bounds=(0, 1), constant=False, default=True, instantiate=False, pickle_default_value=True, precedence=None, readonly=False ) - Whether to apply extent overrides on the Elements
-
param Boolean
apply_ticks
( allow_None=False, bounds=(0, 1), constant=False, default=True, instantiate=False, pickle_default_value=True, precedence=None, readonly=False ) - Whether to apply custom ticks.
-
param Parameter
aspect
( allow_None=False, constant=False, default=square, instantiate=False, pickle_default_value=True, precedence=None, readonly=False ) - The aspect ratio mode of the plot. By default, a plot may select its own appropriate aspect ratio but sometimes it may be necessary to force a square aspect ratio (e.g. to display the plot as an element of a grid). The modes ‘auto’ and ‘equal’ correspond to the axis modes of the same name in matplotlib, a numeric value may also be passed.
-
param ClassSelector
bgcolor
( allow_None=True, constant=False, default=None, instantiate=True, is_instance=True, pickle_default_value=True, precedence=None, readonly=False ) - If set bgcolor overrides the background color of the axis.
-
param ObjectSelector
invert_axes
( allow_None=None, check_on_set=False, compute_default_fn=None, constant=False, default=False, instantiate=False, objects=[], pickle_default_value=True, precedence=None, readonly=False ) - Inverts the axes of the plot. Note that this parameter may not always be respected by all plots but should be respected by adjoined plots when appropriate.
-
param Boolean
invert_xaxis
( allow_None=False, bounds=(0, 1), constant=False, default=False, instantiate=False, pickle_default_value=True, precedence=None, readonly=False ) - Whether to invert the plot x-axis.
-
param Boolean
invert_yaxis
( allow_None=False, bounds=(0, 1), constant=False, default=False, instantiate=False, pickle_default_value=True, precedence=None, readonly=False ) - Whether to invert the plot y-axis.
-
param Boolean
invert_zaxis
( allow_None=False, bounds=(0, 1), constant=False, default=False, instantiate=False, pickle_default_value=True, precedence=None, readonly=False ) - Whether to invert the plot z-axis.
-
param List
labelled
( allow_None=False, bounds=(0, None), constant=False, default=[‘x’, ‘y’], instantiate=True, pickle_default_value=True, precedence=None, readonly=False ) - Whether to plot the ‘x’ and ‘y’ labels.
-
param Boolean
logx
( allow_None=False, bounds=(0, 1), constant=False, default=False, instantiate=False, pickle_default_value=True, precedence=None, readonly=False ) - Whether to apply log scaling to the x-axis of the Chart.
-
param Boolean
logy
( allow_None=False, bounds=(0, 1), constant=False, default=False, instantiate=False, pickle_default_value=True, precedence=None, readonly=False ) - Whether to apply log scaling to the y-axis of the Chart.
-
param Boolean
logz
( allow_None=False, bounds=(0, 1), constant=False, default=False, instantiate=False, pickle_default_value=True, precedence=None, readonly=False ) - Whether to apply log scaling to the y-axis of the Chart.
-
param Boolean
show_legend
( allow_None=False, bounds=(0, 1), constant=False, default=False, instantiate=False, pickle_default_value=True, precedence=None, readonly=False ) - Whether to show legend for the plot.
-
param Boolean
show_grid
( allow_None=False, bounds=(0, 1), constant=False, default=False, instantiate=False, pickle_default_value=True, precedence=None, readonly=False ) - Whether to show a Cartesian grid on the plot.
-
param ObjectSelector
xaxis
( allow_None=None, check_on_set=True, compute_default_fn=None, constant=False, default=bottom, instantiate=False, objects=[‘top’, ‘bottom’, ‘bare’, ‘top-bare’, ‘bottom-bare’, None], pickle_default_value=True, precedence=None, readonly=False ) - Whether and where to display the xaxis, bare options allow suppressing all axis labels including ticks and xlabel. Valid options are ‘top’, ‘bottom’, ‘bare’, ‘top-bare’ and ‘bottom-bare’.
-
param ObjectSelector
yaxis
( allow_None=None, check_on_set=True, compute_default_fn=None, constant=False, default=left, instantiate=False, objects=[‘left’, ‘right’, ‘bare’, ‘left-bare’, ‘right-bare’, None], pickle_default_value=True, precedence=None, readonly=False ) - Whether and where to display the yaxis, bare options allow suppressing all axis labels including ticks and ylabel. Valid options are ‘left’, ‘right’, ‘bare’ ‘left-bare’ and ‘right-bare’.
-
param Boolean
zaxis
( allow_None=False, bounds=(0, 1), constant=False, default=True, instantiate=False, pickle_default_value=True, precedence=None, readonly=False ) - Whether to display the z-axis.
-
param Parameter
xticks
( allow_None=True, constant=False, default=None, instantiate=False, pickle_default_value=True, precedence=None, readonly=False ) - Ticks along x-axis specified as an integer, explicit list of tick locations, list of tuples containing the locations and labels or a matplotlib tick locator object. If set to None default matplotlib ticking behavior is applied.
-
param Integer
xrotation
( allow_None=False, bounds=(0, 360), constant=False, default=0, inclusive_bounds=(True, True), instantiate=False, pickle_default_value=True, precedence=None, readonly=False, softbounds=None, time_dependent=False, time_fn=<Time Time00001> ) - Rotation angle of the xticks.
-
param Parameter
yticks
( allow_None=True, constant=False, default=None, instantiate=False, pickle_default_value=True, precedence=None, readonly=False ) - Ticks along y-axis specified as an integer, explicit list of tick locations, list of tuples containing the locations and labels or a matplotlib tick locator object. If set to None default matplotlib ticking behavior is applied.
-
param Integer
yrotation
( allow_None=False, bounds=(0, 360), constant=False, default=0, inclusive_bounds=(True, True), instantiate=False, pickle_default_value=True, precedence=None, readonly=False, softbounds=None, time_dependent=False, time_fn=<Time Time00001> ) - Rotation angle of the yticks.
-
param Integer
zrotation
( allow_None=False, bounds=(0, 360), constant=False, default=0, inclusive_bounds=(True, True), instantiate=False, pickle_default_value=True, precedence=None, readonly=False, softbounds=None, time_dependent=False, time_fn=<Time Time00001> ) - Rotation angle of the zticks.
-
param Parameter
zticks
( allow_None=True, constant=False, default=None, instantiate=False, pickle_default_value=True, precedence=None, readonly=False ) - Ticks along z-axis specified as an integer, explicit list of tick locations, list of tuples containing the locations and labels or a matplotlib tick locator object. If set to None default matplotlib ticking behavior is applied.
-
anim
( start=0 , stop=None , fps=30 ) ¶ -
Method to return a matplotlib animation. The start and stop frames may be specified as well as the fps.
-
compute_ranges
( obj , key , ranges ) ¶ -
Given an object, a specific key and the normalization options this method will find the specified normalization options on the appropriate OptionTree, group the elements according to the selected normalization option (i.e. either per frame or over the whole animation) and finally compute the dimension ranges in each group. The new set of ranges is returned.
-
debug
( msg , *args , **kw ) ¶ -
Print msg merged with args as a debugging statement.
See Python’s logging module for details of message formatting.
-
defaults
( ) ¶ -
Return {parameter_name:parameter.default} for all non-constant Parameters.
Note that a Parameter for which instantiate==True has its default instantiated.
-
force_new_dynamic_value
= functools.partial(<function Parameterized.force_new_dynamic_value>, <class 'holoviews.plotting.mpl.annotation.TextPlot'>) ¶
-
get_extents
( view , ranges ) ¶ -
Gets the extents for the axes from the current View. The globally computed ranges can optionally override the extents.
-
get_param_values
( onlychanged=False ) ¶ -
Return a list of name,value pairs for all Parameters of this object.
If onlychanged is True, will only return values that are not equal to the default value.
-
get_value_generator
= functools.partial(<function Parameterized.get_value_generator>, <class 'holoviews.plotting.mpl.annotation.TextPlot'>) ¶
-
get_zorder
( overlay , key , el ) ¶ -
Computes the z-order of element in the NdOverlay taking into account possible batching of elements.
-
init_artists
( ax , plot_args , plot_kwargs ) ¶ -
Initializes the artist based on the plot method declared on the plot.
-
init_comm
( ) ¶ -
Initializes comm and attaches streams.
-
inspect_value
= functools.partial(<function Parameterized.inspect_value>, <class 'holoviews.plotting.mpl.annotation.TextPlot'>) ¶
-
matches
( spec ) ¶ -
Matches a specification against the current Plot.
-
message
( msg , *args , **kw ) ¶ -
Print msg merged with args as a message.
See Python’s logging module for details of message formatting.
-
params
( parameter_name=None ) ¶ -
Return the Parameters of this class as the dictionary {name: parameter_object}
Includes Parameters from this class and its superclasses.
-
pprint
( imports=None , prefix=' ' , unknown_value='<?>' , qualify=False , separator='' ) ¶ -
(Experimental) Pretty printed representation that may be evaluated with eval. See pprint() function for more details.
-
print_param_defaults
( ) ¶ -
Print the default values of all cls’s Parameters.
-
print_param_values
( ) ¶ -
Print the values of all this object’s Parameters.
-
push
( ) ¶ -
Pushes updated plot data via the Comm.
-
refresh
( **kwargs ) ¶ -
Refreshes the plot by rerendering it and then pushing the updated data if the plot has an associated Comm.
-
script_repr
( imports=[] , prefix=' ' ) ¶ -
Variant of __repr__ designed for generating a runnable script.
-
set_default
( param_name , value ) ¶ -
Set the default value of param_name.
Equivalent to setting param_name on the class.
-
set_dynamic_time_fn
= functools.partial(<function Parameterized.set_dynamic_time_fn>, <class 'holoviews.plotting.mpl.annotation.TextPlot'>) ¶
-
set_param
= functools.partial(<function Parameterized.set_param>, <class 'holoviews.plotting.mpl.annotation.TextPlot'>) ¶
-
state_pop
( ) ¶ -
Restore the most recently saved state.
See state_push() for more details.
-
state_push
( ) ¶ -
Save this instance’s state.
For Parameterized instances, this includes the state of dynamically generated values.
Subclasses that maintain short-term state should additionally save and restore that state using state_push() and state_pop().
Generally, this method is used by operations that need to test something without permanently altering the objects’ state.
-
teardown_handles
( ) ¶ -
If no custom update_handles method is supplied this method is called to tear down any previous handles before replacing them.
-
traverse
( fn=None , specs=None , full_breadth=True ) ¶ -
Traverses any nested DimensionedPlot returning a list of all plots that match the specs. The specs should be supplied as a list of either Plot types or callables, which should return a boolean given the plot class.
-
verbose
( msg , *args , **kw ) ¶ -
Print msg merged with args as a verbose message.
See Python’s logging module for details of message formatting.
-
warning
( msg , *args , **kw ) ¶ -
Print msg merged with args as a warning, unless module variable warnings_as_exceptions is True, then raise an Exception containing the arguments.
See Python’s logging module for details of message formatting.
-
param Parameter
-
class
holoviews.plotting.mpl.annotation.
VLinePlot
( annotation , **params ) [source] ¶ -
Bases:
holoviews.plotting.mpl.annotation.AnnotationPlot
Draw a vertical line on the axis
-
param Parameter
fontsize
( allow_None=True, constant=False, default=None, instantiate=False, pickle_default_value=True, precedence=None, readonly=False ) - Specifies various fontsizes of the displayed text. Finer control is available by supplying a dictionary where any unmentioned keys reverts to the default sizes, e.g: {‘ticks’:20, ‘title’:15, ‘ylabel’:5, ‘xlabel’:5, ‘legend’:8, ‘legend_title’:13} You can set the fontsize of both ‘ylabel’ and ‘xlabel’ together using the ‘labels’ key.
-
param Boolean
show_title
( allow_None=False, bounds=(0, 1), constant=False, default=True, instantiate=False, pickle_default_value=True, precedence=None, readonly=False ) - Whether to display the plot title.
-
param String
title_format
( allow_None=False, basestring=<class ‘str’>, constant=False, default={label} {group} {dimensions}, instantiate=False, pickle_default_value=True, precedence=None, readonly=False ) - The formatting string for the title of this plot, allows defining a label group separator and dimension labels.
-
param Boolean
normalize
( allow_None=False, bounds=(0, 1), constant=False, default=True, instantiate=False, pickle_default_value=True, precedence=None, readonly=False ) - Whether to compute ranges across all Elements at this level of plotting. Allows selecting normalization at different levels for nested data containers.
-
param Parameter
projection
( allow_None=True, constant=False, default=None, instantiate=False, pickle_default_value=True, precedence=None, readonly=False ) - The projection of the plot axis, default of None is equivalent to 2D plot, ‘3d’ and ‘polar’ are also supported by matplotlib by default. May also supply a custom projection that is either a matplotlib projection type or implements the _as_mpl_axes method.
-
param Number
fig_alpha
( allow_None=False, bounds=(0, 1), constant=False, default=1.0, inclusive_bounds=(True, True), instantiate=False, pickle_default_value=True, precedence=None, readonly=False, softbounds=None, time_dependent=False, time_fn=<Time Time00001> ) - Alpha of the overall figure background.
-
param NumericTuple
fig_bounds
( allow_None=False, constant=False, default=(0.15, 0.15, 0.85, 0.85), instantiate=False, length=4, pickle_default_value=True, precedence=None, readonly=False ) - The bounds of the overall figure as a 4-tuple of the form (left, bottom, right, top), defining the size of the border around the subplots.
-
param Parameter
fig_inches
( allow_None=False, constant=False, default=4, instantiate=False, pickle_default_value=True, precedence=None, readonly=False ) - The overall matplotlib figure size in inches. May be set as an integer in which case it will be used to autocompute a size. Alternatively may be set with an explicit tuple or list, in which case it will be applied directly after being scaled by fig_size. If either the width or height is set to None, it will be computed automatically.
-
param Boolean
fig_latex
( allow_None=False, bounds=(0, 1), constant=False, default=False, instantiate=False, pickle_default_value=True, precedence=None, readonly=False ) - Whether to use LaTeX text in the overall figure.
-
param Dict
fig_rcparams
( allow_None=False, constant=False, default={}, instantiate=True, is_instance=True, pickle_default_value=True, precedence=None, readonly=False ) - matplotlib rc parameters to apply to the overall figure.
-
param Number
fig_size
( allow_None=False, bounds=(1, None), constant=False, default=100.0, inclusive_bounds=(True, True), instantiate=False, pickle_default_value=True, precedence=None, readonly=False, softbounds=None, time_dependent=False, time_fn=<Time Time00001> ) - Size relative to the supplied overall fig_inches in percent.
-
param HookList
initial_hooks
( allow_None=False, bounds=(0, None), constant=False, default=[], instantiate=True, pickle_default_value=True, precedence=None, readonly=False ) - Optional list of hooks called before plotting the data onto the axis. The hook is passed the plot object and the displayed object, other plotting handles can be accessed via plot.handles.
-
param HookList
final_hooks
( allow_None=False, bounds=(0, None), constant=False, default=[], instantiate=True, pickle_default_value=True, precedence=None, readonly=False ) - Optional list of hooks called when finalizing an axis. The hook is passed the plot object and the displayed object, other plotting handles can be accessed via plot.handles.
-
param HookList
finalize_hooks
( allow_None=False, bounds=(0, None), constant=False, default=[], instantiate=True, pickle_default_value=True, precedence=None, readonly=False ) - Optional list of hooks called when finalizing an axis. The hook is passed the plot object and the displayed object, other plotting handles can be accessed via plot.handles.
-
param String
sublabel_format
( allow_None=True, basestring=<class ‘str’>, constant=False, default=None, instantiate=False, pickle_default_value=True, precedence=None, readonly=False ) - Allows labeling the subaxes in each plot with various formatters including {Alpha}, {alpha}, {numeric} and {roman}.
-
param NumericTuple
sublabel_position
( allow_None=False, constant=False, default=(-0.35, 0.85), instantiate=False, length=2, pickle_default_value=True, precedence=None, readonly=False ) - Position relative to the plot for placing the optional subfigure label.
-
param Number
sublabel_size
( allow_None=False, bounds=None, constant=False, default=18, inclusive_bounds=(True, True), instantiate=False, pickle_default_value=True, precedence=None, readonly=False, softbounds=None, time_dependent=False, time_fn=<Time Time00001> ) - Size of optional subfigure label.
-
param Boolean
show_frame
( allow_None=False, bounds=(0, 1), constant=False, default=False, instantiate=False, pickle_default_value=True, precedence=None, readonly=False ) - Whether or not to show a complete frame around the plot.
-
param Boolean
apply_ranges
( allow_None=False, bounds=(0, 1), constant=False, default=True, instantiate=False, pickle_default_value=True, precedence=None, readonly=False ) - Whether to compute the plot bounds from the data itself.
-
param Boolean
apply_extents
( allow_None=False, bounds=(0, 1), constant=False, default=True, instantiate=False, pickle_default_value=True, precedence=None, readonly=False ) - Whether to apply extent overrides on the Elements
-
param Boolean
apply_ticks
( allow_None=False, bounds=(0, 1), constant=False, default=True, instantiate=False, pickle_default_value=True, precedence=None, readonly=False ) - Whether to apply custom ticks.
-
param Parameter
aspect
( allow_None=False, constant=False, default=square, instantiate=False, pickle_default_value=True, precedence=None, readonly=False ) - The aspect ratio mode of the plot. By default, a plot may select its own appropriate aspect ratio but sometimes it may be necessary to force a square aspect ratio (e.g. to display the plot as an element of a grid). The modes ‘auto’ and ‘equal’ correspond to the axis modes of the same name in matplotlib, a numeric value may also be passed.
-
param ClassSelector
bgcolor
( allow_None=True, constant=False, default=None, instantiate=True, is_instance=True, pickle_default_value=True, precedence=None, readonly=False ) - If set bgcolor overrides the background color of the axis.
-
param ObjectSelector
invert_axes
( allow_None=None, check_on_set=False, compute_default_fn=None, constant=False, default=False, instantiate=False, objects=[], pickle_default_value=True, precedence=None, readonly=False ) - Inverts the axes of the plot. Note that this parameter may not always be respected by all plots but should be respected by adjoined plots when appropriate.
-
param Boolean
invert_xaxis
( allow_None=False, bounds=(0, 1), constant=False, default=False, instantiate=False, pickle_default_value=True, precedence=None, readonly=False ) - Whether to invert the plot x-axis.
-
param Boolean
invert_yaxis
( allow_None=False, bounds=(0, 1), constant=False, default=False, instantiate=False, pickle_default_value=True, precedence=None, readonly=False ) - Whether to invert the plot y-axis.
-
param Boolean
invert_zaxis
( allow_None=False, bounds=(0, 1), constant=False, default=False, instantiate=False, pickle_default_value=True, precedence=None, readonly=False ) - Whether to invert the plot z-axis.
-
param List
labelled
( allow_None=False, bounds=(0, None), constant=False, default=[‘x’, ‘y’], instantiate=True, pickle_default_value=True, precedence=None, readonly=False ) - Whether to plot the ‘x’ and ‘y’ labels.
-
param Boolean
logx
( allow_None=False, bounds=(0, 1), constant=False, default=False, instantiate=False, pickle_default_value=True, precedence=None, readonly=False ) - Whether to apply log scaling to the x-axis of the Chart.
-
param Boolean
logy
( allow_None=False, bounds=(0, 1), constant=False, default=False, instantiate=False, pickle_default_value=True, precedence=None, readonly=False ) - Whether to apply log scaling to the y-axis of the Chart.
-
param Boolean
logz
( allow_None=False, bounds=(0, 1), constant=False, default=False, instantiate=False, pickle_default_value=True, precedence=None, readonly=False ) - Whether to apply log scaling to the y-axis of the Chart.
-
param Boolean
show_legend
( allow_None=False, bounds=(0, 1), constant=False, default=False, instantiate=False, pickle_default_value=True, precedence=None, readonly=False ) - Whether to show legend for the plot.
-
param Boolean
show_grid
( allow_None=False, bounds=(0, 1), constant=False, default=False, instantiate=False, pickle_default_value=True, precedence=None, readonly=False ) - Whether to show a Cartesian grid on the plot.
-
param ObjectSelector
xaxis
( allow_None=None, check_on_set=True, compute_default_fn=None, constant=False, default=bottom, instantiate=False, objects=[‘top’, ‘bottom’, ‘bare’, ‘top-bare’, ‘bottom-bare’, None], pickle_default_value=True, precedence=None, readonly=False ) - Whether and where to display the xaxis, bare options allow suppressing all axis labels including ticks and xlabel. Valid options are ‘top’, ‘bottom’, ‘bare’, ‘top-bare’ and ‘bottom-bare’.
-
param ObjectSelector
yaxis
( allow_None=None, check_on_set=True, compute_default_fn=None, constant=False, default=left, instantiate=False, objects=[‘left’, ‘right’, ‘bare’, ‘left-bare’, ‘right-bare’, None], pickle_default_value=True, precedence=None, readonly=False ) - Whether and where to display the yaxis, bare options allow suppressing all axis labels including ticks and ylabel. Valid options are ‘left’, ‘right’, ‘bare’ ‘left-bare’ and ‘right-bare’.
-
param Boolean
zaxis
( allow_None=False, bounds=(0, 1), constant=False, default=True, instantiate=False, pickle_default_value=True, precedence=None, readonly=False ) - Whether to display the z-axis.
-
param Parameter
xticks
( allow_None=True, constant=False, default=None, instantiate=False, pickle_default_value=True, precedence=None, readonly=False ) - Ticks along x-axis specified as an integer, explicit list of tick locations, list of tuples containing the locations and labels or a matplotlib tick locator object. If set to None default matplotlib ticking behavior is applied.
-
param Integer
xrotation
( allow_None=False, bounds=(0, 360), constant=False, default=0, inclusive_bounds=(True, True), instantiate=False, pickle_default_value=True, precedence=None, readonly=False, softbounds=None, time_dependent=False, time_fn=<Time Time00001> ) - Rotation angle of the xticks.
-
param Parameter
yticks
( allow_None=True, constant=False, default=None, instantiate=False, pickle_default_value=True, precedence=None, readonly=False ) - Ticks along y-axis specified as an integer, explicit list of tick locations, list of tuples containing the locations and labels or a matplotlib tick locator object. If set to None default matplotlib ticking behavior is applied.
-
param Integer
yrotation
( allow_None=False, bounds=(0, 360), constant=False, default=0, inclusive_bounds=(True, True), instantiate=False, pickle_default_value=True, precedence=None, readonly=False, softbounds=None, time_dependent=False, time_fn=<Time Time00001> ) - Rotation angle of the yticks.
-
param Integer
zrotation
( allow_None=False, bounds=(0, 360), constant=False, default=0, inclusive_bounds=(True, True), instantiate=False, pickle_default_value=True, precedence=None, readonly=False, softbounds=None, time_dependent=False, time_fn=<Time Time00001> ) - Rotation angle of the zticks.
-
param Parameter
zticks
( allow_None=True, constant=False, default=None, instantiate=False, pickle_default_value=True, precedence=None, readonly=False ) - Ticks along z-axis specified as an integer, explicit list of tick locations, list of tuples containing the locations and labels or a matplotlib tick locator object. If set to None default matplotlib ticking behavior is applied.
-
anim
( start=0 , stop=None , fps=30 ) ¶ -
Method to return a matplotlib animation. The start and stop frames may be specified as well as the fps.
-
compute_ranges
( obj , key , ranges ) ¶ -
Given an object, a specific key and the normalization options this method will find the specified normalization options on the appropriate OptionTree, group the elements according to the selected normalization option (i.e. either per frame or over the whole animation) and finally compute the dimension ranges in each group. The new set of ranges is returned.
-
debug
( msg , *args , **kw ) ¶ -
Print msg merged with args as a debugging statement.
See Python’s logging module for details of message formatting.
-
defaults
( ) ¶ -
Return {parameter_name:parameter.default} for all non-constant Parameters.
Note that a Parameter for which instantiate==True has its default instantiated.
-
force_new_dynamic_value
= functools.partial(<function Parameterized.force_new_dynamic_value>, <class 'holoviews.plotting.mpl.annotation.VLinePlot'>) ¶
-
get_extents
( view , ranges ) ¶ -
Gets the extents for the axes from the current View. The globally computed ranges can optionally override the extents.
-
get_param_values
( onlychanged=False ) ¶ -
Return a list of name,value pairs for all Parameters of this object.
If onlychanged is True, will only return values that are not equal to the default value.
-
get_value_generator
= functools.partial(<function Parameterized.get_value_generator>, <class 'holoviews.plotting.mpl.annotation.VLinePlot'>) ¶
-
get_zorder
( overlay , key , el ) ¶ -
Computes the z-order of element in the NdOverlay taking into account possible batching of elements.
-
init_artists
( ax , plot_args , plot_kwargs ) ¶ -
Initializes the artist based on the plot method declared on the plot.
-
init_comm
( ) ¶ -
Initializes comm and attaches streams.
-
inspect_value
= functools.partial(<function Parameterized.inspect_value>, <class 'holoviews.plotting.mpl.annotation.VLinePlot'>) ¶
-
matches
( spec ) ¶ -
Matches a specification against the current Plot.
-
message
( msg , *args , **kw ) ¶ -
Print msg merged with args as a message.
See Python’s logging module for details of message formatting.
-
params
( parameter_name=None ) ¶ -
Return the Parameters of this class as the dictionary {name: parameter_object}
Includes Parameters from this class and its superclasses.
-
pprint
( imports=None , prefix=' ' , unknown_value='<?>' , qualify=False , separator='' ) ¶ -
(Experimental) Pretty printed representation that may be evaluated with eval. See pprint() function for more details.
-
print_param_defaults
( ) ¶ -
Print the default values of all cls’s Parameters.
-
print_param_values
( ) ¶ -
Print the values of all this object’s Parameters.
-
push
( ) ¶ -
Pushes updated plot data via the Comm.
-
refresh
( **kwargs ) ¶ -
Refreshes the plot by rerendering it and then pushing the updated data if the plot has an associated Comm.
-
script_repr
( imports=[] , prefix=' ' ) ¶ -
Variant of __repr__ designed for generating a runnable script.
-
set_default
( param_name , value ) ¶ -
Set the default value of param_name.
Equivalent to setting param_name on the class.
-
set_dynamic_time_fn
= functools.partial(<function Parameterized.set_dynamic_time_fn>, <class 'holoviews.plotting.mpl.annotation.VLinePlot'>) ¶
-
set_param
= functools.partial(<function Parameterized.set_param>, <class 'holoviews.plotting.mpl.annotation.VLinePlot'>) ¶
-
state_pop
( ) ¶ -
Restore the most recently saved state.
See state_push() for more details.
-
state_push
( ) ¶ -
Save this instance’s state.
For Parameterized instances, this includes the state of dynamically generated values.
Subclasses that maintain short-term state should additionally save and restore that state using state_push() and state_pop().
Generally, this method is used by operations that need to test something without permanently altering the objects’ state.
-
teardown_handles
( ) ¶ -
If no custom update_handles method is supplied this method is called to tear down any previous handles before replacing them.
-
traverse
( fn=None , specs=None , full_breadth=True ) ¶ -
Traverses any nested DimensionedPlot returning a list of all plots that match the specs. The specs should be supplied as a list of either Plot types or callables, which should return a boolean given the plot class.
-
verbose
( msg , *args , **kw ) ¶ -
Print msg merged with args as a verbose message.
See Python’s logging module for details of message formatting.
-
warning
( msg , *args , **kw ) ¶ -
Print msg merged with args as a warning, unless module variable warnings_as_exceptions is True, then raise an Exception containing the arguments.
See Python’s logging module for details of message formatting.
-
param Parameter
chart
Module
¶
-
class
holoviews.plotting.mpl.chart.
BoxPlot
( element , **params ) [source] ¶ -
Bases:
holoviews.plotting.mpl.chart.ChartPlot
BoxPlot plots the ErrorBar Element type and supporting both horizontal and vertical error bars via the ‘horizontal’ plot option.
-
param Parameter
fontsize
( allow_None=True, constant=False, default=None, instantiate=False, pickle_default_value=True, precedence=None, readonly=False ) - Specifies various fontsizes of the displayed text. Finer control is available by supplying a dictionary where any unmentioned keys reverts to the default sizes, e.g: {‘ticks’:20, ‘title’:15, ‘ylabel’:5, ‘xlabel’:5, ‘legend’:8, ‘legend_title’:13} You can set the fontsize of both ‘ylabel’ and ‘xlabel’ together using the ‘labels’ key.
-
param Boolean
show_title
( allow_None=False, bounds=(0, 1), constant=False, default=True, instantiate=False, pickle_default_value=True, precedence=None, readonly=False ) - Whether to display the plot title.
-
param String
title_format
( allow_None=False, basestring=<class ‘str’>, constant=False, default={label} {group} {dimensions}, instantiate=False, pickle_default_value=True, precedence=None, readonly=False ) - The formatting string for the title of this plot, allows defining a label group separator and dimension labels.
-
param Boolean
normalize
( allow_None=False, bounds=(0, 1), constant=False, default=True, instantiate=False, pickle_default_value=True, precedence=None, readonly=False ) - Whether to compute ranges across all Elements at this level of plotting. Allows selecting normalization at different levels for nested data containers.
-
param Parameter
projection
( allow_None=True, constant=False, default=None, instantiate=False, pickle_default_value=True, precedence=None, readonly=False ) - The projection of the plot axis, default of None is equivalent to 2D plot, ‘3d’ and ‘polar’ are also supported by matplotlib by default. May also supply a custom projection that is either a matplotlib projection type or implements the _as_mpl_axes method.
-
param Number
fig_alpha
( allow_None=False, bounds=(0, 1), constant=False, default=1.0, inclusive_bounds=(True, True), instantiate=False, pickle_default_value=True, precedence=None, readonly=False, softbounds=None, time_dependent=False, time_fn=<Time Time00001> ) - Alpha of the overall figure background.
-
param NumericTuple
fig_bounds
( allow_None=False, constant=False, default=(0.15, 0.15, 0.85, 0.85), instantiate=False, length=4, pickle_default_value=True, precedence=None, readonly=False ) - The bounds of the overall figure as a 4-tuple of the form (left, bottom, right, top), defining the size of the border around the subplots.
-
param Parameter
fig_inches
( allow_None=False, constant=False, default=4, instantiate=False, pickle_default_value=True, precedence=None, readonly=False ) - The overall matplotlib figure size in inches. May be set as an integer in which case it will be used to autocompute a size. Alternatively may be set with an explicit tuple or list, in which case it will be applied directly after being scaled by fig_size. If either the width or height is set to None, it will be computed automatically.
-
param Boolean
fig_latex
( allow_None=False, bounds=(0, 1), constant=False, default=False, instantiate=False, pickle_default_value=True, precedence=None, readonly=False ) - Whether to use LaTeX text in the overall figure.
-
param Dict
fig_rcparams
( allow_None=False, constant=False, default={}, instantiate=True, is_instance=True, pickle_default_value=True, precedence=None, readonly=False ) - matplotlib rc parameters to apply to the overall figure.
-
param Number
fig_size
( allow_None=False, bounds=(1, None), constant=False, default=100.0, inclusive_bounds=(True, True), instantiate=False, pickle_default_value=True, precedence=None, readonly=False, softbounds=None, time_dependent=False, time_fn=<Time Time00001> ) - Size relative to the supplied overall fig_inches in percent.
-
param HookList
initial_hooks
( allow_None=False, bounds=(0, None), constant=False, default=[], instantiate=True, pickle_default_value=True, precedence=None, readonly=False ) - Optional list of hooks called before plotting the data onto the axis. The hook is passed the plot object and the displayed object, other plotting handles can be accessed via plot.handles.
-
param HookList
final_hooks
( allow_None=False, bounds=(0, None), constant=False, default=[], instantiate=True, pickle_default_value=True, precedence=None, readonly=False ) - Optional list of hooks called when finalizing an axis. The hook is passed the plot object and the displayed object, other plotting handles can be accessed via plot.handles.
-
param HookList
finalize_hooks
( allow_None=False, bounds=(0, None), constant=False, default=[], instantiate=True, pickle_default_value=True, precedence=None, readonly=False ) - Optional list of hooks called when finalizing an axis. The hook is passed the plot object and the displayed object, other plotting handles can be accessed via plot.handles.
-
param String
sublabel_format
( allow_None=True, basestring=<class ‘str’>, constant=False, default=None, instantiate=False, pickle_default_value=True, precedence=None, readonly=False ) - Allows labeling the subaxes in each plot with various formatters including {Alpha}, {alpha}, {numeric} and {roman}.
-
param NumericTuple
sublabel_position
( allow_None=False, constant=False, default=(-0.35, 0.85), instantiate=False, length=2, pickle_default_value=True, precedence=None, readonly=False ) - Position relative to the plot for placing the optional subfigure label.
-
param Number
sublabel_size
( allow_None=False, bounds=None, constant=False, default=18, inclusive_bounds=(True, True), instantiate=False, pickle_default_value=True, precedence=None, readonly=False, softbounds=None, time_dependent=False, time_fn=<Time Time00001> ) - Size of optional subfigure label.
-
param Boolean
show_frame
( allow_None=False, bounds=(0, 1), constant=False, default=False, instantiate=False, pickle_default_value=True, precedence=None, readonly=False ) - Whether or not to show a complete frame around the plot.
-
param Boolean
apply_ranges
( allow_None=False, bounds=(0, 1), constant=False, default=True, instantiate=False, pickle_default_value=True, precedence=None, readonly=False ) - Whether to compute the plot bounds from the data itself.
-
param Boolean
apply_extents
( allow_None=False, bounds=(0, 1), constant=False, default=True, instantiate=False, pickle_default_value=True, precedence=None, readonly=False ) - Whether to apply extent overrides on the Elements
-
param Boolean
apply_ticks
( allow_None=False, bounds=(0, 1), constant=False, default=True, instantiate=False, pickle_default_value=True, precedence=None, readonly=False ) - Whether to apply custom ticks.
-
param Parameter
aspect
( allow_None=False, constant=False, default=square, instantiate=False, pickle_default_value=True, precedence=None, readonly=False ) - The aspect ratio mode of the plot. By default, a plot may select its own appropriate aspect ratio but sometimes it may be necessary to force a square aspect ratio (e.g. to display the plot as an element of a grid). The modes ‘auto’ and ‘equal’ correspond to the axis modes of the same name in matplotlib, a numeric value may also be passed.
-
param ClassSelector
bgcolor
( allow_None=True, constant=False, default=None, instantiate=True, is_instance=True, pickle_default_value=True, precedence=None, readonly=False ) - If set bgcolor overrides the background color of the axis.
-
param ObjectSelector
invert_axes
( allow_None=None, check_on_set=False, compute_default_fn=None, constant=False, default=False, instantiate=False, objects=[], pickle_default_value=True, precedence=None, readonly=False ) - Inverts the axes of the plot. Note that this parameter may not always be respected by all plots but should be respected by adjoined plots when appropriate.
-
param Boolean
invert_xaxis
( allow_None=False, bounds=(0, 1), constant=False, default=False, instantiate=False, pickle_default_value=True, precedence=None, readonly=False ) - Whether to invert the plot x-axis.
-
param Boolean
invert_yaxis
( allow_None=False, bounds=(0, 1), constant=False, default=False, instantiate=False, pickle_default_value=True, precedence=None, readonly=False ) - Whether to invert the plot y-axis.
-
param Boolean
invert_zaxis
( allow_None=False, bounds=(0, 1), constant=False, default=False, instantiate=False, pickle_default_value=True, precedence=None, readonly=False ) - Whether to invert the plot z-axis.
-
param List
labelled
( allow_None=False, bounds=(0, None), constant=False, default=[‘x’, ‘y’], instantiate=True, pickle_default_value=True, precedence=None, readonly=False ) - Whether to plot the ‘x’ and ‘y’ labels.
-
param Boolean
logx
( allow_None=False, bounds=(0, 1), constant=False, default=False, instantiate=False, pickle_default_value=True, precedence=None, readonly=False ) - Whether to apply log scaling to the x-axis of the Chart.
-
param Boolean
logy
( allow_None=False, bounds=(0, 1), constant=False, default=False, instantiate=False, pickle_default_value=True, precedence=None, readonly=False ) - Whether to apply log scaling to the y-axis of the Chart.
-
param Boolean
logz
( allow_None=False, bounds=(0, 1), constant=False, default=False, instantiate=False, pickle_default_value=True, precedence=None, readonly=False ) - Whether to apply log scaling to the y-axis of the Chart.
-
param Boolean
show_legend
( allow_None=False, bounds=(0, 1), constant=False, default=True, instantiate=False, pickle_default_value=True, precedence=None, readonly=False ) - Whether to show legend for the plot.
-
param Boolean
show_grid
( allow_None=False, bounds=(0, 1), constant=False, default=False, instantiate=False, pickle_default_value=True, precedence=None, readonly=False ) - Whether to show a Cartesian grid on the plot.
-
param ObjectSelector
xaxis
( allow_None=None, check_on_set=True, compute_default_fn=None, constant=False, default=bottom, instantiate=False, objects=[‘top’, ‘bottom’, ‘bare’, ‘top-bare’, ‘bottom-bare’, None], pickle_default_value=True, precedence=None, readonly=False ) - Whether and where to display the xaxis, bare options allow suppressing all axis labels including ticks and xlabel. Valid options are ‘top’, ‘bottom’, ‘bare’, ‘top-bare’ and ‘bottom-bare’.
-
param ObjectSelector
yaxis
( allow_None=None, check_on_set=True, compute_default_fn=None, constant=False, default=left, instantiate=False, objects=[‘left’, ‘right’, ‘bare’, ‘left-bare’, ‘right-bare’, None], pickle_default_value=True, precedence=None, readonly=False ) - Whether and where to display the yaxis, bare options allow suppressing all axis labels including ticks and ylabel. Valid options are ‘left’, ‘right’, ‘bare’ ‘left-bare’ and ‘right-bare’.
-
param Boolean
zaxis
( allow_None=False, bounds=(0, 1), constant=False, default=True, instantiate=False, pickle_default_value=True, precedence=None, readonly=False ) - Whether to display the z-axis.
-
param Parameter
xticks
( allow_None=True, constant=False, default=None, instantiate=False, pickle_default_value=True, precedence=None, readonly=False ) - Ticks along x-axis specified as an integer, explicit list of tick locations, list of tuples containing the locations and labels or a matplotlib tick locator object. If set to None default matplotlib ticking behavior is applied.
-
param Integer
xrotation
( allow_None=False, bounds=(0, 360), constant=False, default=0, inclusive_bounds=(True, True), instantiate=False, pickle_default_value=True, precedence=None, readonly=False, softbounds=None, time_dependent=False, time_fn=<Time Time00001> ) - Rotation angle of the xticks.
-
param Parameter
yticks
( allow_None=True, constant=False, default=None, instantiate=False, pickle_default_value=True, precedence=None, readonly=False ) - Ticks along y-axis specified as an integer, explicit list of tick locations, list of tuples containing the locations and labels or a matplotlib tick locator object. If set to None default matplotlib ticking behavior is applied.
-
param Integer
yrotation
( allow_None=False, bounds=(0, 360), constant=False, default=0, inclusive_bounds=(True, True), instantiate=False, pickle_default_value=True, precedence=None, readonly=False, softbounds=None, time_dependent=False, time_fn=<Time Time00001> ) - Rotation angle of the yticks.
-
param Integer
zrotation
( allow_None=False, bounds=(0, 360), constant=False, default=0, inclusive_bounds=(True, True), instantiate=False, pickle_default_value=True, precedence=None, readonly=False, softbounds=None, time_dependent=False, time_fn=<Time Time00001> ) - Rotation angle of the zticks.
-
param Parameter
zticks
( allow_None=True, constant=False, default=None, instantiate=False, pickle_default_value=True, precedence=None, readonly=False ) - Ticks along z-axis specified as an integer, explicit list of tick locations, list of tuples containing the locations and labels or a matplotlib tick locator object. If set to None default matplotlib ticking behavior is applied.
-
anim
( start=0 , stop=None , fps=30 ) ¶ -
Method to return a matplotlib animation. The start and stop frames may be specified as well as the fps.
-
compute_ranges
( obj , key , ranges ) ¶ -
Given an object, a specific key and the normalization options this method will find the specified normalization options on the appropriate OptionTree, group the elements according to the selected normalization option (i.e. either per frame or over the whole animation) and finally compute the dimension ranges in each group. The new set of ranges is returned.
-
debug
( msg , *args , **kw ) ¶ -
Print msg merged with args as a debugging statement.
See Python’s logging module for details of message formatting.
-
defaults
( ) ¶ -
Return {parameter_name:parameter.default} for all non-constant Parameters.
Note that a Parameter for which instantiate==True has its default instantiated.
-
force_new_dynamic_value
= functools.partial(<function Parameterized.force_new_dynamic_value>, <class 'holoviews.plotting.mpl.chart.BoxPlot'>) ¶
-
get_param_values
( onlychanged=False ) ¶ -
Return a list of name,value pairs for all Parameters of this object.
If onlychanged is True, will only return values that are not equal to the default value.
-
get_value_generator
= functools.partial(<function Parameterized.get_value_generator>, <class 'holoviews.plotting.mpl.chart.BoxPlot'>) ¶
-
get_zorder
( overlay , key , el ) ¶ -
Computes the z-order of element in the NdOverlay taking into account possible batching of elements.
-
init_artists
( ax , plot_args , plot_kwargs ) ¶ -
Initializes the artist based on the plot method declared on the plot.
-
init_comm
( ) ¶ -
Initializes comm and attaches streams.
-
inspect_value
= functools.partial(<function Parameterized.inspect_value>, <class 'holoviews.plotting.mpl.chart.BoxPlot'>) ¶
-
matches
( spec ) ¶ -
Matches a specification against the current Plot.
-
message
( msg , *args , **kw ) ¶ -
Print msg merged with args as a message.
See Python’s logging module for details of message formatting.
-
params
( parameter_name=None ) ¶ -
Return the Parameters of this class as the dictionary {name: parameter_object}
Includes Parameters from this class and its superclasses.
-
pprint
( imports=None , prefix=' ' , unknown_value='<?>' , qualify=False , separator='' ) ¶ -
(Experimental) Pretty printed representation that may be evaluated with eval. See pprint() function for more details.
-
print_param_defaults
( ) ¶ -
Print the default values of all cls’s Parameters.
-
print_param_values
( ) ¶ -
Print the values of all this object’s Parameters.
-
push
( ) ¶ -
Pushes updated plot data via the Comm.
-
refresh
( **kwargs ) ¶ -
Refreshes the plot by rerendering it and then pushing the updated data if the plot has an associated Comm.
-
script_repr
( imports=[] , prefix=' ' ) ¶ -
Variant of __repr__ designed for generating a runnable script.
-
set_default
( param_name , value ) ¶ -
Set the default value of param_name.
Equivalent to setting param_name on the class.
-
set_dynamic_time_fn
= functools.partial(<function Parameterized.set_dynamic_time_fn>, <class 'holoviews.plotting.mpl.chart.BoxPlot'>) ¶
-
set_param
= functools.partial(<function Parameterized.set_param>, <class 'holoviews.plotting.mpl.chart.BoxPlot'>) ¶
-
state_pop
( ) ¶ -
Restore the most recently saved state.
See state_push() for more details.
-
state_push
( ) ¶ -
Save this instance’s state.
For Parameterized instances, this includes the state of dynamically generated values.
Subclasses that maintain short-term state should additionally save and restore that state using state_push() and state_pop().
Generally, this method is used by operations that need to test something without permanently altering the objects’ state.
-
traverse
( fn=None , specs=None , full_breadth=True ) ¶ -
Traverses any nested DimensionedPlot returning a list of all plots that match the specs. The specs should be supplied as a list of either Plot types or callables, which should return a boolean given the plot class.
-
update_handles
( key , axis , element , ranges , style ) ¶ -
Update the elements of the plot.
-
verbose
( msg , *args , **kw ) ¶ -
Print msg merged with args as a verbose message.
See Python’s logging module for details of message formatting.
-
warning
( msg , *args , **kw ) ¶ -
Print msg merged with args as a warning, unless module variable warnings_as_exceptions is True, then raise an Exception containing the arguments.
See Python’s logging module for details of message formatting.
-
param Parameter
-
class
holoviews.plotting.mpl.chart.
CurvePlot
( element , **params ) [source] ¶ -
Bases:
holoviews.plotting.mpl.chart.ChartPlot
CurvePlot can plot Curve and ViewMaps of Curve, which can be displayed as a single frame or animation. Axes, titles and legends are automatically generated from dim_info.
If the dimension is set to cyclic in the dim_info it will rotate the curve so that minimum y values are at the minimum x value to make the plots easier to interpret.
-
param Parameter
fontsize
( allow_None=True, constant=False, default=None, instantiate=False, pickle_default_value=True, precedence=None, readonly=False ) - Specifies various fontsizes of the displayed text. Finer control is available by supplying a dictionary where any unmentioned keys reverts to the default sizes, e.g: {‘ticks’:20, ‘title’:15, ‘ylabel’:5, ‘xlabel’:5, ‘legend’:8, ‘legend_title’:13} You can set the fontsize of both ‘ylabel’ and ‘xlabel’ together using the ‘labels’ key.
-
param Boolean
show_title
( allow_None=False, bounds=(0, 1), constant=False, default=True, instantiate=False, pickle_default_value=True, precedence=None, readonly=False ) - Whether to display the plot title.
-
param String
title_format
( allow_None=False, basestring=<class ‘str’>, constant=False, default={label} {group} {dimensions}, instantiate=False, pickle_default_value=True, precedence=None, readonly=False ) - The formatting string for the title of this plot, allows defining a label group separator and dimension labels.
-
param Boolean
normalize
( allow_None=False, bounds=(0, 1), constant=False, default=True, instantiate=False, pickle_default_value=True, precedence=None, readonly=False ) - Whether to compute ranges across all Elements at this level of plotting. Allows selecting normalization at different levels for nested data containers.
-
param Parameter
projection
( allow_None=True, constant=False, default=None, instantiate=False, pickle_default_value=True, precedence=None, readonly=False ) - The projection of the plot axis, default of None is equivalent to 2D plot, ‘3d’ and ‘polar’ are also supported by matplotlib by default. May also supply a custom projection that is either a matplotlib projection type or implements the _as_mpl_axes method.
-
param Number
fig_alpha
( allow_None=False, bounds=(0, 1), constant=False, default=1.0, inclusive_bounds=(True, True), instantiate=False, pickle_default_value=True, precedence=None, readonly=False, softbounds=None, time_dependent=False, time_fn=<Time Time00001> ) - Alpha of the overall figure background.
-
param NumericTuple
fig_bounds
( allow_None=False, constant=False, default=(0.15, 0.15, 0.85, 0.85), instantiate=False, length=4, pickle_default_value=True, precedence=None, readonly=False ) - The bounds of the overall figure as a 4-tuple of the form (left, bottom, right, top), defining the size of the border around the subplots.
-
param Parameter
fig_inches
( allow_None=False, constant=False, default=4, instantiate=False, pickle_default_value=True, precedence=None, readonly=False ) - The overall matplotlib figure size in inches. May be set as an integer in which case it will be used to autocompute a size. Alternatively may be set with an explicit tuple or list, in which case it will be applied directly after being scaled by fig_size. If either the width or height is set to None, it will be computed automatically.
-
param Boolean
fig_latex
( allow_None=False, bounds=(0, 1), constant=False, default=False, instantiate=False, pickle_default_value=True, precedence=None, readonly=False ) - Whether to use LaTeX text in the overall figure.
-
param Dict
fig_rcparams
( allow_None=False, constant=False, default={}, instantiate=True, is_instance=True, pickle_default_value=True, precedence=None, readonly=False ) - matplotlib rc parameters to apply to the overall figure.
-
param Number
fig_size
( allow_None=False, bounds=(1, None), constant=False, default=100.0, inclusive_bounds=(True, True), instantiate=False, pickle_default_value=True, precedence=None, readonly=False, softbounds=None, time_dependent=False, time_fn=<Time Time00001> ) - Size relative to the supplied overall fig_inches in percent.
-
param HookList
initial_hooks
( allow_None=False, bounds=(0, None), constant=False, default=[], instantiate=True, pickle_default_value=True, precedence=None, readonly=False ) - Optional list of hooks called before plotting the data onto the axis. The hook is passed the plot object and the displayed object, other plotting handles can be accessed via plot.handles.
-
param HookList
final_hooks
( allow_None=False, bounds=(0, None), constant=False, default=[], instantiate=True, pickle_default_value=True, precedence=None, readonly=False ) - Optional list of hooks called when finalizing an axis. The hook is passed the plot object and the displayed object, other plotting handles can be accessed via plot.handles.
-
param HookList
finalize_hooks
( allow_None=False, bounds=(0, None), constant=False, default=[], instantiate=True, pickle_default_value=True, precedence=None, readonly=False ) - Optional list of hooks called when finalizing an axis. The hook is passed the plot object and the displayed object, other plotting handles can be accessed via plot.handles.
-
param String
sublabel_format
( allow_None=True, basestring=<class ‘str’>, constant=False, default=None, instantiate=False, pickle_default_value=True, precedence=None, readonly=False ) - Allows labeling the subaxes in each plot with various formatters including {Alpha}, {alpha}, {numeric} and {roman}.
-
param NumericTuple
sublabel_position
( allow_None=False, constant=False, default=(-0.35, 0.85), instantiate=False, length=2, pickle_default_value=True, precedence=None, readonly=False ) - Position relative to the plot for placing the optional subfigure label.
-
param Number
sublabel_size
( allow_None=False, bounds=None, constant=False, default=18, inclusive_bounds=(True, True), instantiate=False, pickle_default_value=True, precedence=None, readonly=False, softbounds=None, time_dependent=False, time_fn=<Time Time00001> ) - Size of optional subfigure label.
-
param Boolean
show_frame
( allow_None=False, bounds=(0, 1), constant=False, default=False, instantiate=False, pickle_default_value=True, precedence=None, readonly=False ) - Whether or not to show a complete frame around the plot.
-
param Boolean
apply_ranges
( allow_None=False, bounds=(0, 1), constant=False, default=True, instantiate=False, pickle_default_value=True, precedence=None, readonly=False ) - Whether to compute the plot bounds from the data itself.
-
param Boolean
apply_extents
( allow_None=False, bounds=(0, 1), constant=False, default=True, instantiate=False, pickle_default_value=True, precedence=None, readonly=False ) - Whether to apply extent overrides on the Elements
-
param Boolean
apply_ticks
( allow_None=False, bounds=(0, 1), constant=False, default=True, instantiate=False, pickle_default_value=True, precedence=None, readonly=False ) - Whether to apply custom ticks.
-
param Parameter
aspect
( allow_None=False, constant=False, default=square, instantiate=False, pickle_default_value=True, precedence=None, readonly=False ) - The aspect ratio mode of the plot. By default, a plot may select its own appropriate aspect ratio but sometimes it may be necessary to force a square aspect ratio (e.g. to display the plot as an element of a grid). The modes ‘auto’ and ‘equal’ correspond to the axis modes of the same name in matplotlib, a numeric value may also be passed.
-
param ClassSelector
bgcolor
( allow_None=True, constant=False, default=None, instantiate=True, is_instance=True, pickle_default_value=True, precedence=None, readonly=False ) - If set bgcolor overrides the background color of the axis.
-
param ObjectSelector
invert_axes
( allow_None=None, check_on_set=False, compute_default_fn=None, constant=False, default=False, instantiate=False, objects=[], pickle_default_value=True, precedence=None, readonly=False ) - Inverts the axes of the plot. Note that this parameter may not always be respected by all plots but should be respected by adjoined plots when appropriate.
-
param Boolean
invert_xaxis
( allow_None=False, bounds=(0, 1), constant=False, default=False, instantiate=False, pickle_default_value=True, precedence=None, readonly=False ) - Whether to invert the plot x-axis.
-
param Boolean
invert_yaxis
( allow_None=False, bounds=(0, 1), constant=False, default=False, instantiate=False, pickle_default_value=True, precedence=None, readonly=False ) - Whether to invert the plot y-axis.
-
param Boolean
invert_zaxis
( allow_None=False, bounds=(0, 1), constant=False, default=False, instantiate=False, pickle_default_value=True, precedence=None, readonly=False ) - Whether to invert the plot z-axis.
-
param List
labelled
( allow_None=False, bounds=(0, None), constant=False, default=[‘x’, ‘y’], instantiate=True, pickle_default_value=True, precedence=None, readonly=False ) - Whether to plot the ‘x’ and ‘y’ labels.
-
param Boolean
logx
( allow_None=False, bounds=(0, 1), constant=False, default=False, instantiate=False, pickle_default_value=True, precedence=None, readonly=False ) - Whether to apply log scaling to the x-axis of the Chart.
-
param Boolean
logy
( allow_None=False, bounds=(0, 1), constant=False, default=False, instantiate=False, pickle_default_value=True, precedence=None, readonly=False ) - Whether to apply log scaling to the y-axis of the Chart.
-
param Boolean
logz
( allow_None=False, bounds=(0, 1), constant=False, default=False, instantiate=False, pickle_default_value=True, precedence=None, readonly=False ) - Whether to apply log scaling to the y-axis of the Chart.
-
param Boolean
show_legend
( allow_None=False, bounds=(0, 1), constant=False, default=True, instantiate=False, pickle_default_value=True, precedence=None, readonly=False ) - Whether to show legend for the plot.
-
param Boolean
show_grid
( allow_None=False, bounds=(0, 1), constant=False, default=False, instantiate=False, pickle_default_value=True, precedence=None, readonly=False ) - Enable axis grid.
-
param ObjectSelector
xaxis
( allow_None=None, check_on_set=True, compute_default_fn=None, constant=False, default=bottom, instantiate=False, objects=[‘top’, ‘bottom’, ‘bare’, ‘top-bare’, ‘bottom-bare’, None], pickle_default_value=True, precedence=None, readonly=False ) - Whether and where to display the xaxis, bare options allow suppressing all axis labels including ticks and xlabel. Valid options are ‘top’, ‘bottom’, ‘bare’, ‘top-bare’ and ‘bottom-bare’.
-
param ObjectSelector
yaxis
( allow_None=None, check_on_set=True, compute_default_fn=None, constant=False, default=left, instantiate=False, objects=[‘left’, ‘right’, ‘bare’, ‘left-bare’, ‘right-bare’, None], pickle_default_value=True, precedence=None, readonly=False ) - Whether and where to display the yaxis, bare options allow suppressing all axis labels including ticks and ylabel. Valid options are ‘left’, ‘right’, ‘bare’ ‘left-bare’ and ‘right-bare’.
-
param Boolean
zaxis
( allow_None=False, bounds=(0, 1), constant=False, default=True, instantiate=False, pickle_default_value=True, precedence=None, readonly=False ) - Whether to display the z-axis.
-
param Parameter
xticks
( allow_None=True, constant=False, default=None, instantiate=False, pickle_default_value=True, precedence=None, readonly=False ) - Ticks along x-axis specified as an integer, explicit list of tick locations, list of tuples containing the locations and labels or a matplotlib tick locator object. If set to None default matplotlib ticking behavior is applied.
-
param Integer
xrotation
( allow_None=False, bounds=(0, 360), constant=False, default=0, inclusive_bounds=(True, True), instantiate=False, pickle_default_value=True, precedence=None, readonly=False, softbounds=None, time_dependent=False, time_fn=<Time Time00001> ) - Rotation angle of the xticks.
-
param Parameter
yticks
( allow_None=True, constant=False, default=None, instantiate=False, pickle_default_value=True, precedence=None, readonly=False ) - Ticks along y-axis specified as an integer, explicit list of tick locations, list of tuples containing the locations and labels or a matplotlib tick locator object. If set to None default matplotlib ticking behavior is applied.
-
param Integer
yrotation
( allow_None=False, bounds=(0, 360), constant=False, default=0, inclusive_bounds=(True, True), instantiate=False, pickle_default_value=True, precedence=None, readonly=False, softbounds=None, time_dependent=False, time_fn=<Time Time00001> ) - Rotation angle of the yticks.
-
param Integer
zrotation
( allow_None=False, bounds=(0, 360), constant=False, default=0, inclusive_bounds=(True, True), instantiate=False, pickle_default_value=True, precedence=None, readonly=False, softbounds=None, time_dependent=False, time_fn=<Time Time00001> ) - Rotation angle of the zticks.
-
param Parameter
zticks
( allow_None=True, constant=False, default=None, instantiate=False, pickle_default_value=True, precedence=None, readonly=False ) - Ticks along z-axis specified as an integer, explicit list of tick locations, list of tuples containing the locations and labels or a matplotlib tick locator object. If set to None default matplotlib ticking behavior is applied.
-
param Boolean
autotick
( allow_None=False, bounds=(0, 1), constant=False, default=False, instantiate=False, pickle_default_value=True, precedence=None, readonly=False ) - Whether to let matplotlib automatically compute tick marks or to allow the user to control tick marks.
-
param ObjectSelector
interpolation
( allow_None=None, check_on_set=True, compute_default_fn=None, constant=False, default=linear, instantiate=False, objects=[‘linear’, ‘steps-mid’, ‘steps-pre’, ‘steps-post’], pickle_default_value=True, precedence=None, readonly=False ) - Defines how the samples of the Curve are interpolated, default is ‘linear’, other options include ‘steps-mid’, ‘steps-pre’ and ‘steps-post’.
-
param Boolean
relative_labels
( allow_None=False, bounds=(0, 1), constant=False, default=False, instantiate=False, pickle_default_value=True, precedence=None, readonly=False ) - If plotted quantity is cyclic and center_cyclic is enabled, will compute tick labels relative to the center.
-
anim
( start=0 , stop=None , fps=30 ) ¶ -
Method to return a matplotlib animation. The start and stop frames may be specified as well as the fps.
-
compute_ranges
( obj , key , ranges ) ¶ -
Given an object, a specific key and the normalization options this method will find the specified normalization options on the appropriate OptionTree, group the elements according to the selected normalization option (i.e. either per frame or over the whole animation) and finally compute the dimension ranges in each group. The new set of ranges is returned.
-
debug
( msg , *args , **kw ) ¶ -
Print msg merged with args as a debugging statement.
See Python’s logging module for details of message formatting.
-
defaults
( ) ¶ -
Return {parameter_name:parameter.default} for all non-constant Parameters.
Note that a Parameter for which instantiate==True has its default instantiated.
-
force_new_dynamic_value
= functools.partial(<function Parameterized.force_new_dynamic_value>, <class 'holoviews.plotting.mpl.chart.CurvePlot'>) ¶
-
get_extents
( view , ranges ) ¶ -
Gets the extents for the axes from the current View. The globally computed ranges can optionally override the extents.
-
get_param_values
( onlychanged=False ) ¶ -
Return a list of name,value pairs for all Parameters of this object.
If onlychanged is True, will only return values that are not equal to the default value.
-
get_value_generator
= functools.partial(<function Parameterized.get_value_generator>, <class 'holoviews.plotting.mpl.chart.CurvePlot'>) ¶
-
get_zorder
( overlay , key , el ) ¶ -
Computes the z-order of element in the NdOverlay taking into account possible batching of elements.
-
init_comm
( ) ¶ -
Initializes comm and attaches streams.
-
inspect_value
= functools.partial(<function Parameterized.inspect_value>, <class 'holoviews.plotting.mpl.chart.CurvePlot'>) ¶
-
matches
( spec ) ¶ -
Matches a specification against the current Plot.
-
message
( msg , *args , **kw ) ¶ -
Print msg merged with args as a message.
See Python’s logging module for details of message formatting.
-
params
( parameter_name=None ) ¶ -
Return the Parameters of this class as the dictionary {name: parameter_object}
Includes Parameters from this class and its superclasses.
-
pprint
( imports=None , prefix=' ' , unknown_value='<?>' , qualify=False , separator='' ) ¶ -
(Experimental) Pretty printed representation that may be evaluated with eval. See pprint() function for more details.
-
print_param_defaults
( ) ¶ -
Print the default values of all cls’s Parameters.
-
print_param_values
( ) ¶ -
Print the values of all this object’s Parameters.
-
push
( ) ¶ -
Pushes updated plot data via the Comm.
-
refresh
( **kwargs ) ¶ -
Refreshes the plot by rerendering it and then pushing the updated data if the plot has an associated Comm.
-
script_repr
( imports=[] , prefix=' ' ) ¶ -
Variant of __repr__ designed for generating a runnable script.
-
set_default
( param_name , value ) ¶ -
Set the default value of param_name.
Equivalent to setting param_name on the class.
-
set_dynamic_time_fn
= functools.partial(<function Parameterized.set_dynamic_time_fn>, <class 'holoviews.plotting.mpl.chart.CurvePlot'>) ¶
-
set_param
= functools.partial(<function Parameterized.set_param>, <class 'holoviews.plotting.mpl.chart.CurvePlot'>) ¶
-
state_pop
( ) ¶ -
Restore the most recently saved state.
See state_push() for more details.
-
state_push
( ) ¶ -
Save this instance’s state.
For Parameterized instances, this includes the state of dynamically generated values.
Subclasses that maintain short-term state should additionally save and restore that state using state_push() and state_pop().
Generally, this method is used by operations that need to test something without permanently altering the objects’ state.
-
teardown_handles
( ) ¶ -
If no custom update_handles method is supplied this method is called to tear down any previous handles before replacing them.
-
traverse
( fn=None , specs=None , full_breadth=True ) ¶ -
Traverses any nested DimensionedPlot returning a list of all plots that match the specs. The specs should be supplied as a list of either Plot types or callables, which should return a boolean given the plot class.
-
verbose
( msg , *args , **kw ) ¶ -
Print msg merged with args as a verbose message.
See Python’s logging module for details of message formatting.
-
warning
( msg , *args , **kw ) ¶ -
Print msg merged with args as a warning, unless module variable warnings_as_exceptions is True, then raise an Exception containing the arguments.
See Python’s logging module for details of message formatting.
-
param Parameter
-
class
holoviews.plotting.mpl.chart.
ErrorPlot
( element , **params ) [source] ¶ -
Bases:
holoviews.plotting.mpl.chart.ChartPlot
ErrorPlot plots the ErrorBar Element type and supporting both horizontal and vertical error bars via the ‘horizontal’ plot option.
-
param Parameter
fontsize
( allow_None=True, constant=False, default=None, instantiate=False, pickle_default_value=True, precedence=None, readonly=False ) - Specifies various fontsizes of the displayed text. Finer control is available by supplying a dictionary where any unmentioned keys reverts to the default sizes, e.g: {‘ticks’:20, ‘title’:15, ‘ylabel’:5, ‘xlabel’:5, ‘legend’:8, ‘legend_title’:13} You can set the fontsize of both ‘ylabel’ and ‘xlabel’ together using the ‘labels’ key.
-
param Boolean
show_title
( allow_None=False, bounds=(0, 1), constant=False, default=True, instantiate=False, pickle_default_value=True, precedence=None, readonly=False ) - Whether to display the plot title.
-
param String
title_format
( allow_None=False, basestring=<class ‘str’>, constant=False, default={label} {group} {dimensions}, instantiate=False, pickle_default_value=True, precedence=None, readonly=False ) - The formatting string for the title of this plot, allows defining a label group separator and dimension labels.
-
param Boolean
normalize
( allow_None=False, bounds=(0, 1), constant=False, default=True, instantiate=False, pickle_default_value=True, precedence=None, readonly=False ) - Whether to compute ranges across all Elements at this level of plotting. Allows selecting normalization at different levels for nested data containers.
-
param Parameter
projection
( allow_None=True, constant=False, default=None, instantiate=False, pickle_default_value=True, precedence=None, readonly=False ) - The projection of the plot axis, default of None is equivalent to 2D plot, ‘3d’ and ‘polar’ are also supported by matplotlib by default. May also supply a custom projection that is either a matplotlib projection type or implements the _as_mpl_axes method.
-
param Number
fig_alpha
( allow_None=False, bounds=(0, 1), constant=False, default=1.0, inclusive_bounds=(True, True), instantiate=False, pickle_default_value=True, precedence=None, readonly=False, softbounds=None, time_dependent=False, time_fn=<Time Time00001> ) - Alpha of the overall figure background.
-
param NumericTuple
fig_bounds
( allow_None=False, constant=False, default=(0.15, 0.15, 0.85, 0.85), instantiate=False, length=4, pickle_default_value=True, precedence=None, readonly=False ) - The bounds of the overall figure as a 4-tuple of the form (left, bottom, right, top), defining the size of the border around the subplots.
-
param Parameter
fig_inches
( allow_None=False, constant=False, default=4, instantiate=False, pickle_default_value=True, precedence=None, readonly=False ) - The overall matplotlib figure size in inches. May be set as an integer in which case it will be used to autocompute a size. Alternatively may be set with an explicit tuple or list, in which case it will be applied directly after being scaled by fig_size. If either the width or height is set to None, it will be computed automatically.
-
param Boolean
fig_latex
( allow_None=False, bounds=(0, 1), constant=False, default=False, instantiate=False, pickle_default_value=True, precedence=None, readonly=False ) - Whether to use LaTeX text in the overall figure.
-
param Dict
fig_rcparams
( allow_None=False, constant=False, default={}, instantiate=True, is_instance=True, pickle_default_value=True, precedence=None, readonly=False ) - matplotlib rc parameters to apply to the overall figure.
-
param Number
fig_size
( allow_None=False, bounds=(1, None), constant=False, default=100.0, inclusive_bounds=(True, True), instantiate=False, pickle_default_value=True, precedence=None, readonly=False, softbounds=None, time_dependent=False, time_fn=<Time Time00001> ) - Size relative to the supplied overall fig_inches in percent.
-
param HookList
initial_hooks
( allow_None=False, bounds=(0, None), constant=False, default=[], instantiate=True, pickle_default_value=True, precedence=None, readonly=False ) - Optional list of hooks called before plotting the data onto the axis. The hook is passed the plot object and the displayed object, other plotting handles can be accessed via plot.handles.
-
param HookList
final_hooks
( allow_None=False, bounds=(0, None), constant=False, default=[], instantiate=True, pickle_default_value=True, precedence=None, readonly=False ) - Optional list of hooks called when finalizing an axis. The hook is passed the plot object and the displayed object, other plotting handles can be accessed via plot.handles.
-
param HookList
finalize_hooks
( allow_None=False, bounds=(0, None), constant=False, default=[], instantiate=True, pickle_default_value=True, precedence=None, readonly=False ) - Optional list of hooks called when finalizing an axis. The hook is passed the plot object and the displayed object, other plotting handles can be accessed via plot.handles.
-
param String
sublabel_format
( allow_None=True, basestring=<class ‘str’>, constant=False, default=None, instantiate=False, pickle_default_value=True, precedence=None, readonly=False ) - Allows labeling the subaxes in each plot with various formatters including {Alpha}, {alpha}, {numeric} and {roman}.
-
param NumericTuple
sublabel_position
( allow_None=False, constant=False, default=(-0.35, 0.85), instantiate=False, length=2, pickle_default_value=True, precedence=None, readonly=False ) - Position relative to the plot for placing the optional subfigure label.
-
param Number
sublabel_size
( allow_None=False, bounds=None, constant=False, default=18, inclusive_bounds=(True, True), instantiate=False, pickle_default_value=True, precedence=None, readonly=False, softbounds=None, time_dependent=False, time_fn=<Time Time00001> ) - Size of optional subfigure label.
-
param Boolean
show_frame
( allow_None=False, bounds=(0, 1), constant=False, default=False, instantiate=False, pickle_default_value=True, precedence=None, readonly=False ) - Whether or not to show a complete frame around the plot.
-
param Boolean
apply_ranges
( allow_None=False, bounds=(0, 1), constant=False, default=True, instantiate=False, pickle_default_value=True, precedence=None, readonly=False ) - Whether to compute the plot bounds from the data itself.
-
param Boolean
apply_extents
( allow_None=False, bounds=(0, 1), constant=False, default=True, instantiate=False, pickle_default_value=True, precedence=None, readonly=False ) - Whether to apply extent overrides on the Elements
-
param Boolean
apply_ticks
( allow_None=False, bounds=(0, 1), constant=False, default=True, instantiate=False, pickle_default_value=True, precedence=None, readonly=False ) - Whether to apply custom ticks.
-
param Parameter
aspect
( allow_None=False, constant=False, default=square, instantiate=False, pickle_default_value=True, precedence=None, readonly=False ) - The aspect ratio mode of the plot. By default, a plot may select its own appropriate aspect ratio but sometimes it may be necessary to force a square aspect ratio (e.g. to display the plot as an element of a grid). The modes ‘auto’ and ‘equal’ correspond to the axis modes of the same name in matplotlib, a numeric value may also be passed.
-
param ClassSelector
bgcolor
( allow_None=True, constant=False, default=None, instantiate=True, is_instance=True, pickle_default_value=True, precedence=None, readonly=False ) - If set bgcolor overrides the background color of the axis.
-
param ObjectSelector
invert_axes
( allow_None=None, check_on_set=False, compute_default_fn=None, constant=False, default=False, instantiate=False, objects=[], pickle_default_value=True, precedence=None, readonly=False ) - Inverts the axes of the plot. Note that this parameter may not always be respected by all plots but should be respected by adjoined plots when appropriate.
-
param Boolean
invert_xaxis
( allow_None=False, bounds=(0, 1), constant=False, default=False, instantiate=False, pickle_default_value=True, precedence=None, readonly=False ) - Whether to invert the plot x-axis.
-
param Boolean
invert_yaxis
( allow_None=False, bounds=(0, 1), constant=False, default=False, instantiate=False, pickle_default_value=True, precedence=None, readonly=False ) - Whether to invert the plot y-axis.
-
param Boolean
invert_zaxis
( allow_None=False, bounds=(0, 1), constant=False, default=False, instantiate=False, pickle_default_value=True, precedence=None, readonly=False ) - Whether to invert the plot z-axis.
-
param List
labelled
( allow_None=False, bounds=(0, None), constant=False, default=[‘x’, ‘y’], instantiate=True, pickle_default_value=True, precedence=None, readonly=False ) - Whether to plot the ‘x’ and ‘y’ labels.
-
param Boolean
logx
( allow_None=False, bounds=(0, 1), constant=False, default=False, instantiate=False, pickle_default_value=True, precedence=None, readonly=False ) - Whether to apply log scaling to the x-axis of the Chart.
-
param Boolean
logy
( allow_None=False, bounds=(0, 1), constant=False, default=False, instantiate=False, pickle_default_value=True, precedence=None, readonly=False ) - Whether to apply log scaling to the y-axis of the Chart.
-
param Boolean
logz
( allow_None=False, bounds=(0, 1), constant=False, default=False, instantiate=False, pickle_default_value=True, precedence=None, readonly=False ) - Whether to apply log scaling to the y-axis of the Chart.
-
param Boolean
show_legend
( allow_None=False, bounds=(0, 1), constant=False, default=True, instantiate=False, pickle_default_value=True, precedence=None, readonly=False ) - Whether to show legend for the plot.
-
param Boolean
show_grid
( allow_None=False, bounds=(0, 1), constant=False, default=False, instantiate=False, pickle_default_value=True, precedence=None, readonly=False ) - Whether to show a Cartesian grid on the plot.
-
param ObjectSelector
xaxis
( allow_None=None, check_on_set=True, compute_default_fn=None, constant=False, default=bottom, instantiate=False, objects=[‘top’, ‘bottom’, ‘bare’, ‘top-bare’, ‘bottom-bare’, None], pickle_default_value=True, precedence=None, readonly=False ) - Whether and where to display the xaxis, bare options allow suppressing all axis labels including ticks and xlabel. Valid options are ‘top’, ‘bottom’, ‘bare’, ‘top-bare’ and ‘bottom-bare’.
-
param ObjectSelector
yaxis
( allow_None=None, check_on_set=True, compute_default_fn=None, constant=False, default=left, instantiate=False, objects=[‘left’, ‘right’, ‘bare’, ‘left-bare’, ‘right-bare’, None], pickle_default_value=True, precedence=None, readonly=False ) - Whether and where to display the yaxis, bare options allow suppressing all axis labels including ticks and ylabel. Valid options are ‘left’, ‘right’, ‘bare’ ‘left-bare’ and ‘right-bare’.
-
param Boolean
zaxis
( allow_None=False, bounds=(0, 1), constant=False, default=True, instantiate=False, pickle_default_value=True, precedence=None, readonly=False ) - Whether to display the z-axis.
-
param Parameter
xticks
( allow_None=True, constant=False, default=None, instantiate=False, pickle_default_value=True, precedence=None, readonly=False ) - Ticks along x-axis specified as an integer, explicit list of tick locations, list of tuples containing the locations and labels or a matplotlib tick locator object. If set to None default matplotlib ticking behavior is applied.
-
param Integer
xrotation
( allow_None=False, bounds=(0, 360), constant=False, default=0, inclusive_bounds=(True, True), instantiate=False, pickle_default_value=True, precedence=None, readonly=False, softbounds=None, time_dependent=False, time_fn=<Time Time00001> ) - Rotation angle of the xticks.
-
param Parameter
yticks
( allow_None=True, constant=False, default=None, instantiate=False, pickle_default_value=True, precedence=None, readonly=False ) - Ticks along y-axis specified as an integer, explicit list of tick locations, list of tuples containing the locations and labels or a matplotlib tick locator object. If set to None default matplotlib ticking behavior is applied.
-
param Integer
yrotation
( allow_None=False, bounds=(0, 360), constant=False, default=0, inclusive_bounds=(True, True), instantiate=False, pickle_default_value=True, precedence=None, readonly=False, softbounds=None, time_dependent=False, time_fn=<Time Time00001> ) - Rotation angle of the yticks.
-
param Integer
zrotation
( allow_None=False, bounds=(0, 360), constant=False, default=0, inclusive_bounds=(True, True), instantiate=False, pickle_default_value=True, precedence=None, readonly=False, softbounds=None, time_dependent=False, time_fn=<Time Time00001> ) - Rotation angle of the zticks.
-
param Parameter
zticks
( allow_None=True, constant=False, default=None, instantiate=False, pickle_default_value=True, precedence=None, readonly=False ) - Ticks along z-axis specified as an integer, explicit list of tick locations, list of tuples containing the locations and labels or a matplotlib tick locator object. If set to None default matplotlib ticking behavior is applied.
-
anim
( start=0 , stop=None , fps=30 ) ¶ -
Method to return a matplotlib animation. The start and stop frames may be specified as well as the fps.
-
compute_ranges
( obj , key , ranges ) ¶ -
Given an object, a specific key and the normalization options this method will find the specified normalization options on the appropriate OptionTree, group the elements according to the selected normalization option (i.e. either per frame or over the whole animation) and finally compute the dimension ranges in each group. The new set of ranges is returned.
-
debug
( msg , *args , **kw ) ¶ -
Print msg merged with args as a debugging statement.
See Python’s logging module for details of message formatting.
-
defaults
( ) ¶ -
Return {parameter_name:parameter.default} for all non-constant Parameters.
Note that a Parameter for which instantiate==True has its default instantiated.
-
force_new_dynamic_value
= functools.partial(<function Parameterized.force_new_dynamic_value>, <class 'holoviews.plotting.mpl.chart.ErrorPlot'>) ¶
-
get_extents
( view , ranges ) ¶ -
Gets the extents for the axes from the current View. The globally computed ranges can optionally override the extents.
-
get_param_values
( onlychanged=False ) ¶ -
Return a list of name,value pairs for all Parameters of this object.
If onlychanged is True, will only return values that are not equal to the default value.
-
get_value_generator
= functools.partial(<function Parameterized.get_value_generator>, <class 'holoviews.plotting.mpl.chart.ErrorPlot'>) ¶
-
get_zorder
( overlay , key , el ) ¶ -
Computes the z-order of element in the NdOverlay taking into account possible batching of elements.
-
init_comm
( ) ¶ -
Initializes comm and attaches streams.
-
inspect_value
= functools.partial(<function Parameterized.inspect_value>, <class 'holoviews.plotting.mpl.chart.ErrorPlot'>) ¶
-
matches
( spec ) ¶ -
Matches a specification against the current Plot.
-
message
( msg , *args , **kw ) ¶ -
Print msg merged with args as a message.
See Python’s logging module for details of message formatting.
-
params
( parameter_name=None ) ¶ -
Return the Parameters of this class as the dictionary {name: parameter_object}
Includes Parameters from this class and its superclasses.
-
pprint
( imports=None , prefix=' ' , unknown_value='<?>' , qualify=False , separator='' ) ¶ -
(Experimental) Pretty printed representation that may be evaluated with eval. See pprint() function for more details.
-
print_param_defaults
( ) ¶ -
Print the default values of all cls’s Parameters.
-
print_param_values
( ) ¶ -
Print the values of all this object’s Parameters.
-
push
( ) ¶ -
Pushes updated plot data via the Comm.
-
refresh
( **kwargs ) ¶ -
Refreshes the plot by rerendering it and then pushing the updated data if the plot has an associated Comm.
-
script_repr
( imports=[] , prefix=' ' ) ¶ -
Variant of __repr__ designed for generating a runnable script.
-
set_default
( param_name , value ) ¶ -
Set the default value of param_name.
Equivalent to setting param_name on the class.
-
set_dynamic_time_fn
= functools.partial(<function Parameterized.set_dynamic_time_fn>, <class 'holoviews.plotting.mpl.chart.ErrorPlot'>) ¶
-
set_param
= functools.partial(<function Parameterized.set_param>, <class 'holoviews.plotting.mpl.chart.ErrorPlot'>) ¶
-
state_pop
( ) ¶ -
Restore the most recently saved state.
See state_push() for more details.
-
state_push
( ) ¶ -
Save this instance’s state.
For Parameterized instances, this includes the state of dynamically generated values.
Subclasses that maintain short-term state should additionally save and restore that state using state_push() and state_pop().
Generally, this method is used by operations that need to test something without permanently altering the objects’ state.
-
teardown_handles
( ) ¶ -
If no custom update_handles method is supplied this method is called to tear down any previous handles before replacing them.
-
traverse
( fn=None , specs=None , full_breadth=True ) ¶ -
Traverses any nested DimensionedPlot returning a list of all plots that match the specs. The specs should be supplied as a list of either Plot types or callables, which should return a boolean given the plot class.
-
verbose
( msg , *args , **kw ) ¶ -
Print msg merged with args as a verbose message.
See Python’s logging module for details of message formatting.
-
warning
( msg , *args , **kw ) ¶ -
Print msg merged with args as a warning, unless module variable warnings_as_exceptions is True, then raise an Exception containing the arguments.
See Python’s logging module for details of message formatting.
-
param Parameter
-
class
holoviews.plotting.mpl.chart.
HistogramPlot
( histograms , **params ) [source] ¶ -
Bases:
holoviews.plotting.mpl.chart.ChartPlot
HistogramPlot can plot DataHistograms and ViewMaps of DataHistograms, which can be displayed as a single frame or animation.
-
param Parameter
fontsize
( allow_None=True, constant=False, default=None, instantiate=False, pickle_default_value=True, precedence=None, readonly=False ) - Specifies various fontsizes of the displayed text. Finer control is available by supplying a dictionary where any unmentioned keys reverts to the default sizes, e.g: {‘ticks’:20, ‘title’:15, ‘ylabel’:5, ‘xlabel’:5, ‘legend’:8, ‘legend_title’:13} You can set the fontsize of both ‘ylabel’ and ‘xlabel’ together using the ‘labels’ key.
-
param Boolean
show_title
( allow_None=False, bounds=(0, 1), constant=False, default=True, instantiate=False, pickle_default_value=True, precedence=None, readonly=False ) - Whether to display the plot title.
-
param String
title_format
( allow_None=False, basestring=<class ‘str’>, constant=False, default={label} {group} {dimensions}, instantiate=False, pickle_default_value=True, precedence=None, readonly=False ) - The formatting string for the title of this plot, allows defining a label group separator and dimension labels.
-
param Boolean
normalize
( allow_None=False, bounds=(0, 1), constant=False, default=True, instantiate=False, pickle_default_value=True, precedence=None, readonly=False ) - Whether to compute ranges across all Elements at this level of plotting. Allows selecting normalization at different levels for nested data containers.
-
param Parameter
projection
( allow_None=True, constant=False, default=None, instantiate=False, pickle_default_value=True, precedence=None, readonly=False ) - The projection of the plot axis, default of None is equivalent to 2D plot, ‘3d’ and ‘polar’ are also supported by matplotlib by default. May also supply a custom projection that is either a matplotlib projection type or implements the _as_mpl_axes method.
-
param Number
fig_alpha
( allow_None=False, bounds=(0, 1), constant=False, default=1.0, inclusive_bounds=(True, True), instantiate=False, pickle_default_value=True, precedence=None, readonly=False, softbounds=None, time_dependent=False, time_fn=<Time Time00001> ) - Alpha of the overall figure background.
-
param NumericTuple
fig_bounds
( allow_None=False, constant=False, default=(0.15, 0.15, 0.85, 0.85), instantiate=False, length=4, pickle_default_value=True, precedence=None, readonly=False ) - The bounds of the overall figure as a 4-tuple of the form (left, bottom, right, top), defining the size of the border around the subplots.
-
param Parameter
fig_inches
( allow_None=False, constant=False, default=4, instantiate=False, pickle_default_value=True, precedence=None, readonly=False ) - The overall matplotlib figure size in inches. May be set as an integer in which case it will be used to autocompute a size. Alternatively may be set with an explicit tuple or list, in which case it will be applied directly after being scaled by fig_size. If either the width or height is set to None, it will be computed automatically.
-
param Boolean
fig_latex
( allow_None=False, bounds=(0, 1), constant=False, default=False, instantiate=False, pickle_default_value=True, precedence=None, readonly=False ) - Whether to use LaTeX text in the overall figure.
-
param Dict
fig_rcparams
( allow_None=False, constant=False, default={}, instantiate=True, is_instance=True, pickle_default_value=True, precedence=None, readonly=False ) - matplotlib rc parameters to apply to the overall figure.
-
param Number
fig_size
( allow_None=False, bounds=(1, None), constant=False, default=100.0, inclusive_bounds=(True, True), instantiate=False, pickle_default_value=True, precedence=None, readonly=False, softbounds=None, time_dependent=False, time_fn=<Time Time00001> ) - Size relative to the supplied overall fig_inches in percent.
-
param HookList
initial_hooks
( allow_None=False, bounds=(0, None), constant=False, default=[], instantiate=True, pickle_default_value=True, precedence=None, readonly=False ) - Optional list of hooks called before plotting the data onto the axis. The hook is passed the plot object and the displayed object, other plotting handles can be accessed via plot.handles.
-
param HookList
final_hooks
( allow_None=False, bounds=(0, None), constant=False, default=[], instantiate=True, pickle_default_value=True, precedence=None, readonly=False ) - Optional list of hooks called when finalizing an axis. The hook is passed the plot object and the displayed object, other plotting handles can be accessed via plot.handles.
-
param HookList
finalize_hooks
( allow_None=False, bounds=(0, None), constant=False, default=[], instantiate=True, pickle_default_value=True, precedence=None, readonly=False ) - Optional list of hooks called when finalizing an axis. The hook is passed the plot object and the displayed object, other plotting handles can be accessed via plot.handles.
-
param String
sublabel_format
( allow_None=True, basestring=<class ‘str’>, constant=False, default=None, instantiate=False, pickle_default_value=True, precedence=None, readonly=False ) - Allows labeling the subaxes in each plot with various formatters including {Alpha}, {alpha}, {numeric} and {roman}.
-
param NumericTuple
sublabel_position
( allow_None=False, constant=False, default=(-0.35, 0.85), instantiate=False, length=2, pickle_default_value=True, precedence=None, readonly=False ) - Position relative to the plot for placing the optional subfigure label.
-
param Number
sublabel_size
( allow_None=False, bounds=None, constant=False, default=18, inclusive_bounds=(True, True), instantiate=False, pickle_default_value=True, precedence=None, readonly=False, softbounds=None, time_dependent=False, time_fn=<Time Time00001> ) - Size of optional subfigure label.
-
param Boolean
show_frame
( allow_None=False, bounds=(0, 1), constant=False, default=False, instantiate=False, pickle_default_value=True, precedence=None, readonly=False ) - Whether or not to show a complete frame around the plot.
-
param Boolean
apply_ranges
( allow_None=False, bounds=(0, 1), constant=False, default=True, instantiate=False, pickle_default_value=True, precedence=None, readonly=False ) - Whether to compute the plot bounds from the data itself.
-
param Boolean
apply_extents
( allow_None=False, bounds=(0, 1), constant=False, default=True, instantiate=False, pickle_default_value=True, precedence=None, readonly=False ) - Whether to apply extent overrides on the Elements
-
param Boolean
apply_ticks
( allow_None=False, bounds=(0, 1), constant=False, default=True, instantiate=False, pickle_default_value=True, precedence=None, readonly=False ) - Whether to apply custom ticks.
-
param Parameter
aspect
( allow_None=False, constant=False, default=square, instantiate=False, pickle_default_value=True, precedence=None, readonly=False ) - The aspect ratio mode of the plot. By default, a plot may select its own appropriate aspect ratio but sometimes it may be necessary to force a square aspect ratio (e.g. to display the plot as an element of a grid). The modes ‘auto’ and ‘equal’ correspond to the axis modes of the same name in matplotlib, a numeric value may also be passed.
-
param ClassSelector
bgcolor
( allow_None=True, constant=False, default=None, instantiate=True, is_instance=True, pickle_default_value=True, precedence=None, readonly=False ) - If set bgcolor overrides the background color of the axis.
-
param ObjectSelector
invert_axes
( allow_None=None, check_on_set=False, compute_default_fn=None, constant=False, default=False, instantiate=False, objects=[], pickle_default_value=True, precedence=None, readonly=False ) - Inverts the axes of the plot. Note that this parameter may not always be respected by all plots but should be respected by adjoined plots when appropriate.
-
param Boolean
invert_xaxis
( allow_None=False, bounds=(0, 1), constant=False, default=False, instantiate=False, pickle_default_value=True, precedence=None, readonly=False ) - Whether to invert the plot x-axis.
-
param Boolean
invert_yaxis
( allow_None=False, bounds=(0, 1), constant=False, default=False, instantiate=False, pickle_default_value=True, precedence=None, readonly=False ) - Whether to invert the plot y-axis.
-
param Boolean
invert_zaxis
( allow_None=False, bounds=(0, 1), constant=False, default=False, instantiate=False, pickle_default_value=True, precedence=None, readonly=False ) - Whether to invert the plot z-axis.
-
param List
labelled
( allow_None=False, bounds=(0, None), constant=False, default=[‘x’, ‘y’], instantiate=True, pickle_default_value=True, precedence=None, readonly=False ) - Whether to plot the ‘x’ and ‘y’ labels.
-
param Boolean
logx
( allow_None=False, bounds=(0, 1), constant=False, default=False, instantiate=False, pickle_default_value=True, precedence=None, readonly=False ) - Whether to apply log scaling to the x-axis of the Chart.
-
param Boolean
logy
( allow_None=False, bounds=(0, 1), constant=False, default=False, instantiate=False, pickle_default_value=True, precedence=None, readonly=False ) - Whether to apply log scaling to the y-axis of the Chart.
-
param Boolean
logz
( allow_None=False, bounds=(0, 1), constant=False, default=False, instantiate=False, pickle_default_value=True, precedence=None, readonly=False ) - Whether to apply log scaling to the y-axis of the Chart.
-
param Boolean
show_legend
( allow_None=False, bounds=(0, 1), constant=False, default=True, instantiate=False, pickle_default_value=True, precedence=None, readonly=False ) - Whether to show legend for the plot.
-
param Boolean
show_grid
( allow_None=False, bounds=(0, 1), constant=False, default=False, instantiate=False, pickle_default_value=True, precedence=None, readonly=False ) - Whether to show a Cartesian grid on the plot.
-
param ObjectSelector
xaxis
( allow_None=None, check_on_set=True, compute_default_fn=None, constant=False, default=bottom, instantiate=False, objects=[‘top’, ‘bottom’, ‘bare’, ‘top-bare’, ‘bottom-bare’, None], pickle_default_value=True, precedence=None, readonly=False ) - Whether and where to display the xaxis, bare options allow suppressing all axis labels including ticks and xlabel. Valid options are ‘top’, ‘bottom’, ‘bare’, ‘top-bare’ and ‘bottom-bare’.
-
param ObjectSelector
yaxis
( allow_None=None, check_on_set=True, compute_default_fn=None, constant=False, default=left, instantiate=False, objects=[‘left’, ‘right’, ‘bare’, ‘left-bare’, ‘right-bare’, None], pickle_default_value=True, precedence=None, readonly=False ) - Whether and where to display the yaxis, bare options allow suppressing all axis labels including ticks and ylabel. Valid options are ‘left’, ‘right’, ‘bare’ ‘left-bare’ and ‘right-bare’.
-
param Boolean
zaxis
( allow_None=False, bounds=(0, 1), constant=False, default=True, instantiate=False, pickle_default_value=True, precedence=None, readonly=False ) - Whether to display the z-axis.
-
param Parameter
xticks
( allow_None=True, constant=False, default=None, instantiate=False, pickle_default_value=True, precedence=None, readonly=False ) - Ticks along x-axis specified as an integer, explicit list of tick locations, list of tuples containing the locations and labels or a matplotlib tick locator object. If set to None default matplotlib ticking behavior is applied.
-
param Integer
xrotation
( allow_None=False, bounds=(0, 360), constant=False, default=0, inclusive_bounds=(True, True), instantiate=False, pickle_default_value=True, precedence=None, readonly=False, softbounds=None, time_dependent=False, time_fn=<Time Time00001> ) - Rotation angle of the xticks.
-
param Parameter
yticks
( allow_None=True, constant=False, default=None, instantiate=False, pickle_default_value=True, precedence=None, readonly=False ) - Ticks along y-axis specified as an integer, explicit list of tick locations, list of tuples containing the locations and labels or a matplotlib tick locator object. If set to None default matplotlib ticking behavior is applied.
-
param Integer
yrotation
( allow_None=False, bounds=(0, 360), constant=False, default=0, inclusive_bounds=(True, True), instantiate=False, pickle_default_value=True, precedence=None, readonly=False, softbounds=None, time_dependent=False, time_fn=<Time Time00001> ) - Rotation angle of the yticks.
-
param Integer
zrotation
( allow_None=False, bounds=(0, 360), constant=False, default=0, inclusive_bounds=(True, True), instantiate=False, pickle_default_value=True, precedence=None, readonly=False, softbounds=None, time_dependent=False, time_fn=<Time Time00001> ) - Rotation angle of the zticks.
-
param Parameter
zticks
( allow_None=True, constant=False, default=None, instantiate=False, pickle_default_value=True, precedence=None, readonly=False ) - Ticks along z-axis specified as an integer, explicit list of tick locations, list of tuples containing the locations and labels or a matplotlib tick locator object. If set to None default matplotlib ticking behavior is applied.
-
anim
( start=0 , stop=None , fps=30 ) ¶ -
Method to return a matplotlib animation. The start and stop frames may be specified as well as the fps.
-
compute_ranges
( obj , key , ranges ) ¶ -
Given an object, a specific key and the normalization options this method will find the specified normalization options on the appropriate OptionTree, group the elements according to the selected normalization option (i.e. either per frame or over the whole animation) and finally compute the dimension ranges in each group. The new set of ranges is returned.
-
debug
( msg , *args , **kw ) ¶ -
Print msg merged with args as a debugging statement.
See Python’s logging module for details of message formatting.
-
defaults
( ) ¶ -
Return {parameter_name:parameter.default} for all non-constant Parameters.
Note that a Parameter for which instantiate==True has its default instantiated.
-
force_new_dynamic_value
= functools.partial(<function Parameterized.force_new_dynamic_value>, <class 'holoviews.plotting.mpl.chart.HistogramPlot'>) ¶
-
get_param_values
( onlychanged=False ) ¶ -
Return a list of name,value pairs for all Parameters of this object.
If onlychanged is True, will only return values that are not equal to the default value.
-
get_value_generator
= functools.partial(<function Parameterized.get_value_generator>, <class 'holoviews.plotting.mpl.chart.HistogramPlot'>) ¶
-
get_zorder
( overlay , key , el ) ¶ -
Computes the z-order of element in the NdOverlay taking into account possible batching of elements.
-
init_artists
( ax , plot_args , plot_kwargs ) ¶ -
Initializes the artist based on the plot method declared on the plot.
-
init_comm
( ) ¶ -
Initializes comm and attaches streams.
-
inspect_value
= functools.partial(<function Parameterized.inspect_value>, <class 'holoviews.plotting.mpl.chart.HistogramPlot'>) ¶
-
matches
( spec ) ¶ -
Matches a specification against the current Plot.
-
message
( msg , *args , **kw ) ¶ -
Print msg merged with args as a message.
See Python’s logging module for details of message formatting.
-
params
( parameter_name=None ) ¶ -
Return the Parameters of this class as the dictionary {name: parameter_object}
Includes Parameters from this class and its superclasses.
-
pprint
( imports=None , prefix=' ' , unknown_value='<?>' , qualify=False , separator='' ) ¶ -
(Experimental) Pretty printed representation that may be evaluated with eval. See pprint() function for more details.
-
print_param_defaults
( ) ¶ -
Print the default values of all cls’s Parameters.
-
print_param_values
( ) ¶ -
Print the values of all this object’s Parameters.
-
push
( ) ¶ -
Pushes updated plot data via the Comm.
-
refresh
( **kwargs ) ¶ -
Refreshes the plot by rerendering it and then pushing the updated data if the plot has an associated Comm.
-
script_repr
( imports=[] , prefix=' ' ) ¶ -
Variant of __repr__ designed for generating a runnable script.
-
set_default
( param_name , value ) ¶ -
Set the default value of param_name.
Equivalent to setting param_name on the class.
-
set_dynamic_time_fn
= functools.partial(<function Parameterized.set_dynamic_time_fn>, <class 'holoviews.plotting.mpl.chart.HistogramPlot'>) ¶
-
set_param
= functools.partial(<function Parameterized.set_param>, <class 'holoviews.plotting.mpl.chart.HistogramPlot'>) ¶
-
state_pop
( ) ¶ -
Restore the most recently saved state.
See state_push() for more details.
-
state_push
( ) ¶ -
Save this instance’s state.
For Parameterized instances, this includes the state of dynamically generated values.
Subclasses that maintain short-term state should additionally save and restore that state using state_push() and state_pop().
Generally, this method is used by operations that need to test something without permanently altering the objects’ state.
-
teardown_handles
( ) ¶ -
If no custom update_handles method is supplied this method is called to tear down any previous handles before replacing them.
-
traverse
( fn=None , specs=None , full_breadth=True ) ¶ -
Traverses any nested DimensionedPlot returning a list of all plots that match the specs. The specs should be supplied as a list of either Plot types or callables, which should return a boolean given the plot class.
-
verbose
( msg , *args , **kw ) ¶ -
Print msg merged with args as a verbose message.
See Python’s logging module for details of message formatting.
-
warning
( msg , *args , **kw ) ¶ -
Print msg merged with args as a warning, unless module variable warnings_as_exceptions is True, then raise an Exception containing the arguments.
See Python’s logging module for details of message formatting.
-
param Parameter
-
class
holoviews.plotting.mpl.chart.
PointPlot
( *args , **kwargs ) [source] ¶ -
Bases:
holoviews.plotting.mpl.chart.ChartPlot
,holoviews.plotting.mpl.element.ColorbarPlot
Note that the ‘cmap’, ‘vmin’ and ‘vmax’ style arguments control how point magnitudes are rendered to different colors.
-
param Parameter
fontsize
( allow_None=True, constant=False, default=None, instantiate=False, pickle_default_value=True, precedence=None, readonly=False ) - Specifies various fontsizes of the displayed text. Finer control is available by supplying a dictionary where any unmentioned keys reverts to the default sizes, e.g: {‘ticks’:20, ‘title’:15, ‘ylabel’:5, ‘xlabel’:5, ‘legend’:8, ‘legend_title’:13} You can set the fontsize of both ‘ylabel’ and ‘xlabel’ together using the ‘labels’ key.
-
param Boolean
show_title
( allow_None=False, bounds=(0, 1), constant=False, default=True, instantiate=False, pickle_default_value=True, precedence=None, readonly=False ) - Whether to display the plot title.
-
param String
title_format
( allow_None=False, basestring=<class ‘str’>, constant=False, default={label} {group} {dimensions}, instantiate=False, pickle_default_value=True, precedence=None, readonly=False ) - The formatting string for the title of this plot, allows defining a label group separator and dimension labels.
-
param Boolean
normalize
( allow_None=False, bounds=(0, 1), constant=False, default=True, instantiate=False, pickle_default_value=True, precedence=None, readonly=False ) - Whether to compute ranges across all Elements at this level of plotting. Allows selecting normalization at different levels for nested data containers.
-
param Parameter
projection
( allow_None=True, constant=False, default=None, instantiate=False, pickle_default_value=True, precedence=None, readonly=False ) - The projection of the plot axis, default of None is equivalent to 2D plot, ‘3d’ and ‘polar’ are also supported by matplotlib by default. May also supply a custom projection that is either a matplotlib projection type or implements the _as_mpl_axes method.
-
param Number
fig_alpha
( allow_None=False, bounds=(0, 1), constant=False, default=1.0, inclusive_bounds=(True, True), instantiate=False, pickle_default_value=True, precedence=None, readonly=False, softbounds=None, time_dependent=False, time_fn=<Time Time00001> ) - Alpha of the overall figure background.
-
param NumericTuple
fig_bounds
( allow_None=False, constant=False, default=(0.15, 0.15, 0.85, 0.85), instantiate=False, length=4, pickle_default_value=True, precedence=None, readonly=False ) - The bounds of the overall figure as a 4-tuple of the form (left, bottom, right, top), defining the size of the border around the subplots.
-
param Parameter
fig_inches
( allow_None=False, constant=False, default=4, instantiate=False, pickle_default_value=True, precedence=None, readonly=False ) - The overall matplotlib figure size in inches. May be set as an integer in which case it will be used to autocompute a size. Alternatively may be set with an explicit tuple or list, in which case it will be applied directly after being scaled by fig_size. If either the width or height is set to None, it will be computed automatically.
-
param Boolean
fig_latex
( allow_None=False, bounds=(0, 1), constant=False, default=False, instantiate=False, pickle_default_value=True, precedence=None, readonly=False ) - Whether to use LaTeX text in the overall figure.
-
param Dict
fig_rcparams
( allow_None=False, constant=False, default={}, instantiate=True, is_instance=True, pickle_default_value=True, precedence=None, readonly=False ) - matplotlib rc parameters to apply to the overall figure.
-
param Number
fig_size
( allow_None=False, bounds=(1, None), constant=False, default=100.0, inclusive_bounds=(True, True), instantiate=False, pickle_default_value=True, precedence=None, readonly=False, softbounds=None, time_dependent=False, time_fn=<Time Time00001> ) - Size relative to the supplied overall fig_inches in percent.
-
param HookList
initial_hooks
( allow_None=False, bounds=(0, None), constant=False, default=[], instantiate=True, pickle_default_value=True, precedence=None, readonly=False ) - Optional list of hooks called before plotting the data onto the axis. The hook is passed the plot object and the displayed object, other plotting handles can be accessed via plot.handles.
-
param HookList
final_hooks
( allow_None=False, bounds=(0, None), constant=False, default=[], instantiate=True, pickle_default_value=True, precedence=None, readonly=False ) - Optional list of hooks called when finalizing an axis. The hook is passed the plot object and the displayed object, other plotting handles can be accessed via plot.handles.
-
param HookList
finalize_hooks
( allow_None=False, bounds=(0, None), constant=False, default=[], instantiate=True, pickle_default_value=True, precedence=None, readonly=False ) - Optional list of hooks called when finalizing an axis. The hook is passed the plot object and the displayed object, other plotting handles can be accessed via plot.handles.
-
param String
sublabel_format
( allow_None=True, basestring=<class ‘str’>, constant=False, default=None, instantiate=False, pickle_default_value=True, precedence=None, readonly=False ) - Allows labeling the subaxes in each plot with various formatters including {Alpha}, {alpha}, {numeric} and {roman}.
-
param NumericTuple
sublabel_position
( allow_None=False, constant=False, default=(-0.35, 0.85), instantiate=False, length=2, pickle_default_value=True, precedence=None, readonly=False ) - Position relative to the plot for placing the optional subfigure label.
-
param Number
sublabel_size
( allow_None=False, bounds=None, constant=False, default=18, inclusive_bounds=(True, True), instantiate=False, pickle_default_value=True, precedence=None, readonly=False, softbounds=None, time_dependent=False, time_fn=<Time Time00001> ) - Size of optional subfigure label.
-
param Boolean
show_frame
( allow_None=False, bounds=(0, 1), constant=False, default=False, instantiate=False, pickle_default_value=True, precedence=None, readonly=False ) - Whether or not to show a complete frame around the plot.
-
param Boolean
apply_ranges
( allow_None=False, bounds=(0, 1), constant=False, default=True, instantiate=False, pickle_default_value=True, precedence=None, readonly=False ) - Whether to compute the plot bounds from the data itself.
-
param Boolean
apply_extents
( allow_None=False, bounds=(0, 1), constant=False, default=True, instantiate=False, pickle_default_value=True, precedence=None, readonly=False ) - Whether to apply extent overrides on the Elements
-
param Boolean
apply_ticks
( allow_None=False, bounds=(0, 1), constant=False, default=True, instantiate=False, pickle_default_value=True, precedence=None, readonly=False ) - Whether to apply custom ticks.
-
param Parameter
aspect
( allow_None=False, constant=False, default=square, instantiate=False, pickle_default_value=True, precedence=None, readonly=False ) - The aspect ratio mode of the plot. By default, a plot may select its own appropriate aspect ratio but sometimes it may be necessary to force a square aspect ratio (e.g. to display the plot as an element of a grid). The modes ‘auto’ and ‘equal’ correspond to the axis modes of the same name in matplotlib, a numeric value may also be passed.
-
param ClassSelector
bgcolor
( allow_None=True, constant=False, default=None, instantiate=True, is_instance=True, pickle_default_value=True, precedence=None, readonly=False ) - If set bgcolor overrides the background color of the axis.
-
param ObjectSelector
invert_axes
( allow_None=None, check_on_set=False, compute_default_fn=None, constant=False, default=False, instantiate=False, objects=[], pickle_default_value=True, precedence=None, readonly=False ) - Inverts the axes of the plot. Note that this parameter may not always be respected by all plots but should be respected by adjoined plots when appropriate.
-
param Boolean
invert_xaxis
( allow_None=False, bounds=(0, 1), constant=False, default=False, instantiate=False, pickle_default_value=True, precedence=None, readonly=False ) - Whether to invert the plot x-axis.
-
param Boolean
invert_yaxis
( allow_None=False, bounds=(0, 1), constant=False, default=False, instantiate=False, pickle_default_value=True, precedence=None, readonly=False ) - Whether to invert the plot y-axis.
-
param Boolean
invert_zaxis
( allow_None=False, bounds=(0, 1), constant=False, default=False, instantiate=False, pickle_default_value=True, precedence=None, readonly=False ) - Whether to invert the plot z-axis.
-
param List
labelled
( allow_None=False, bounds=(0, None), constant=False, default=[‘x’, ‘y’], instantiate=True, pickle_default_value=True, precedence=None, readonly=False ) - Whether to plot the ‘x’ and ‘y’ labels.
-
param Boolean
logx
( allow_None=False, bounds=(0, 1), constant=False, default=False, instantiate=False, pickle_default_value=True, precedence=None, readonly=False ) - Whether to apply log scaling to the x-axis of the Chart.
-
param Boolean
logy
( allow_None=False, bounds=(0, 1), constant=False, default=False, instantiate=False, pickle_default_value=True, precedence=None, readonly=False ) - Whether to apply log scaling to the y-axis of the Chart.
-
param Boolean
logz
( allow_None=False, bounds=(0, 1), constant=False, default=False, instantiate=False, pickle_default_value=True, precedence=None, readonly=False ) - Whether to apply log scaling to the y-axis of the Chart.
-
param Boolean
show_legend
( allow_None=False, bounds=(0, 1), constant=False, default=True, instantiate=False, pickle_default_value=True, precedence=None, readonly=False ) - Whether to show legend for the plot.
-
param Boolean
show_grid
( allow_None=False, bounds=(0, 1), constant=False, default=False, instantiate=False, pickle_default_value=True, precedence=None, readonly=False ) - Whether to draw grid lines at the tick positions.
-
param ObjectSelector
xaxis
( allow_None=None, check_on_set=True, compute_default_fn=None, constant=False, default=bottom, instantiate=False, objects=[‘top’, ‘bottom’, ‘bare’, ‘top-bare’, ‘bottom-bare’, None], pickle_default_value=True, precedence=None, readonly=False ) - Whether and where to display the xaxis, bare options allow suppressing all axis labels including ticks and xlabel. Valid options are ‘top’, ‘bottom’, ‘bare’, ‘top-bare’ and ‘bottom-bare’.
-
param ObjectSelector
yaxis
( allow_None=None, check_on_set=True, compute_default_fn=None, constant=False, default=left, instantiate=False, objects=[‘left’, ‘right’, ‘bare’, ‘left-bare’, ‘right-bare’, None], pickle_default_value=True, precedence=None, readonly=False ) - Whether and where to display the yaxis, bare options allow suppressing all axis labels including ticks and ylabel. Valid options are ‘left’, ‘right’, ‘bare’ ‘left-bare’ and ‘right-bare’.
-
param Boolean
zaxis
( allow_None=False, bounds=(0, 1), constant=False, default=True, instantiate=False, pickle_default_value=True, precedence=None, readonly=False ) - Whether to display the z-axis.
-
param Parameter
xticks
( allow_None=True, constant=False, default=None, instantiate=False, pickle_default_value=True, precedence=None, readonly=False ) - Ticks along x-axis specified as an integer, explicit list of tick locations, list of tuples containing the locations and labels or a matplotlib tick locator object. If set to None default matplotlib ticking behavior is applied.
-
param Integer
xrotation
( allow_None=False, bounds=(0, 360), constant=False, default=0, inclusive_bounds=(True, True), instantiate=False, pickle_default_value=True, precedence=None, readonly=False, softbounds=None, time_dependent=False, time_fn=<Time Time00001> ) - Rotation angle of the xticks.
-
param Parameter
yticks
( allow_None=True, constant=False, default=None, instantiate=False, pickle_default_value=True, precedence=None, readonly=False ) - Ticks along y-axis specified as an integer, explicit list of tick locations, list of tuples containing the locations and labels or a matplotlib tick locator object. If set to None default matplotlib ticking behavior is applied.
-
param Integer
yrotation
( allow_None=False, bounds=(0, 360), constant=False, default=0, inclusive_bounds=(True, True), instantiate=False, pickle_default_value=True, precedence=None, readonly=False, softbounds=None, time_dependent=False, time_fn=<Time Time00001> ) - Rotation angle of the yticks.
-
param Integer
zrotation
( allow_None=False, bounds=(0, 360), constant=False, default=0, inclusive_bounds=(True, True), instantiate=False, pickle_default_value=True, precedence=None, readonly=False, softbounds=None, time_dependent=False, time_fn=<Time Time00001> ) - Rotation angle of the zticks.
-
param Parameter
zticks
( allow_None=True, constant=False, default=None, instantiate=False, pickle_default_value=True, precedence=None, readonly=False ) - Ticks along z-axis specified as an integer, explicit list of tick locations, list of tuples containing the locations and labels or a matplotlib tick locator object. If set to None default matplotlib ticking behavior is applied.
-
param Boolean
colorbar
( allow_None=False, bounds=(0, 1), constant=False, default=False, instantiate=False, pickle_default_value=True, precedence=None, readonly=False ) - Whether to draw a colorbar.
-
param Dict
clipping_colors
( allow_None=False, constant=False, default={}, instantiate=True, is_instance=True, pickle_default_value=True, precedence=None, readonly=False ) - Dictionary to specify colors for clipped values, allows setting color for NaN values and for values above and below the min and max value. The min, max or NaN color may specify an RGB(A) color as a color hex string of the form #FFFFFF or #FFFFFFFF or a length 3 or length 4 tuple specifying values in the range 0-1 or a named HTML color.
-
param Number
cbar_padding
( allow_None=False, bounds=None, constant=False, default=0.01, inclusive_bounds=(True, True), instantiate=False, pickle_default_value=True, precedence=None, readonly=False, softbounds=None, time_dependent=False, time_fn=<Time Time00001> ) - Padding between colorbar and other plots.
-
param Parameter
cbar_ticks
( allow_None=True, constant=False, default=None, instantiate=False, pickle_default_value=True, precedence=None, readonly=False ) - Ticks along colorbar-axis specified as an integer, explicit list of tick locations, list of tuples containing the locations and labels or a matplotlib tick locator object. If set to None default matplotlib ticking behavior is applied.
-
param Number
cbar_width
( allow_None=False, bounds=None, constant=False, default=0.05, inclusive_bounds=(True, True), instantiate=False, pickle_default_value=True, precedence=None, readonly=False, softbounds=None, time_dependent=False, time_fn=<Time Time00001> ) - Width of the colorbar as a fraction of the main plot
-
param Boolean
symmetric
( allow_None=False, bounds=(0, 1), constant=False, default=False, instantiate=False, pickle_default_value=True, precedence=None, readonly=False ) - Whether to make the colormap symmetric around zero.
-
param ClassSelector
color_index
( allow_None=True, constant=False, default=None, instantiate=True, is_instance=True, pickle_default_value=True, precedence=None, readonly=False ) - Index of the dimension from which the color will the drawn
-
param ClassSelector
size_index
( allow_None=True, constant=False, default=None, instantiate=True, is_instance=True, pickle_default_value=True, precedence=None, readonly=False ) - Index of the dimension from which the sizes will the drawn.
-
param ObjectSelector
scaling_method
( allow_None=None, check_on_set=True, compute_default_fn=None, constant=False, default=area, instantiate=False, objects=[‘width’, ‘area’], pickle_default_value=True, precedence=None, readonly=False ) - Determines whether the scaling_factor should be applied to the width or area of each point (default: “area”).
-
param Number
scaling_factor
( allow_None=False, bounds=(0, None), constant=False, default=1, inclusive_bounds=(True, True), instantiate=False, pickle_default_value=True, precedence=None, readonly=False, softbounds=None, time_dependent=False, time_fn=<Time Time00001> ) - Scaling factor which is applied to either the width or area of each point, depending on the value of scaling_method .
-
param Callable
size_fn
( allow_None=False, constant=False, default=<ufunc ‘absolute’>, instantiate=False, pickle_default_value=True, precedence=None, readonly=False ) - Function applied to size values before applying scaling, to remove values lower than zero.
-
anim
( start=0 , stop=None , fps=30 ) ¶ -
Method to return a matplotlib animation. The start and stop frames may be specified as well as the fps.
-
compute_ranges
( obj , key , ranges ) ¶ -
Given an object, a specific key and the normalization options this method will find the specified normalization options on the appropriate OptionTree, group the elements according to the selected normalization option (i.e. either per frame or over the whole animation) and finally compute the dimension ranges in each group. The new set of ranges is returned.
-
debug
( msg , *args , **kw ) ¶ -
Print msg merged with args as a debugging statement.
See Python’s logging module for details of message formatting.
-
defaults
( ) ¶ -
Return {parameter_name:parameter.default} for all non-constant Parameters.
Note that a Parameter for which instantiate==True has its default instantiated.
-
force_new_dynamic_value
= functools.partial(<function Parameterized.force_new_dynamic_value>, <class 'holoviews.plotting.mpl.chart.PointPlot'>) ¶
-
get_extents
( view , ranges ) ¶ -
Gets the extents for the axes from the current View. The globally computed ranges can optionally override the extents.
-
get_param_values
( onlychanged=False ) ¶ -
Return a list of name,value pairs for all Parameters of this object.
If onlychanged is True, will only return values that are not equal to the default value.
-
get_value_generator
= functools.partial(<function Parameterized.get_value_generator>, <class 'holoviews.plotting.mpl.chart.PointPlot'>) ¶
-
get_zorder
( overlay , key , el ) ¶ -
Computes the z-order of element in the NdOverlay taking into account possible batching of elements.
-
init_artists
( ax , plot_args , plot_kwargs ) ¶ -
Initializes the artist based on the plot method declared on the plot.
-
init_comm
( ) ¶ -
Initializes comm and attaches streams.
-
inspect_value
= functools.partial(<function Parameterized.inspect_value>, <class 'holoviews.plotting.mpl.chart.PointPlot'>) ¶
-
matches
( spec ) ¶ -
Matches a specification against the current Plot.
-
message
( msg , *args , **kw ) ¶ -
Print msg merged with args as a message.
See Python’s logging module for details of message formatting.
-
params
( parameter_name=None ) ¶ -
Return the Parameters of this class as the dictionary {name: parameter_object}
Includes Parameters from this class and its superclasses.
-
pprint
( imports=None , prefix=' ' , unknown_value='<?>' , qualify=False , separator='' ) ¶ -
(Experimental) Pretty printed representation that may be evaluated with eval. See pprint() function for more details.
-
print_param_defaults
( ) ¶ -
Print the default values of all cls’s Parameters.
-
print_param_values
( ) ¶ -
Print the values of all this object’s Parameters.
-
push
( ) ¶ -
Pushes updated plot data via the Comm.
-
refresh
( **kwargs ) ¶ -
Refreshes the plot by rerendering it and then pushing the updated data if the plot has an associated Comm.
-
script_repr
( imports=[] , prefix=' ' ) ¶ -
Variant of __repr__ designed for generating a runnable script.
-
set_default
( param_name , value ) ¶ -
Set the default value of param_name.
Equivalent to setting param_name on the class.
-
set_dynamic_time_fn
= functools.partial(<function Parameterized.set_dynamic_time_fn>, <class 'holoviews.plotting.mpl.chart.PointPlot'>) ¶
-
set_param
= functools.partial(<function Parameterized.set_param>, <class 'holoviews.plotting.mpl.chart.PointPlot'>) ¶
-
size_fn
= <ufunc 'absolute'> ¶
-
state_pop
( ) ¶ -
Restore the most recently saved state.
See state_push() for more details.
-
state_push
( ) ¶ -
Save this instance’s state.
For Parameterized instances, this includes the state of dynamically generated values.
Subclasses that maintain short-term state should additionally save and restore that state using state_push() and state_pop().
Generally, this method is used by operations that need to test something without permanently altering the objects’ state.
-
teardown_handles
( ) ¶ -
If no custom update_handles method is supplied this method is called to tear down any previous handles before replacing them.
-
traverse
( fn=None , specs=None , full_breadth=True ) ¶ -
Traverses any nested DimensionedPlot returning a list of all plots that match the specs. The specs should be supplied as a list of either Plot types or callables, which should return a boolean given the plot class.
-
verbose
( msg , *args , **kw ) ¶ -
Print msg merged with args as a verbose message.
See Python’s logging module for details of message formatting.
-
warning
( msg , *args , **kw ) ¶ -
Print msg merged with args as a warning, unless module variable warnings_as_exceptions is True, then raise an Exception containing the arguments.
See Python’s logging module for details of message formatting.
-
param Parameter
-
class
holoviews.plotting.mpl.chart.
SpreadPlot
( element , **params ) [source] ¶ -
Bases:
holoviews.plotting.mpl.chart.AreaPlot
SpreadPlot plots the Spread Element type.
-
param Parameter
fontsize
( allow_None=True, constant=False, default=None, instantiate=False, pickle_default_value=True, precedence=None, readonly=False ) - Specifies various fontsizes of the displayed text. Finer control is available by supplying a dictionary where any unmentioned keys reverts to the default sizes, e.g: {‘ticks’:20, ‘title’:15, ‘ylabel’:5, ‘xlabel’:5, ‘legend’:8, ‘legend_title’:13} You can set the fontsize of both ‘ylabel’ and ‘xlabel’ together using the ‘labels’ key.
-
param Boolean
show_title
( allow_None=False, bounds=(0, 1), constant=False, default=True, instantiate=False, pickle_default_value=True, precedence=None, readonly=False ) - Whether to display the plot title.
-
param String
title_format
( allow_None=False, basestring=<class ‘str’>, constant=False, default={label} {group} {dimensions}, instantiate=False, pickle_default_value=True, precedence=None, readonly=False ) - The formatting string for the title of this plot, allows defining a label group separator and dimension labels.
-
param Boolean
normalize
( allow_None=False, bounds=(0, 1), constant=False, default=True, instantiate=False, pickle_default_value=True, precedence=None, readonly=False ) - Whether to compute ranges across all Elements at this level of plotting. Allows selecting normalization at different levels for nested data containers.
-
param Parameter
projection
( allow_None=True, constant=False, default=None, instantiate=False, pickle_default_value=True, precedence=None, readonly=False ) - The projection of the plot axis, default of None is equivalent to 2D plot, ‘3d’ and ‘polar’ are also supported by matplotlib by default. May also supply a custom projection that is either a matplotlib projection type or implements the _as_mpl_axes method.
-
param Number
fig_alpha
( allow_None=False, bounds=(0, 1), constant=False, default=1.0, inclusive_bounds=(True, True), instantiate=False, pickle_default_value=True, precedence=None, readonly=False, softbounds=None, time_dependent=False, time_fn=<Time Time00001> ) - Alpha of the overall figure background.
-
param NumericTuple
fig_bounds
( allow_None=False, constant=False, default=(0.15, 0.15, 0.85, 0.85), instantiate=False, length=4, pickle_default_value=True, precedence=None, readonly=False ) - The bounds of the overall figure as a 4-tuple of the form (left, bottom, right, top), defining the size of the border around the subplots.
-
param Parameter
fig_inches
( allow_None=False, constant=False, default=4, instantiate=False, pickle_default_value=True, precedence=None, readonly=False ) - The overall matplotlib figure size in inches. May be set as an integer in which case it will be used to autocompute a size. Alternatively may be set with an explicit tuple or list, in which case it will be applied directly after being scaled by fig_size. If either the width or height is set to None, it will be computed automatically.
-
param Boolean
fig_latex
( allow_None=False, bounds=(0, 1), constant=False, default=False, instantiate=False, pickle_default_value=True, precedence=None, readonly=False ) - Whether to use LaTeX text in the overall figure.
-
param Dict
fig_rcparams
( allow_None=False, constant=False, default={}, instantiate=True, is_instance=True, pickle_default_value=True, precedence=None, readonly=False ) - matplotlib rc parameters to apply to the overall figure.
-
param Number
fig_size
( allow_None=False, bounds=(1, None), constant=False, default=100.0, inclusive_bounds=(True, True), instantiate=False, pickle_default_value=True, precedence=None, readonly=False, softbounds=None, time_dependent=False, time_fn=<Time Time00001> ) - Size relative to the supplied overall fig_inches in percent.
-
param HookList
initial_hooks
( allow_None=False, bounds=(0, None), constant=False, default=[], instantiate=True, pickle_default_value=True, precedence=None, readonly=False ) - Optional list of hooks called before plotting the data onto the axis. The hook is passed the plot object and the displayed object, other plotting handles can be accessed via plot.handles.
-
param HookList
final_hooks
( allow_None=False, bounds=(0, None), constant=False, default=[], instantiate=True, pickle_default_value=True, precedence=None, readonly=False ) - Optional list of hooks called when finalizing an axis. The hook is passed the plot object and the displayed object, other plotting handles can be accessed via plot.handles.
-
param HookList
finalize_hooks
( allow_None=False, bounds=(0, None), constant=False, default=[], instantiate=True, pickle_default_value=True, precedence=None, readonly=False ) - Optional list of hooks called when finalizing an axis. The hook is passed the plot object and the displayed object, other plotting handles can be accessed via plot.handles.
-
param String
sublabel_format
( allow_None=True, basestring=<class ‘str’>, constant=False, default=None, instantiate=False, pickle_default_value=True, precedence=None, readonly=False ) - Allows labeling the subaxes in each plot with various formatters including {Alpha}, {alpha}, {numeric} and {roman}.
-
param NumericTuple
sublabel_position
( allow_None=False, constant=False, default=(-0.35, 0.85), instantiate=False, length=2, pickle_default_value=True, precedence=None, readonly=False ) - Position relative to the plot for placing the optional subfigure label.
-
param Number
sublabel_size
( allow_None=False, bounds=None, constant=False, default=18, inclusive_bounds=(True, True), instantiate=False, pickle_default_value=True, precedence=None, readonly=False, softbounds=None, time_dependent=False, time_fn=<Time Time00001> ) - Size of optional subfigure label.
-
param Boolean
show_frame
( allow_None=False, bounds=(0, 1), constant=False, default=False, instantiate=False, pickle_default_value=True, precedence=None, readonly=False ) - Whether or not to show a complete frame around the plot.
-
param Boolean
apply_ranges
( allow_None=False, bounds=(0, 1), constant=False, default=True, instantiate=False, pickle_default_value=True, precedence=None, readonly=False ) - Whether to compute the plot bounds from the data itself.
-
param Boolean
apply_extents
( allow_None=False, bounds=(0, 1), constant=False, default=True, instantiate=False, pickle_default_value=True, precedence=None, readonly=False ) - Whether to apply extent overrides on the Elements
-
param Boolean
apply_ticks
( allow_None=False, bounds=(0, 1), constant=False, default=True, instantiate=False, pickle_default_value=True, precedence=None, readonly=False ) - Whether to apply custom ticks.
-
param Parameter
aspect
( allow_None=False, constant=False, default=square, instantiate=False, pickle_default_value=True, precedence=None, readonly=False ) - The aspect ratio mode of the plot. By default, a plot may select its own appropriate aspect ratio but sometimes it may be necessary to force a square aspect ratio (e.g. to display the plot as an element of a grid). The modes ‘auto’ and ‘equal’ correspond to the axis modes of the same name in matplotlib, a numeric value may also be passed.
-
param ClassSelector
bgcolor
( allow_None=True, constant=False, default=None, instantiate=True, is_instance=True, pickle_default_value=True, precedence=None, readonly=False ) - If set bgcolor overrides the background color of the axis.
-
param ObjectSelector
invert_axes
( allow_None=None, check_on_set=False, compute_default_fn=None, constant=False, default=False, instantiate=False, objects=[], pickle_default_value=True, precedence=None, readonly=False ) - Inverts the axes of the plot. Note that this parameter may not always be respected by all plots but should be respected by adjoined plots when appropriate.
-
param Boolean
invert_xaxis
( allow_None=False, bounds=(0, 1), constant=False, default=False, instantiate=False, pickle_default_value=True, precedence=None, readonly=False ) - Whether to invert the plot x-axis.
-
param Boolean
invert_yaxis
( allow_None=False, bounds=(0, 1), constant=False, default=False, instantiate=False, pickle_default_value=True, precedence=None, readonly=False ) - Whether to invert the plot y-axis.
-
param Boolean
invert_zaxis
( allow_None=False, bounds=(0, 1), constant=False, default=False, instantiate=False, pickle_default_value=True, precedence=None, readonly=False ) - Whether to invert the plot z-axis.
-
param List
labelled
( allow_None=False, bounds=(0, None), constant=False, default=[‘x’, ‘y’], instantiate=True, pickle_default_value=True, precedence=None, readonly=False ) - Whether to plot the ‘x’ and ‘y’ labels.
-
param Boolean
logx
( allow_None=False, bounds=(0, 1), constant=False, default=False, instantiate=False, pickle_default_value=True, precedence=None, readonly=False ) - Whether to apply log scaling to the x-axis of the Chart.
-
param Boolean
logy
( allow_None=False, bounds=(0, 1), constant=False, default=False, instantiate=False, pickle_default_value=True, precedence=None, readonly=False ) - Whether to apply log scaling to the y-axis of the Chart.
-
param Boolean
logz
( allow_None=False, bounds=(0, 1), constant=False, default=False, instantiate=False, pickle_default_value=True, precedence=None, readonly=False ) - Whether to apply log scaling to the y-axis of the Chart.
-
param Boolean
show_legend
( allow_None=False, bounds=(0, 1), constant=False, default=False, instantiate=False, pickle_default_value=True, precedence=None, readonly=False ) - Whether to show legend for the plot.
-
param Boolean
show_grid
( allow_None=False, bounds=(0, 1), constant=False, default=False, instantiate=False, pickle_default_value=True, precedence=None, readonly=False ) - Whether to show a Cartesian grid on the plot.
-
param ObjectSelector
xaxis
( allow_None=None, check_on_set=True, compute_default_fn=None, constant=False, default=bottom, instantiate=False, objects=[‘top’, ‘bottom’, ‘bare’, ‘top-bare’, ‘bottom-bare’, None], pickle_default_value=True, precedence=None, readonly=False ) - Whether and where to display the xaxis, bare options allow suppressing all axis labels including ticks and xlabel. Valid options are ‘top’, ‘bottom’, ‘bare’, ‘top-bare’ and ‘bottom-bare’.
-
param ObjectSelector
yaxis
( allow_None=None, check_on_set=True, compute_default_fn=None, constant=False, default=left, instantiate=False, objects=[‘left’, ‘right’, ‘bare’, ‘left-bare’, ‘right-bare’, None], pickle_default_value=True, precedence=None, readonly=False ) - Whether and where to display the yaxis, bare options allow suppressing all axis labels including ticks and ylabel. Valid options are ‘left’, ‘right’, ‘bare’ ‘left-bare’ and ‘right-bare’.
-
param Boolean
zaxis
( allow_None=False, bounds=(0, 1), constant=False, default=True, instantiate=False, pickle_default_value=True, precedence=None, readonly=False ) - Whether to display the z-axis.
-
param Parameter
xticks
( allow_None=True, constant=False, default=None, instantiate=False, pickle_default_value=True, precedence=None, readonly=False ) - Ticks along x-axis specified as an integer, explicit list of tick locations, list of tuples containing the locations and labels or a matplotlib tick locator object. If set to None default matplotlib ticking behavior is applied.
-
param Integer
xrotation
( allow_None=False, bounds=(0, 360), constant=False, default=0, inclusive_bounds=(True, True), instantiate=False, pickle_default_value=True, precedence=None, readonly=False, softbounds=None, time_dependent=False, time_fn=<Time Time00001> ) - Rotation angle of the xticks.
-
param Parameter
yticks
( allow_None=True, constant=False, default=None, instantiate=False, pickle_default_value=True, precedence=None, readonly=False ) - Ticks along y-axis specified as an integer, explicit list of tick locations, list of tuples containing the locations and labels or a matplotlib tick locator object. If set to None default matplotlib ticking behavior is applied.
-
param Integer
yrotation
( allow_None=False, bounds=(0, 360), constant=False, default=0, inclusive_bounds=(True, True), instantiate=False, pickle_default_value=True, precedence=None, readonly=False, softbounds=None, time_dependent=False, time_fn=<Time Time00001> ) - Rotation angle of the yticks.
-
param Integer
zrotation
( allow_None=False, bounds=(0, 360), constant=False, default=0, inclusive_bounds=(True, True), instantiate=False, pickle_default_value=True, precedence=None, readonly=False, softbounds=None, time_dependent=False, time_fn=<Time Time00001> ) - Rotation angle of the zticks.
-
param Parameter
zticks
( allow_None=True, constant=False, default=None, instantiate=False, pickle_default_value=True, precedence=None, readonly=False ) - Ticks along z-axis specified as an integer, explicit list of tick locations, list of tuples containing the locations and labels or a matplotlib tick locator object. If set to None default matplotlib ticking behavior is applied.
-
anim
( start=0 , stop=None , fps=30 ) ¶ -
Method to return a matplotlib animation. The start and stop frames may be specified as well as the fps.
-
compute_ranges
( obj , key , ranges ) ¶ -
Given an object, a specific key and the normalization options this method will find the specified normalization options on the appropriate OptionTree, group the elements according to the selected normalization option (i.e. either per frame or over the whole animation) and finally compute the dimension ranges in each group. The new set of ranges is returned.
-
debug
( msg , *args , **kw ) ¶ -
Print msg merged with args as a debugging statement.
See Python’s logging module for details of message formatting.
-
defaults
( ) ¶ -
Return {parameter_name:parameter.default} for all non-constant Parameters.
Note that a Parameter for which instantiate==True has its default instantiated.
-
force_new_dynamic_value
= functools.partial(<function Parameterized.force_new_dynamic_value>, <class 'holoviews.plotting.mpl.chart.SpreadPlot'>) ¶
-
get_param_values
( onlychanged=False ) ¶ -
Return a list of name,value pairs for all Parameters of this object.
If onlychanged is True, will only return values that are not equal to the default value.
-
get_value_generator
= functools.partial(<function Parameterized.get_value_generator>, <class 'holoviews.plotting.mpl.chart.SpreadPlot'>) ¶
-
get_zorder
( overlay , key , el ) ¶ -
Computes the z-order of element in the NdOverlay taking into account possible batching of elements.
-
init_comm
( ) ¶ -
Initializes comm and attaches streams.
-
inspect_value
= functools.partial(<function Parameterized.inspect_value>, <class 'holoviews.plotting.mpl.chart.SpreadPlot'>) ¶
-
matches
( spec ) ¶ -
Matches a specification against the current Plot.
-
message
( msg , *args , **kw ) ¶ -
Print msg merged with args as a message.
See Python’s logging module for details of message formatting.
-
params
( parameter_name=None ) ¶ -
Return the Parameters of this class as the dictionary {name: parameter_object}
Includes Parameters from this class and its superclasses.
-
pprint
( imports=None , prefix=' ' , unknown_value='<?>' , qualify=False , separator='' ) ¶ -
(Experimental) Pretty printed representation that may be evaluated with eval. See pprint() function for more details.
-
print_param_defaults
( ) ¶ -
Print the default values of all cls’s Parameters.
-
print_param_values
( ) ¶ -
Print the values of all this object’s Parameters.
-
push
( ) ¶ -
Pushes updated plot data via the Comm.
-
refresh
( **kwargs ) ¶ -
Refreshes the plot by rerendering it and then pushing the updated data if the plot has an associated Comm.
-
script_repr
( imports=[] , prefix=' ' ) ¶ -
Variant of __repr__ designed for generating a runnable script.
-
set_default
( param_name , value ) ¶ -
Set the default value of param_name.
Equivalent to setting param_name on the class.
-
set_dynamic_time_fn
= functools.partial(<function Parameterized.set_dynamic_time_fn>, <class 'holoviews.plotting.mpl.chart.SpreadPlot'>) ¶
-
set_param
= functools.partial(<function Parameterized.set_param>, <class 'holoviews.plotting.mpl.chart.SpreadPlot'>) ¶
-
state_pop
( ) ¶ -
Restore the most recently saved state.
See state_push() for more details.
-
state_push
( ) ¶ -
Save this instance’s state.
For Parameterized instances, this includes the state of dynamically generated values.
Subclasses that maintain short-term state should additionally save and restore that state using state_push() and state_pop().
Generally, this method is used by operations that need to test something without permanently altering the objects’ state.
-
teardown_handles
( ) ¶ -
If no custom update_handles method is supplied this method is called to tear down any previous handles before replacing them.
-
traverse
( fn=None , specs=None , full_breadth=True ) ¶ -
Traverses any nested DimensionedPlot returning a list of all plots that match the specs. The specs should be supplied as a list of either Plot types or callables, which should return a boolean given the plot class.
-
update_handles
( key , axis , element , ranges , style ) ¶ -
Update the elements of the plot.
-
verbose
( msg , *args , **kw ) ¶ -
Print msg merged with args as a verbose message.
See Python’s logging module for details of message formatting.
-
warning
( msg , *args , **kw ) ¶ -
Print msg merged with args as a warning, unless module variable warnings_as_exceptions is True, then raise an Exception containing the arguments.
See Python’s logging module for details of message formatting.
-
param Parameter
-
class
holoviews.plotting.mpl.chart.
VectorFieldPlot
( *args , **params ) [source] ¶ -
Bases:
holoviews.plotting.mpl.element.ColorbarPlot
Renders vector fields in sheet coordinates. The vectors are expressed in polar coordinates and may be displayed according to angle alone (with some common, arbitrary arrow length) or may be true polar vectors.
The color or magnitude can be mapped onto any dimension using the color_index and size_index.
The length of the arrows is controlled by the ‘scale’ style option. The scaling of the arrows may also be controlled via the normalize_lengths and rescale_lengths plot option, which will normalize the lengths to a maximum of 1 and scale them according to the minimum distance respectively.
-
param Parameter
fontsize
( allow_None=True, constant=False, default=None, instantiate=False, pickle_default_value=True, precedence=None, readonly=False ) - Specifies various fontsizes of the displayed text. Finer control is available by supplying a dictionary where any unmentioned keys reverts to the default sizes, e.g: {‘ticks’:20, ‘title’:15, ‘ylabel’:5, ‘xlabel’:5, ‘legend’:8, ‘legend_title’:13} You can set the fontsize of both ‘ylabel’ and ‘xlabel’ together using the ‘labels’ key.
-
param Boolean
show_title
( allow_None=False, bounds=(0, 1), constant=False, default=True, instantiate=False, pickle_default_value=True, precedence=None, readonly=False ) - Whether to display the plot title.
-
param String
title_format
( allow_None=False, basestring=<class ‘str’>, constant=False, default={label} {group} {dimensions}, instantiate=False, pickle_default_value=True, precedence=None, readonly=False ) - The formatting string for the title of this plot, allows defining a label group separator and dimension labels.
-
param Boolean
normalize
( allow_None=False, bounds=(0, 1), constant=False, default=True, instantiate=False, pickle_default_value=True, precedence=None, readonly=False ) - Whether to compute ranges across all Elements at this level of plotting. Allows selecting normalization at different levels for nested data containers.
-
param Parameter
projection
( allow_None=True, constant=False, default=None, instantiate=False, pickle_default_value=True, precedence=None, readonly=False ) - The projection of the plot axis, default of None is equivalent to 2D plot, ‘3d’ and ‘polar’ are also supported by matplotlib by default. May also supply a custom projection that is either a matplotlib projection type or implements the _as_mpl_axes method.
-
param Number
fig_alpha
( allow_None=False, bounds=(0, 1), constant=False, default=1.0, inclusive_bounds=(True, True), instantiate=False, pickle_default_value=True, precedence=None, readonly=False, softbounds=None, time_dependent=False, time_fn=<Time Time00001> ) - Alpha of the overall figure background.
-
param NumericTuple
fig_bounds
( allow_None=False, constant=False, default=(0.15, 0.15, 0.85, 0.85), instantiate=False, length=4, pickle_default_value=True, precedence=None, readonly=False ) - The bounds of the overall figure as a 4-tuple of the form (left, bottom, right, top), defining the size of the border around the subplots.
-
param Parameter
fig_inches
( allow_None=False, constant=False, default=4, instantiate=False, pickle_default_value=True, precedence=None, readonly=False ) - The overall matplotlib figure size in inches. May be set as an integer in which case it will be used to autocompute a size. Alternatively may be set with an explicit tuple or list, in which case it will be applied directly after being scaled by fig_size. If either the width or height is set to None, it will be computed automatically.
-
param Boolean
fig_latex
( allow_None=False, bounds=(0, 1), constant=False, default=False, instantiate=False, pickle_default_value=True, precedence=None, readonly=False ) - Whether to use LaTeX text in the overall figure.
-
param Dict
fig_rcparams
( allow_None=False, constant=False, default={}, instantiate=True, is_instance=True, pickle_default_value=True, precedence=None, readonly=False ) - matplotlib rc parameters to apply to the overall figure.
-
param Number
fig_size
( allow_None=False, bounds=(1, None), constant=False, default=100.0, inclusive_bounds=(True, True), instantiate=False, pickle_default_value=True, precedence=None, readonly=False, softbounds=None, time_dependent=False, time_fn=<Time Time00001> ) - Size relative to the supplied overall fig_inches in percent.
-
param HookList
initial_hooks
( allow_None=False, bounds=(0, None), constant=False, default=[], instantiate=True, pickle_default_value=True, precedence=None, readonly=False ) - Optional list of hooks called before plotting the data onto the axis. The hook is passed the plot object and the displayed object, other plotting handles can be accessed via plot.handles.
-
param HookList
final_hooks
( allow_None=False, bounds=(0, None), constant=False, default=[], instantiate=True, pickle_default_value=True, precedence=None, readonly=False ) - Optional list of hooks called when finalizing an axis. The hook is passed the plot object and the displayed object, other plotting handles can be accessed via plot.handles.
-
param HookList
finalize_hooks
( allow_None=False, bounds=(0, None), constant=False, default=[], instantiate=True, pickle_default_value=True, precedence=None, readonly=False ) - Optional list of hooks called when finalizing an axis. The hook is passed the plot object and the displayed object, other plotting handles can be accessed via plot.handles.
-
param String
sublabel_format
( allow_None=True, basestring=<class ‘str’>, constant=False, default=None, instantiate=False, pickle_default_value=True, precedence=None, readonly=False ) - Allows labeling the subaxes in each plot with various formatters including {Alpha}, {alpha}, {numeric} and {roman}.
-
param NumericTuple
sublabel_position
( allow_None=False, constant=False, default=(-0.35, 0.85), instantiate=False, length=2, pickle_default_value=True, precedence=None, readonly=False ) - Position relative to the plot for placing the optional subfigure label.
-
param Number
sublabel_size
( allow_None=False, bounds=None, constant=False, default=18, inclusive_bounds=(True, True), instantiate=False, pickle_default_value=True, precedence=None, readonly=False, softbounds=None, time_dependent=False, time_fn=<Time Time00001> ) - Size of optional subfigure label.
-
param Boolean
show_frame
( allow_None=False, bounds=(0, 1), constant=False, default=False, instantiate=False, pickle_default_value=True, precedence=None, readonly=False ) - Whether or not to show a complete frame around the plot.
-
param Boolean
apply_ranges
( allow_None=False, bounds=(0, 1), constant=False, default=True, instantiate=False, pickle_default_value=True, precedence=None, readonly=False ) - Whether to compute the plot bounds from the data itself.
-
param Boolean
apply_extents
( allow_None=False, bounds=(0, 1), constant=False, default=True, instantiate=False, pickle_default_value=True, precedence=None, readonly=False ) - Whether to apply extent overrides on the Elements
-
param Boolean
apply_ticks
( allow_None=False, bounds=(0, 1), constant=False, default=True, instantiate=False, pickle_default_value=True, precedence=None, readonly=False ) - Whether to apply custom ticks.
-
param Parameter
aspect
( allow_None=False, constant=False, default=square, instantiate=False, pickle_default_value=True, precedence=None, readonly=False ) - The aspect ratio mode of the plot. By default, a plot may select its own appropriate aspect ratio but sometimes it may be necessary to force a square aspect ratio (e.g. to display the plot as an element of a grid). The modes ‘auto’ and ‘equal’ correspond to the axis modes of the same name in matplotlib, a numeric value may also be passed.
-
param ClassSelector
bgcolor
( allow_None=True, constant=False, default=None, instantiate=True, is_instance=True, pickle_default_value=True, precedence=None, readonly=False ) - If set bgcolor overrides the background color of the axis.
-
param ObjectSelector
invert_axes
( allow_None=None, check_on_set=False, compute_default_fn=None, constant=False, default=False, instantiate=False, objects=[], pickle_default_value=True, precedence=None, readonly=False ) - Inverts the axes of the plot. Note that this parameter may not always be respected by all plots but should be respected by adjoined plots when appropriate.
-
param Boolean
invert_xaxis
( allow_None=False, bounds=(0, 1), constant=False, default=False, instantiate=False, pickle_default_value=True, precedence=None, readonly=False ) - Whether to invert the plot x-axis.
-
param Boolean
invert_yaxis
( allow_None=False, bounds=(0, 1), constant=False, default=False, instantiate=False, pickle_default_value=True, precedence=None, readonly=False ) - Whether to invert the plot y-axis.
-
param Boolean
invert_zaxis
( allow_None=False, bounds=(0, 1), constant=False, default=False, instantiate=False, pickle_default_value=True, precedence=None, readonly=False ) - Whether to invert the plot z-axis.
-
param List
labelled
( allow_None=False, bounds=(0, None), constant=False, default=[‘x’, ‘y’], instantiate=True, pickle_default_value=True, precedence=None, readonly=False ) - Whether to plot the ‘x’ and ‘y’ labels.
-
param Boolean
logx
( allow_None=False, bounds=(0, 1), constant=False, default=False, instantiate=False, pickle_default_value=True, precedence=None, readonly=False ) - Whether to apply log scaling to the x-axis of the Chart.
-
param Boolean
logy
( allow_None=False, bounds=(0, 1), constant=False, default=False, instantiate=False, pickle_default_value=True, precedence=None, readonly=False ) - Whether to apply log scaling to the y-axis of the Chart.
-
param Boolean
logz
( allow_None=False, bounds=(0, 1), constant=False, default=False, instantiate=False, pickle_default_value=True, precedence=None, readonly=False ) - Whether to apply log scaling to the y-axis of the Chart.
-
param Boolean
show_legend
( allow_None=False, bounds=(0, 1), constant=False, default=False, instantiate=False, pickle_default_value=True, precedence=None, readonly=False ) - Whether to show legend for the plot.
-
param Boolean
show_grid
( allow_None=False, bounds=(0, 1), constant=False, default=False, instantiate=False, pickle_default_value=True, precedence=None, readonly=False ) - Whether to show a Cartesian grid on the plot.
-
param ObjectSelector
xaxis
( allow_None=None, check_on_set=True, compute_default_fn=None, constant=False, default=bottom, instantiate=False, objects=[‘top’, ‘bottom’, ‘bare’, ‘top-bare’, ‘bottom-bare’, None], pickle_default_value=True, precedence=None, readonly=False ) - Whether and where to display the xaxis, bare options allow suppressing all axis labels including ticks and xlabel. Valid options are ‘top’, ‘bottom’, ‘bare’, ‘top-bare’ and ‘bottom-bare’.
-
param ObjectSelector
yaxis
( allow_None=None, check_on_set=True, compute_default_fn=None, constant=False, default=left, instantiate=False, objects=[‘left’, ‘right’, ‘bare’, ‘left-bare’, ‘right-bare’, None], pickle_default_value=True, precedence=None, readonly=False ) - Whether and where to display the yaxis, bare options allow suppressing all axis labels including ticks and ylabel. Valid options are ‘left’, ‘right’, ‘bare’ ‘left-bare’ and ‘right-bare’.
-
param Boolean
zaxis
( allow_None=False, bounds=(0, 1), constant=False, default=True, instantiate=False, pickle_default_value=True, precedence=None, readonly=False ) - Whether to display the z-axis.
-
param Parameter
xticks
( allow_None=True, constant=False, default=None, instantiate=False, pickle_default_value=True, precedence=None, readonly=False ) - Ticks along x-axis specified as an integer, explicit list of tick locations, list of tuples containing the locations and labels or a matplotlib tick locator object. If set to None default matplotlib ticking behavior is applied.
-
param Integer
xrotation
( allow_None=False, bounds=(0, 360), constant=False, default=0, inclusive_bounds=(True, True), instantiate=False, pickle_default_value=True, precedence=None, readonly=False, softbounds=None, time_dependent=False, time_fn=<Time Time00001> ) - Rotation angle of the xticks.
-
param Parameter
yticks
( allow_None=True, constant=False, default=None, instantiate=False, pickle_default_value=True, precedence=None, readonly=False ) - Ticks along y-axis specified as an integer, explicit list of tick locations, list of tuples containing the locations and labels or a matplotlib tick locator object. If set to None default matplotlib ticking behavior is applied.
-
param Integer
yrotation
( allow_None=False, bounds=(0, 360), constant=False, default=0, inclusive_bounds=(True, True), instantiate=False, pickle_default_value=True, precedence=None, readonly=False, softbounds=None, time_dependent=False, time_fn=<Time Time00001> ) - Rotation angle of the yticks.
-
param Integer
zrotation
( allow_None=False, bounds=(0, 360), constant=False, default=0, inclusive_bounds=(True, True), instantiate=False, pickle_default_value=True, precedence=None, readonly=False, softbounds=None, time_dependent=False, time_fn=<Time Time00001> ) - Rotation angle of the zticks.
-
param Parameter
zticks
( allow_None=True, constant=False, default=None, instantiate=False, pickle_default_value=True, precedence=None, readonly=False ) - Ticks along z-axis specified as an integer, explicit list of tick locations, list of tuples containing the locations and labels or a matplotlib tick locator object. If set to None default matplotlib ticking behavior is applied.
-
param Boolean
colorbar
( allow_None=False, bounds=(0, 1), constant=False, default=False, instantiate=False, pickle_default_value=True, precedence=None, readonly=False ) - Whether to draw a colorbar.
-
param Dict
clipping_colors
( allow_None=False, constant=False, default={}, instantiate=True, is_instance=True, pickle_default_value=True, precedence=None, readonly=False ) - Dictionary to specify colors for clipped values, allows setting color for NaN values and for values above and below the min and max value. The min, max or NaN color may specify an RGB(A) color as a color hex string of the form #FFFFFF or #FFFFFFFF or a length 3 or length 4 tuple specifying values in the range 0-1 or a named HTML color.
-
param Number
cbar_padding
( allow_None=False, bounds=None, constant=False, default=0.01, inclusive_bounds=(True, True), instantiate=False, pickle_default_value=True, precedence=None, readonly=False, softbounds=None, time_dependent=False, time_fn=<Time Time00001> ) - Padding between colorbar and other plots.
-
param Parameter
cbar_ticks
( allow_None=True, constant=False, default=None, instantiate=False, pickle_default_value=True, precedence=None, readonly=False ) - Ticks along colorbar-axis specified as an integer, explicit list of tick locations, list of tuples containing the locations and labels or a matplotlib tick locator object. If set to None default matplotlib ticking behavior is applied.
-
param Number
cbar_width
( allow_None=False, bounds=None, constant=False, default=0.05, inclusive_bounds=(True, True), instantiate=False, pickle_default_value=True, precedence=None, readonly=False, softbounds=None, time_dependent=False, time_fn=<Time Time00001> ) - Width of the colorbar as a fraction of the main plot
-
param Boolean
symmetric
( allow_None=False, bounds=(0, 1), constant=False, default=False, instantiate=False, pickle_default_value=True, precedence=None, readonly=False ) - Whether to make the colormap symmetric around zero.
-
param ClassSelector
color_index
( allow_None=True, constant=False, default=None, instantiate=True, is_instance=True, pickle_default_value=True, precedence=None, readonly=False ) - Index of the dimension from which the color will the drawn
-
param ClassSelector
size_index
( allow_None=True, constant=False, default=None, instantiate=True, is_instance=True, pickle_default_value=True, precedence=None, readonly=False ) - Index of the dimension from which the sizes will the drawn.
-
param Boolean
arrow_heads
( allow_None=False, bounds=(0, 1), constant=False, default=True, instantiate=False, pickle_default_value=True, precedence=None, readonly=False ) - Whether or not to draw arrow heads. If arrowheads are enabled, they may be customized with the ‘headlength’ and ‘headaxislength’ style options.
-
param Boolean
normalize_lengths
( allow_None=False, bounds=(0, 1), constant=False, default=True, instantiate=False, pickle_default_value=True, precedence=None, readonly=False ) - Whether to normalize vector magnitudes automatically. If False, it will be assumed that the lengths have already been correctly normalized.
-
param Boolean
rescale_lengths
( allow_None=False, bounds=(0, 1), constant=False, default=True, instantiate=False, pickle_default_value=True, precedence=None, readonly=False ) - Whether the lengths will be rescaled to take into account the smallest non-zero distance between two vectors.
-
anim
( start=0 , stop=None , fps=30 ) ¶ -
Method to return a matplotlib animation. The start and stop frames may be specified as well as the fps.
-
compute_ranges
( obj , key , ranges ) ¶ -
Given an object, a specific key and the normalization options this method will find the specified normalization options on the appropriate OptionTree, group the elements according to the selected normalization option (i.e. either per frame or over the whole animation) and finally compute the dimension ranges in each group. The new set of ranges is returned.
-
debug
( msg , *args , **kw ) ¶ -
Print msg merged with args as a debugging statement.
See Python’s logging module for details of message formatting.
-
defaults
( ) ¶ -
Return {parameter_name:parameter.default} for all non-constant Parameters.
Note that a Parameter for which instantiate==True has its default instantiated.
-
force_new_dynamic_value
= functools.partial(<function Parameterized.force_new_dynamic_value>, <class 'holoviews.plotting.mpl.chart.VectorFieldPlot'>) ¶
-
get_extents
( view , ranges ) ¶ -
Gets the extents for the axes from the current View. The globally computed ranges can optionally override the extents.
-
get_param_values
( onlychanged=False ) ¶ -
Return a list of name,value pairs for all Parameters of this object.
If onlychanged is True, will only return values that are not equal to the default value.
-
get_value_generator
= functools.partial(<function Parameterized.get_value_generator>, <class 'holoviews.plotting.mpl.chart.VectorFieldPlot'>) ¶
-
get_zorder
( overlay , key , el ) ¶ -
Computes the z-order of element in the NdOverlay taking into account possible batching of elements.
-
init_artists
( ax , plot_args , plot_kwargs ) ¶ -
Initializes the artist based on the plot method declared on the plot.
-
init_comm
( ) ¶ -
Initializes comm and attaches streams.
-
inspect_value
= functools.partial(<function Parameterized.inspect_value>, <class 'holoviews.plotting.mpl.chart.VectorFieldPlot'>) ¶
-
matches
( spec ) ¶ -
Matches a specification against the current Plot.
-
message
( msg , *args , **kw ) ¶ -
Print msg merged with args as a message.
See Python’s logging module for details of message formatting.
-
params
( parameter_name=None ) ¶ -
Return the Parameters of this class as the dictionary {name: parameter_object}
Includes Parameters from this class and its superclasses.
-
pprint
( imports=None , prefix=' ' , unknown_value='<?>' , qualify=False , separator='' ) ¶ -
(Experimental) Pretty printed representation that may be evaluated with eval. See pprint() function for more details.
-
print_param_defaults
( ) ¶ -
Print the default values of all cls’s Parameters.
-
print_param_values
( ) ¶ -
Print the values of all this object’s Parameters.
-
push
( ) ¶ -
Pushes updated plot data via the Comm.
-
refresh
( **kwargs ) ¶ -
Refreshes the plot by rerendering it and then pushing the updated data if the plot has an associated Comm.
-
script_repr
( imports=[] , prefix=' ' ) ¶ -
Variant of __repr__ designed for generating a runnable script.
-
set_default
( param_name , value ) ¶ -
Set the default value of param_name.
Equivalent to setting param_name on the class.
-
set_dynamic_time_fn
= functools.partial(<function Parameterized.set_dynamic_time_fn>, <class 'holoviews.plotting.mpl.chart.VectorFieldPlot'>) ¶
-
set_param
= functools.partial(<function Parameterized.set_param>, <class 'holoviews.plotting.mpl.chart.VectorFieldPlot'>) ¶
-
state_pop
( ) ¶ -
Restore the most recently saved state.
See state_push() for more details.
-
state_push
( ) ¶ -
Save this instance’s state.
For Parameterized instances, this includes the state of dynamically generated values.
Subclasses that maintain short-term state should additionally save and restore that state using state_push() and state_pop().
Generally, this method is used by operations that need to test something without permanently altering the objects’ state.
-
teardown_handles
( ) ¶ -
If no custom update_handles method is supplied this method is called to tear down any previous handles before replacing them.
-
traverse
( fn=None , specs=None , full_breadth=True ) ¶ -
Traverses any nested DimensionedPlot returning a list of all plots that match the specs. The specs should be supplied as a list of either Plot types or callables, which should return a boolean given the plot class.
-
verbose
( msg , *args , **kw ) ¶ -
Print msg merged with args as a verbose message.
See Python’s logging module for details of message formatting.
-
warning
( msg , *args , **kw ) ¶ -
Print msg merged with args as a warning, unless module variable warnings_as_exceptions is True, then raise an Exception containing the arguments.
See Python’s logging module for details of message formatting.
-
param Parameter
chart3d
Module
¶
-
class
holoviews.plotting.mpl.chart3d.
Plot3D
( *args , **kwargs ) [source] ¶ -
Bases:
holoviews.plotting.mpl.element.ColorbarPlot
Plot3D provides a common baseclass for mplot3d based plots.
-
param Parameter
fontsize
( allow_None=True, constant=False, default=None, instantiate=False, pickle_default_value=True, precedence=None, readonly=False ) - Specifies various fontsizes of the displayed text. Finer control is available by supplying a dictionary where any unmentioned keys reverts to the default sizes, e.g: {‘ticks’:20, ‘title’:15, ‘ylabel’:5, ‘xlabel’:5, ‘legend’:8, ‘legend_title’:13} You can set the fontsize of both ‘ylabel’ and ‘xlabel’ together using the ‘labels’ key.
-
param Boolean
show_title
( allow_None=False, bounds=(0, 1), constant=False, default=True, instantiate=False, pickle_default_value=True, precedence=None, readonly=False ) - Whether to display the plot title.
-
param String
title_format
( allow_None=False, basestring=<class ‘str’>, constant=False, default={label} {group} {dimensions}, instantiate=False, pickle_default_value=True, precedence=None, readonly=False ) - The formatting string for the title of this plot, allows defining a label group separator and dimension labels.
-
param Boolean
normalize
( allow_None=False, bounds=(0, 1), constant=False, default=True, instantiate=False, pickle_default_value=True, precedence=None, readonly=False ) - Whether to compute ranges across all Elements at this level of plotting. Allows selecting normalization at different levels for nested data containers.
-
param ObjectSelector
projection
( allow_None=True, check_on_set=True, compute_default_fn=None, constant=False, default=3d, instantiate=False, objects=[‘3d’], pickle_default_value=True, precedence=None, readonly=False ) - The projection of the matplotlib axis.
-
param Number
fig_alpha
( allow_None=False, bounds=(0, 1), constant=False, default=1.0, inclusive_bounds=(True, True), instantiate=False, pickle_default_value=True, precedence=None, readonly=False, softbounds=None, time_dependent=False, time_fn=<Time Time00001> ) - Alpha of the overall figure background.
-
param NumericTuple
fig_bounds
( allow_None=False, constant=False, default=(0.15, 0.15, 0.85, 0.85), instantiate=False, length=4, pickle_default_value=True, precedence=None, readonly=False ) - The bounds of the overall figure as a 4-tuple of the form (left, bottom, right, top), defining the size of the border around the subplots.
-
param Parameter
fig_inches
( allow_None=False, constant=False, default=4, instantiate=False, pickle_default_value=True, precedence=None, readonly=False ) - The overall matplotlib figure size in inches. May be set as an integer in which case it will be used to autocompute a size. Alternatively may be set with an explicit tuple or list, in which case it will be applied directly after being scaled by fig_size. If either the width or height is set to None, it will be computed automatically.
-
param Boolean
fig_latex
( allow_None=False, bounds=(0, 1), constant=False, default=False, instantiate=False, pickle_default_value=True, precedence=None, readonly=False ) - Whether to use LaTeX text in the overall figure.
-
param Dict
fig_rcparams
( allow_None=False, constant=False, default={}, instantiate=True, is_instance=True, pickle_default_value=True, precedence=None, readonly=False ) - matplotlib rc parameters to apply to the overall figure.
-
param Number
fig_size
( allow_None=False, bounds=(1, None), constant=False, default=100.0, inclusive_bounds=(True, True), instantiate=False, pickle_default_value=True, precedence=None, readonly=False, softbounds=None, time_dependent=False, time_fn=<Time Time00001> ) - Size relative to the supplied overall fig_inches in percent.
-
param HookList
initial_hooks
( allow_None=False, bounds=(0, None), constant=False, default=[], instantiate=True, pickle_default_value=True, precedence=None, readonly=False ) - Optional list of hooks called before plotting the data onto the axis. The hook is passed the plot object and the displayed object, other plotting handles can be accessed via plot.handles.
-
param HookList
final_hooks
( allow_None=False, bounds=(0, None), constant=False, default=[], instantiate=True, pickle_default_value=True, precedence=None, readonly=False ) - Optional list of hooks called when finalizing an axis. The hook is passed the plot object and the displayed object, other plotting handles can be accessed via plot.handles.
-
param HookList
finalize_hooks
( allow_None=False, bounds=(0, None), constant=False, default=[], instantiate=True, pickle_default_value=True, precedence=None, readonly=False ) - Optional list of hooks called when finalizing an axis. The hook is passed the plot object and the displayed object, other plotting handles can be accessed via plot.handles.
-
param String
sublabel_format
( allow_None=True, basestring=<class ‘str’>, constant=False, default=None, instantiate=False, pickle_default_value=True, precedence=None, readonly=False ) - Allows labeling the subaxes in each plot with various formatters including {Alpha}, {alpha}, {numeric} and {roman}.
-
param NumericTuple
sublabel_position
( allow_None=False, constant=False, default=(-0.35, 0.85), instantiate=False, length=2, pickle_default_value=True, precedence=None, readonly=False ) - Position relative to the plot for placing the optional subfigure label.
-
param Number
sublabel_size
( allow_None=False, bounds=None, constant=False, default=18, inclusive_bounds=(True, True), instantiate=False, pickle_default_value=True, precedence=None, readonly=False, softbounds=None, time_dependent=False, time_fn=<Time Time00001> ) - Size of optional subfigure label.
-
param Boolean
show_frame
( allow_None=False, bounds=(0, 1), constant=False, default=False, instantiate=False, pickle_default_value=True, precedence=None, readonly=False ) - Whether or not to show a complete frame around the plot.
-
param Boolean
apply_ranges
( allow_None=False, bounds=(0, 1), constant=False, default=True, instantiate=False, pickle_default_value=True, precedence=None, readonly=False ) - Whether to compute the plot bounds from the data itself.
-
param Boolean
apply_extents
( allow_None=False, bounds=(0, 1), constant=False, default=True, instantiate=False, pickle_default_value=True, precedence=None, readonly=False ) - Whether to apply extent overrides on the Elements
-
param Boolean
apply_ticks
( allow_None=False, bounds=(0, 1), constant=False, default=True, instantiate=False, pickle_default_value=True, precedence=None, readonly=False ) - Whether to apply custom ticks.
-
param Parameter
aspect
( allow_None=False, constant=False, default=square, instantiate=False, pickle_default_value=True, precedence=None, readonly=False ) - The aspect ratio mode of the plot. By default, a plot may select its own appropriate aspect ratio but sometimes it may be necessary to force a square aspect ratio (e.g. to display the plot as an element of a grid). The modes ‘auto’ and ‘equal’ correspond to the axis modes of the same name in matplotlib, a numeric value may also be passed.
-
param String
bgcolor
( allow_None=False, basestring=<class ‘str’>, constant=False, default=white, instantiate=True, pickle_default_value=True, precedence=None, readonly=False ) - Background color of the axis.
-
param ObjectSelector
invert_axes
( allow_None=None, check_on_set=False, compute_default_fn=None, constant=False, default=False, instantiate=False, objects=[], pickle_default_value=True, precedence=None, readonly=False ) - Inverts the axes of the plot. Note that this parameter may not always be respected by all plots but should be respected by adjoined plots when appropriate.
-
param Boolean
invert_xaxis
( allow_None=False, bounds=(0, 1), constant=False, default=False, instantiate=False, pickle_default_value=True, precedence=None, readonly=False ) - Whether to invert the plot x-axis.
-
param Boolean
invert_yaxis
( allow_None=False, bounds=(0, 1), constant=False, default=False, instantiate=False, pickle_default_value=True, precedence=None, readonly=False ) - Whether to invert the plot y-axis.
-
param Boolean
invert_zaxis
( allow_None=False, bounds=(0, 1), constant=False, default=False, instantiate=False, pickle_default_value=True, precedence=None, readonly=False ) - Whether to invert the plot z-axis.
-
param List
labelled
( allow_None=False, bounds=(0, None), constant=False, default=[‘x’, ‘y’, ‘z’], instantiate=True, pickle_default_value=True, precedence=None, readonly=False ) - Whether to plot the ‘x’, ‘y’ and ‘z’ labels.
-
param Boolean
logx
( allow_None=False, bounds=(0, 1), constant=False, default=False, instantiate=False, pickle_default_value=True, precedence=None, readonly=False ) - Whether to apply log scaling to the x-axis of the Chart.
-
param Boolean
logy
( allow_None=False, bounds=(0, 1), constant=False, default=False, instantiate=False, pickle_default_value=True, precedence=None, readonly=False ) - Whether to apply log scaling to the y-axis of the Chart.
-
param Boolean
logz
( allow_None=False, bounds=(0, 1), constant=False, default=False, instantiate=False, pickle_default_value=True, precedence=None, readonly=False ) - Whether to apply log scaling to the y-axis of the Chart.
-
param Boolean
show_legend
( allow_None=False, bounds=(0, 1), constant=False, default=False, instantiate=False, pickle_default_value=True, precedence=None, readonly=False ) - Whether to show legend for the plot.
-
param Boolean
show_grid
( allow_None=False, bounds=(0, 1), constant=False, default=True, instantiate=False, pickle_default_value=True, precedence=None, readonly=False ) - Whether to draw a grid in the figure.
-
param ObjectSelector
xaxis
( allow_None=None, check_on_set=True, compute_default_fn=None, constant=False, default=fixed, instantiate=False, objects=[‘fixed’, None], pickle_default_value=True, precedence=None, readonly=False ) - Whether and where to display the xaxis.
-
param ObjectSelector
yaxis
( allow_None=None, check_on_set=True, compute_default_fn=None, constant=False, default=fixed, instantiate=False, objects=[‘fixed’, None], pickle_default_value=True, precedence=None, readonly=False ) - Whether and where to display the yaxis.
-
param ObjectSelector
zaxis
( allow_None=False, check_on_set=True, compute_default_fn=None, constant=False, default=fixed, instantiate=False, objects=[‘fixed’, None], pickle_default_value=True, precedence=None, readonly=False ) - Whether and where to display the yaxis.
-
param Parameter
xticks
( allow_None=True, constant=False, default=None, instantiate=False, pickle_default_value=True, precedence=None, readonly=False ) - Ticks along x-axis specified as an integer, explicit list of tick locations, list of tuples containing the locations and labels or a matplotlib tick locator object. If set to None default matplotlib ticking behavior is applied.
-
param Integer
xrotation
( allow_None=False, bounds=(0, 360), constant=False, default=0, inclusive_bounds=(True, True), instantiate=False, pickle_default_value=True, precedence=None, readonly=False, softbounds=None, time_dependent=False, time_fn=<Time Time00001> ) - Rotation angle of the xticks.
-
param Parameter
yticks
( allow_None=True, constant=False, default=None, instantiate=False, pickle_default_value=True, precedence=None, readonly=False ) - Ticks along y-axis specified as an integer, explicit list of tick locations, list of tuples containing the locations and labels or a matplotlib tick locator object. If set to None default matplotlib ticking behavior is applied.
-
param Integer
yrotation
( allow_None=False, bounds=(0, 360), constant=False, default=0, inclusive_bounds=(True, True), instantiate=False, pickle_default_value=True, precedence=None, readonly=False, softbounds=None, time_dependent=False, time_fn=<Time Time00001> ) - Rotation angle of the yticks.
-
param Integer
zrotation
( allow_None=False, bounds=(0, 360), constant=False, default=0, inclusive_bounds=(True, True), instantiate=False, pickle_default_value=True, precedence=None, readonly=False, softbounds=None, time_dependent=False, time_fn=<Time Time00001> ) - Rotation angle of the zticks.
-
param Parameter
zticks
( allow_None=True, constant=False, default=None, instantiate=False, pickle_default_value=True, precedence=None, readonly=False ) - Ticks along z-axis specified as an integer, explicit list of tick locations, list of tuples containing the locations and labels or a matplotlib tick locator object. If set to None default matplotlib ticking behavior is applied.
-
param Boolean
colorbar
( allow_None=False, bounds=(0, 1), constant=False, default=False, instantiate=False, pickle_default_value=True, precedence=None, readonly=False ) - Whether to draw a colorbar.
-
param Dict
clipping_colors
( allow_None=False, constant=False, default={}, instantiate=True, is_instance=True, pickle_default_value=True, precedence=None, readonly=False ) - Dictionary to specify colors for clipped values, allows setting color for NaN values and for values above and below the min and max value. The min, max or NaN color may specify an RGB(A) color as a color hex string of the form #FFFFFF or #FFFFFFFF or a length 3 or length 4 tuple specifying values in the range 0-1 or a named HTML color.
-
param Number
cbar_padding
( allow_None=False, bounds=None, constant=False, default=0.01, inclusive_bounds=(True, True), instantiate=False, pickle_default_value=True, precedence=None, readonly=False, softbounds=None, time_dependent=False, time_fn=<Time Time00001> ) - Padding between colorbar and other plots.
-
param Parameter
cbar_ticks
( allow_None=True, constant=False, default=None, instantiate=False, pickle_default_value=True, precedence=None, readonly=False ) - Ticks along colorbar-axis specified as an integer, explicit list of tick locations, list of tuples containing the locations and labels or a matplotlib tick locator object. If set to None default matplotlib ticking behavior is applied.
-
param Number
cbar_width
( allow_None=False, bounds=None, constant=False, default=0.05, inclusive_bounds=(True, True), instantiate=False, pickle_default_value=True, precedence=None, readonly=False, softbounds=None, time_dependent=False, time_fn=<Time Time00001> ) - Width of the colorbar as a fraction of the main plot
-
param Boolean
symmetric
( allow_None=False, bounds=(0, 1), constant=False, default=False, instantiate=False, pickle_default_value=True, precedence=None, readonly=False ) - Whether to make the colormap symmetric around zero.
-
param Integer
azimuth
( allow_None=False, bounds=(-180, 180), constant=False, default=-60, inclusive_bounds=(True, True), instantiate=False, pickle_default_value=True, precedence=None, readonly=False, softbounds=None, time_dependent=False, time_fn=<Time Time00001> ) - Azimuth angle in the x,y plane.
-
param Integer
elevation
( allow_None=False, bounds=(0, 180), constant=False, default=30, inclusive_bounds=(True, True), instantiate=False, pickle_default_value=True, precedence=None, readonly=False, softbounds=None, time_dependent=False, time_fn=<Time Time00001> ) - Elevation angle in the z-axis.
-
param Integer
distance
( allow_None=False, bounds=(7, 15), constant=False, default=10, inclusive_bounds=(True, True), instantiate=False, pickle_default_value=True, precedence=None, readonly=False, softbounds=None, time_dependent=False, time_fn=<Time Time00001> ) - Distance from the plotted object.
-
param Boolean
disable_axes
( allow_None=False, bounds=(0, 1), constant=False, default=False, instantiate=False, pickle_default_value=True, precedence=None, readonly=False ) - Disable all axes.
-
anim
( start=0 , stop=None , fps=30 ) ¶ -
Method to return a matplotlib animation. The start and stop frames may be specified as well as the fps.
-
compute_ranges
( obj , key , ranges ) ¶ -
Given an object, a specific key and the normalization options this method will find the specified normalization options on the appropriate OptionTree, group the elements according to the selected normalization option (i.e. either per frame or over the whole animation) and finally compute the dimension ranges in each group. The new set of ranges is returned.
-
debug
( msg , *args , **kw ) ¶ -
Print msg merged with args as a debugging statement.
See Python’s logging module for details of message formatting.
-
defaults
( ) ¶ -
Return {parameter_name:parameter.default} for all non-constant Parameters.
Note that a Parameter for which instantiate==True has its default instantiated.
-
force_new_dynamic_value
= functools.partial(<function Parameterized.force_new_dynamic_value>, <class 'holoviews.plotting.mpl.chart3d.Plot3D'>) ¶
-
get_extents
( view , ranges ) ¶ -
Gets the extents for the axes from the current View. The globally computed ranges can optionally override the extents.
-
get_param_values
( onlychanged=False ) ¶ -
Return a list of name,value pairs for all Parameters of this object.
If onlychanged is True, will only return values that are not equal to the default value.
-
get_value_generator
= functools.partial(<function Parameterized.get_value_generator>, <class 'holoviews.plotting.mpl.chart3d.Plot3D'>) ¶
-
get_zorder
( overlay , key , el ) ¶ -
Computes the z-order of element in the NdOverlay taking into account possible batching of elements.
-
init_artists
( ax , plot_args , plot_kwargs ) ¶ -
Initializes the artist based on the plot method declared on the plot.
-
init_comm
( ) ¶ -
Initializes comm and attaches streams.
-
inspect_value
= functools.partial(<function Parameterized.inspect_value>, <class 'holoviews.plotting.mpl.chart3d.Plot3D'>) ¶
-
matches
( spec ) ¶ -
Matches a specification against the current Plot.
-
message
( msg , *args , **kw ) ¶ -
Print msg merged with args as a message.
See Python’s logging module for details of message formatting.
-
params
( parameter_name=None ) ¶ -
Return the Parameters of this class as the dictionary {name: parameter_object}
Includes Parameters from this class and its superclasses.
-
pprint
( imports=None , prefix=' ' , unknown_value='<?>' , qualify=False , separator='' ) ¶ -
(Experimental) Pretty printed representation that may be evaluated with eval. See pprint() function for more details.
-
print_param_defaults
( ) ¶ -
Print the default values of all cls’s Parameters.
-
print_param_values
( ) ¶ -
Print the values of all this object’s Parameters.
-
push
( ) ¶ -
Pushes updated plot data via the Comm.
-
refresh
( **kwargs ) ¶ -
Refreshes the plot by rerendering it and then pushing the updated data if the plot has an associated Comm.
-
script_repr
( imports=[] , prefix=' ' ) ¶ -
Variant of __repr__ designed for generating a runnable script.
-
set_default
( param_name , value ) ¶ -
Set the default value of param_name.
Equivalent to setting param_name on the class.
-
set_dynamic_time_fn
= functools.partial(<function Parameterized.set_dynamic_time_fn>, <class 'holoviews.plotting.mpl.chart3d.Plot3D'>) ¶
-
set_param
= functools.partial(<function Parameterized.set_param>, <class 'holoviews.plotting.mpl.chart3d.Plot3D'>) ¶
-
state_pop
( ) ¶ -
Restore the most recently saved state.
See state_push() for more details.
-
state_push
( ) ¶ -
Save this instance’s state.
For Parameterized instances, this includes the state of dynamically generated values.
Subclasses that maintain short-term state should additionally save and restore that state using state_push() and state_pop().
Generally, this method is used by operations that need to test something without permanently altering the objects’ state.
-
teardown_handles
( ) ¶ -
If no custom update_handles method is supplied this method is called to tear down any previous handles before replacing them.
-
traverse
( fn=None , specs=None , full_breadth=True ) ¶ -
Traverses any nested DimensionedPlot returning a list of all plots that match the specs. The specs should be supplied as a list of either Plot types or callables, which should return a boolean given the plot class.
-
update_handles
( key , axis , element , ranges , style ) ¶ -
Update the elements of the plot.
-
verbose
( msg , *args , **kw ) ¶ -
Print msg merged with args as a verbose message.
See Python’s logging module for details of message formatting.
-
warning
( msg , *args , **kw ) ¶ -
Print msg merged with args as a warning, unless module variable warnings_as_exceptions is True, then raise an Exception containing the arguments.
See Python’s logging module for details of message formatting.
-
param Parameter
-
class
holoviews.plotting.mpl.chart3d.
Scatter3DPlot
( *args , **kwargs ) [source] ¶ -
Bases:
holoviews.plotting.mpl.chart3d.Plot3D
,holoviews.plotting.mpl.chart.PointPlot
Subclass of PointPlot allowing plotting of Points on a 3D axis, also allows mapping color and size onto a particular Dimension of the data.
-
param Parameter
fontsize
( allow_None=True, constant=False, default=None, instantiate=False, pickle_default_value=True, precedence=None, readonly=False ) - Specifies various fontsizes of the displayed text. Finer control is available by supplying a dictionary where any unmentioned keys reverts to the default sizes, e.g: {‘ticks’:20, ‘title’:15, ‘ylabel’:5, ‘xlabel’:5, ‘legend’:8, ‘legend_title’:13} You can set the fontsize of both ‘ylabel’ and ‘xlabel’ together using the ‘labels’ key.
-
param Boolean
show_title
( allow_None=False, bounds=(0, 1), constant=False, default=True, instantiate=False, pickle_default_value=True, precedence=None, readonly=False ) - Whether to display the plot title.
-
param String
title_format
( allow_None=False, basestring=<class ‘str’>, constant=False, default={label} {group} {dimensions}, instantiate=False, pickle_default_value=True, precedence=None, readonly=False ) - The formatting string for the title of this plot, allows defining a label group separator and dimension labels.
-
param Boolean
normalize
( allow_None=False, bounds=(0, 1), constant=False, default=True, instantiate=False, pickle_default_value=True, precedence=None, readonly=False ) - Whether to compute ranges across all Elements at this level of plotting. Allows selecting normalization at different levels for nested data containers.
-
param ObjectSelector
projection
( allow_None=True, check_on_set=True, compute_default_fn=None, constant=False, default=3d, instantiate=False, objects=[‘3d’], pickle_default_value=True, precedence=None, readonly=False ) - The projection of the matplotlib axis.
-
param Number
fig_alpha
( allow_None=False, bounds=(0, 1), constant=False, default=1.0, inclusive_bounds=(True, True), instantiate=False, pickle_default_value=True, precedence=None, readonly=False, softbounds=None, time_dependent=False, time_fn=<Time Time00001> ) - Alpha of the overall figure background.
-
param NumericTuple
fig_bounds
( allow_None=False, constant=False, default=(0.15, 0.15, 0.85, 0.85), instantiate=False, length=4, pickle_default_value=True, precedence=None, readonly=False ) - The bounds of the overall figure as a 4-tuple of the form (left, bottom, right, top), defining the size of the border around the subplots.
-
param Parameter
fig_inches
( allow_None=False, constant=False, default=4, instantiate=False, pickle_default_value=True, precedence=None, readonly=False ) - The overall matplotlib figure size in inches. May be set as an integer in which case it will be used to autocompute a size. Alternatively may be set with an explicit tuple or list, in which case it will be applied directly after being scaled by fig_size. If either the width or height is set to None, it will be computed automatically.
-
param Boolean
fig_latex
( allow_None=False, bounds=(0, 1), constant=False, default=False, instantiate=False, pickle_default_value=True, precedence=None, readonly=False ) - Whether to use LaTeX text in the overall figure.
-
param Dict
fig_rcparams
( allow_None=False, constant=False, default={}, instantiate=True, is_instance=True, pickle_default_value=True, precedence=None, readonly=False ) - matplotlib rc parameters to apply to the overall figure.
-
param Number
fig_size
( allow_None=False, bounds=(1, None), constant=False, default=100.0, inclusive_bounds=(True, True), instantiate=False, pickle_default_value=True, precedence=None, readonly=False, softbounds=None, time_dependent=False, time_fn=<Time Time00001> ) - Size relative to the supplied overall fig_inches in percent.
-
param HookList
initial_hooks
( allow_None=False, bounds=(0, None), constant=False, default=[], instantiate=True, pickle_default_value=True, precedence=None, readonly=False ) - Optional list of hooks called before plotting the data onto the axis. The hook is passed the plot object and the displayed object, other plotting handles can be accessed via plot.handles.
-
param HookList
final_hooks
( allow_None=False, bounds=(0, None), constant=False, default=[], instantiate=True, pickle_default_value=True, precedence=None, readonly=False ) - Optional list of hooks called when finalizing an axis. The hook is passed the plot object and the displayed object, other plotting handles can be accessed via plot.handles.
-
param HookList
finalize_hooks
( allow_None=False, bounds=(0, None), constant=False, default=[], instantiate=True, pickle_default_value=True, precedence=None, readonly=False ) - Optional list of hooks called when finalizing an axis. The hook is passed the plot object and the displayed object, other plotting handles can be accessed via plot.handles.
-
param String
sublabel_format
( allow_None=True, basestring=<class ‘str’>, constant=False, default=None, instantiate=False, pickle_default_value=True, precedence=None, readonly=False ) - Allows labeling the subaxes in each plot with various formatters including {Alpha}, {alpha}, {numeric} and {roman}.
-
param NumericTuple
sublabel_position
( allow_None=False, constant=False, default=(-0.35, 0.85), instantiate=False, length=2, pickle_default_value=True, precedence=None, readonly=False ) - Position relative to the plot for placing the optional subfigure label.
-
param Number
sublabel_size
( allow_None=False, bounds=None, constant=False, default=18, inclusive_bounds=(True, True), instantiate=False, pickle_default_value=True, precedence=None, readonly=False, softbounds=None, time_dependent=False, time_fn=<Time Time00001> ) - Size of optional subfigure label.
-
param Boolean
show_frame
( allow_None=False, bounds=(0, 1), constant=False, default=False, instantiate=False, pickle_default_value=True, precedence=None, readonly=False ) - Whether or not to show a complete frame around the plot.
-
param Boolean
apply_ranges
( allow_None=False, bounds=(0, 1), constant=False, default=True, instantiate=False, pickle_default_value=True, precedence=None, readonly=False ) - Whether to compute the plot bounds from the data itself.
-
param Boolean
apply_extents
( allow_None=False, bounds=(0, 1), constant=False, default=True, instantiate=False, pickle_default_value=True, precedence=None, readonly=False ) - Whether to apply extent overrides on the Elements
-
param Boolean
apply_ticks
( allow_None=False, bounds=(0, 1), constant=False, default=True, instantiate=False, pickle_default_value=True, precedence=None, readonly=False ) - Whether to apply custom ticks.
-
param Parameter
aspect
( allow_None=False, constant=False, default=square, instantiate=False, pickle_default_value=True, precedence=None, readonly=False ) - The aspect ratio mode of the plot. By default, a plot may select its own appropriate aspect ratio but sometimes it may be necessary to force a square aspect ratio (e.g. to display the plot as an element of a grid). The modes ‘auto’ and ‘equal’ correspond to the axis modes of the same name in matplotlib, a numeric value may also be passed.
-
param String
bgcolor
( allow_None=False, basestring=<class ‘str’>, constant=False, default=white, instantiate=True, pickle_default_value=True, precedence=None, readonly=False ) - Background color of the axis.
-
param ObjectSelector
invert_axes
( allow_None=None, check_on_set=False, compute_default_fn=None, constant=False, default=False, instantiate=False, objects=[], pickle_default_value=True, precedence=None, readonly=False ) - Inverts the axes of the plot. Note that this parameter may not always be respected by all plots but should be respected by adjoined plots when appropriate.
-
param Boolean
invert_xaxis
( allow_None=False, bounds=(0, 1), constant=False, default=False, instantiate=False, pickle_default_value=True, precedence=None, readonly=False ) - Whether to invert the plot x-axis.
-
param Boolean
invert_yaxis
( allow_None=False, bounds=(0, 1), constant=False, default=False, instantiate=False, pickle_default_value=True, precedence=None, readonly=False ) - Whether to invert the plot y-axis.
-
param Boolean
invert_zaxis
( allow_None=False, bounds=(0, 1), constant=False, default=False, instantiate=False, pickle_default_value=True, precedence=None, readonly=False ) - Whether to invert the plot z-axis.
-
param List
labelled
( allow_None=False, bounds=(0, None), constant=False, default=[‘x’, ‘y’, ‘z’], instantiate=True, pickle_default_value=True, precedence=None, readonly=False ) - Whether to plot the ‘x’, ‘y’ and ‘z’ labels.
-
param Boolean
logx
( allow_None=False, bounds=(0, 1), constant=False, default=False, instantiate=False, pickle_default_value=True, precedence=None, readonly=False ) - Whether to apply log scaling to the x-axis of the Chart.
-
param Boolean
logy
( allow_None=False, bounds=(0, 1), constant=False, default=False, instantiate=False, pickle_default_value=True, precedence=None, readonly=False ) - Whether to apply log scaling to the y-axis of the Chart.
-
param Boolean
logz
( allow_None=False, bounds=(0, 1), constant=False, default=False, instantiate=False, pickle_default_value=True, precedence=None, readonly=False ) - Whether to apply log scaling to the y-axis of the Chart.
-
param Boolean
show_legend
( allow_None=False, bounds=(0, 1), constant=False, default=True, instantiate=False, pickle_default_value=True, precedence=None, readonly=False ) - Whether to show legend for the plot.
-
param Boolean
show_grid
( allow_None=False, bounds=(0, 1), constant=False, default=True, instantiate=False, pickle_default_value=True, precedence=None, readonly=False ) - Whether to draw a grid in the figure.
-
param ObjectSelector
xaxis
( allow_None=None, check_on_set=True, compute_default_fn=None, constant=False, default=fixed, instantiate=False, objects=[‘fixed’, None], pickle_default_value=True, precedence=None, readonly=False ) - Whether and where to display the xaxis.
-
param ObjectSelector
yaxis
( allow_None=None, check_on_set=True, compute_default_fn=None, constant=False, default=fixed, instantiate=False, objects=[‘fixed’, None], pickle_default_value=True, precedence=None, readonly=False ) - Whether and where to display the yaxis.
-
param ObjectSelector
zaxis
( allow_None=False, check_on_set=True, compute_default_fn=None, constant=False, default=fixed, instantiate=False, objects=[‘fixed’, None], pickle_default_value=True, precedence=None, readonly=False ) - Whether and where to display the yaxis.
-
param Parameter
xticks
( allow_None=True, constant=False, default=None, instantiate=False, pickle_default_value=True, precedence=None, readonly=False ) - Ticks along x-axis specified as an integer, explicit list of tick locations, list of tuples containing the locations and labels or a matplotlib tick locator object. If set to None default matplotlib ticking behavior is applied.
-
param Integer
xrotation
( allow_None=False, bounds=(0, 360), constant=False, default=0, inclusive_bounds=(True, True), instantiate=False, pickle_default_value=True, precedence=None, readonly=False, softbounds=None, time_dependent=False, time_fn=<Time Time00001> ) - Rotation angle of the xticks.
-
param Parameter
yticks
( allow_None=True, constant=False, default=None, instantiate=False, pickle_default_value=True, precedence=None, readonly=False ) - Ticks along y-axis specified as an integer, explicit list of tick locations, list of tuples containing the locations and labels or a matplotlib tick locator object. If set to None default matplotlib ticking behavior is applied.
-
param Integer
yrotation
( allow_None=False, bounds=(0, 360), constant=False, default=0, inclusive_bounds=(True, True), instantiate=False, pickle_default_value=True, precedence=None, readonly=False, softbounds=None, time_dependent=False, time_fn=<Time Time00001> ) - Rotation angle of the yticks.
-
param Integer
zrotation
( allow_None=False, bounds=(0, 360), constant=False, default=0, inclusive_bounds=(True, True), instantiate=False, pickle_default_value=True, precedence=None, readonly=False, softbounds=None, time_dependent=False, time_fn=<Time Time00001> ) - Rotation angle of the zticks.
-
param Parameter
zticks
( allow_None=True, constant=False, default=None, instantiate=False, pickle_default_value=True, precedence=None, readonly=False ) - Ticks along z-axis specified as an integer, explicit list of tick locations, list of tuples containing the locations and labels or a matplotlib tick locator object. If set to None default matplotlib ticking behavior is applied.
-
param Boolean
colorbar
( allow_None=False, bounds=(0, 1), constant=False, default=False, instantiate=False, pickle_default_value=True, precedence=None, readonly=False ) - Whether to draw a colorbar.
-
param Dict
clipping_colors
( allow_None=False, constant=False, default={}, instantiate=True, is_instance=True, pickle_default_value=True, precedence=None, readonly=False ) - Dictionary to specify colors for clipped values, allows setting color for NaN values and for values above and below the min and max value. The min, max or NaN color may specify an RGB(A) color as a color hex string of the form #FFFFFF or #FFFFFFFF or a length 3 or length 4 tuple specifying values in the range 0-1 or a named HTML color.
-
param Number
cbar_padding
( allow_None=False, bounds=None, constant=False, default=0.01, inclusive_bounds=(True, True), instantiate=False, pickle_default_value=True, precedence=None, readonly=False, softbounds=None, time_dependent=False, time_fn=<Time Time00001> ) - Padding between colorbar and other plots.
-
param Parameter
cbar_ticks
( allow_None=True, constant=False, default=None, instantiate=False, pickle_default_value=True, precedence=None, readonly=False ) - Ticks along colorbar-axis specified as an integer, explicit list of tick locations, list of tuples containing the locations and labels or a matplotlib tick locator object. If set to None default matplotlib ticking behavior is applied.
-
param Number
cbar_width
( allow_None=False, bounds=None, constant=False, default=0.05, inclusive_bounds=(True, True), instantiate=False, pickle_default_value=True, precedence=None, readonly=False, softbounds=None, time_dependent=False, time_fn=<Time Time00001> ) - Width of the colorbar as a fraction of the main plot
-
param Boolean
symmetric
( allow_None=False, bounds=(0, 1), constant=False, default=False, instantiate=False, pickle_default_value=True, precedence=None, readonly=False ) - Whether to make the colormap symmetric around zero.
-
param ClassSelector
color_index
( allow_None=True, constant=False, default=None, instantiate=True, is_instance=True, pickle_default_value=True, precedence=None, readonly=False ) - Index of the dimension from which the color will the drawn
-
param ClassSelector
size_index
( allow_None=True, constant=False, default=None, instantiate=True, is_instance=True, pickle_default_value=True, precedence=None, readonly=False ) - Index of the dimension from which the sizes will the drawn.
-
param ObjectSelector
scaling_method
( allow_None=None, check_on_set=True, compute_default_fn=None, constant=False, default=area, instantiate=False, objects=[‘width’, ‘area’], pickle_default_value=True, precedence=None, readonly=False ) - Determines whether the scaling_factor should be applied to the width or area of each point (default: “area”).
-
param Number
scaling_factor
( allow_None=False, bounds=(0, None), constant=False, default=1, inclusive_bounds=(True, True), instantiate=False, pickle_default_value=True, precedence=None, readonly=False, softbounds=None, time_dependent=False, time_fn=<Time Time00001> ) - Scaling factor which is applied to either the width or area of each point, depending on the value of scaling_method .
-
param Callable
size_fn
( allow_None=False, constant=False, default=<ufunc ‘absolute’>, instantiate=False, pickle_default_value=True, precedence=None, readonly=False ) - Function applied to size values before applying scaling, to remove values lower than zero.
-
param Integer
azimuth
( allow_None=False, bounds=(-180, 180), constant=False, default=-60, inclusive_bounds=(True, True), instantiate=False, pickle_default_value=True, precedence=None, readonly=False, softbounds=None, time_dependent=False, time_fn=<Time Time00001> ) - Azimuth angle in the x,y plane.
-
param Integer
elevation
( allow_None=False, bounds=(0, 180), constant=False, default=30, inclusive_bounds=(True, True), instantiate=False, pickle_default_value=True, precedence=None, readonly=False, softbounds=None, time_dependent=False, time_fn=<Time Time00001> ) - Elevation angle in the z-axis.
-
param Integer
distance
( allow_None=False, bounds=(7, 15), constant=False, default=10, inclusive_bounds=(True, True), instantiate=False, pickle_default_value=True, precedence=None, readonly=False, softbounds=None, time_dependent=False, time_fn=<Time Time00001> ) - Distance from the plotted object.
-
param Boolean
disable_axes
( allow_None=False, bounds=(0, 1), constant=False, default=False, instantiate=False, pickle_default_value=True, precedence=None, readonly=False ) - Disable all axes.
-
anim
( start=0 , stop=None , fps=30 ) ¶ -
Method to return a matplotlib animation. The start and stop frames may be specified as well as the fps.
-
compute_ranges
( obj , key , ranges ) ¶ -
Given an object, a specific key and the normalization options this method will find the specified normalization options on the appropriate OptionTree, group the elements according to the selected normalization option (i.e. either per frame or over the whole animation) and finally compute the dimension ranges in each group. The new set of ranges is returned.
-
debug
( msg , *args , **kw ) ¶ -
Print msg merged with args as a debugging statement.
See Python’s logging module for details of message formatting.
-
defaults
( ) ¶ -
Return {parameter_name:parameter.default} for all non-constant Parameters.
Note that a Parameter for which instantiate==True has its default instantiated.
-
force_new_dynamic_value
= functools.partial(<function Parameterized.force_new_dynamic_value>, <class 'holoviews.plotting.mpl.chart3d.Scatter3DPlot'>) ¶
-
get_extents
( view , ranges ) ¶ -
Gets the extents for the axes from the current View. The globally computed ranges can optionally override the extents.
-
get_param_values
( onlychanged=False ) ¶ -
Return a list of name,value pairs for all Parameters of this object.
If onlychanged is True, will only return values that are not equal to the default value.
-
get_value_generator
= functools.partial(<function Parameterized.get_value_generator>, <class 'holoviews.plotting.mpl.chart3d.Scatter3DPlot'>) ¶
-
get_zorder
( overlay , key , el ) ¶ -
Computes the z-order of element in the NdOverlay taking into account possible batching of elements.
-
init_artists
( ax , plot_args , plot_kwargs ) ¶ -
Initializes the artist based on the plot method declared on the plot.
-
init_comm
( ) ¶ -
Initializes comm and attaches streams.
-
inspect_value
= functools.partial(<function Parameterized.inspect_value>, <class 'holoviews.plotting.mpl.chart3d.Scatter3DPlot'>) ¶
-
matches
( spec ) ¶ -
Matches a specification against the current Plot.
-
message
( msg , *args , **kw ) ¶ -
Print msg merged with args as a message.
See Python’s logging module for details of message formatting.
-
params
( parameter_name=None ) ¶ -
Return the Parameters of this class as the dictionary {name: parameter_object}
Includes Parameters from this class and its superclasses.
-
pprint
( imports=None , prefix=' ' , unknown_value='<?>' , qualify=False , separator='' ) ¶ -
(Experimental) Pretty printed representation that may be evaluated with eval. See pprint() function for more details.
-
print_param_defaults
( ) ¶ -
Print the default values of all cls’s Parameters.
-
print_param_values
( ) ¶ -
Print the values of all this object’s Parameters.
-
push
( ) ¶ -
Pushes updated plot data via the Comm.
-
refresh
( **kwargs ) ¶ -
Refreshes the plot by rerendering it and then pushing the updated data if the plot has an associated Comm.
-
script_repr
( imports=[] , prefix=' ' ) ¶ -
Variant of __repr__ designed for generating a runnable script.
-
set_default
( param_name , value ) ¶ -
Set the default value of param_name.
Equivalent to setting param_name on the class.
-
set_dynamic_time_fn
= functools.partial(<function Parameterized.set_dynamic_time_fn>, <class 'holoviews.plotting.mpl.chart3d.Scatter3DPlot'>) ¶
-
set_param
= functools.partial(<function Parameterized.set_param>, <class 'holoviews.plotting.mpl.chart3d.Scatter3DPlot'>) ¶
-
size_fn
= <ufunc 'absolute'> ¶
-
state_pop
( ) ¶ -
Restore the most recently saved state.
See state_push() for more details.
-
state_push
( ) ¶ -
Save this instance’s state.
For Parameterized instances, this includes the state of dynamically generated values.
Subclasses that maintain short-term state should additionally save and restore that state using state_push() and state_pop().
Generally, this method is used by operations that need to test something without permanently altering the objects’ state.
-
teardown_handles
( ) ¶ -
If no custom update_handles method is supplied this method is called to tear down any previous handles before replacing them.
-
traverse
( fn=None , specs=None , full_breadth=True ) ¶ -
Traverses any nested DimensionedPlot returning a list of all plots that match the specs. The specs should be supplied as a list of either Plot types or callables, which should return a boolean given the plot class.
-
verbose
( msg , *args , **kw ) ¶ -
Print msg merged with args as a verbose message.
See Python’s logging module for details of message formatting.
-
warning
( msg , *args , **kw ) ¶ -
Print msg merged with args as a warning, unless module variable warnings_as_exceptions is True, then raise an Exception containing the arguments.
See Python’s logging module for details of message formatting.
-
param Parameter
-
class
holoviews.plotting.mpl.chart3d.
SurfacePlot
( *args , **kwargs ) [source] ¶ -
Bases:
holoviews.plotting.mpl.chart3d.Plot3D
Plots surfaces wireframes and contours in 3D space. Provides options to switch the display type via the plot_type parameter has support for a number of styling options including strides and colors.
-
param Parameter
fontsize
( allow_None=True, constant=False, default=None, instantiate=False, pickle_default_value=True, precedence=None, readonly=False ) - Specifies various fontsizes of the displayed text. Finer control is available by supplying a dictionary where any unmentioned keys reverts to the default sizes, e.g: {‘ticks’:20, ‘title’:15, ‘ylabel’:5, ‘xlabel’:5, ‘legend’:8, ‘legend_title’:13} You can set the fontsize of both ‘ylabel’ and ‘xlabel’ together using the ‘labels’ key.
-
param Boolean
show_title
( allow_None=False, bounds=(0, 1), constant=False, default=True, instantiate=False, pickle_default_value=True, precedence=None, readonly=False ) - Whether to display the plot title.
-
param String
title_format
( allow_None=False, basestring=<class ‘str’>, constant=False, default={label} {group} {dimensions}, instantiate=False, pickle_default_value=True, precedence=None, readonly=False ) - The formatting string for the title of this plot, allows defining a label group separator and dimension labels.
-
param Boolean
normalize
( allow_None=False, bounds=(0, 1), constant=False, default=True, instantiate=False, pickle_default_value=True, precedence=None, readonly=False ) - Whether to compute ranges across all Elements at this level of plotting. Allows selecting normalization at different levels for nested data containers.
-
param ObjectSelector
projection
( allow_None=True, check_on_set=True, compute_default_fn=None, constant=False, default=3d, instantiate=False, objects=[‘3d’], pickle_default_value=True, precedence=None, readonly=False ) - The projection of the matplotlib axis.
-
param Number
fig_alpha
( allow_None=False, bounds=(0, 1), constant=False, default=1.0, inclusive_bounds=(True, True), instantiate=False, pickle_default_value=True, precedence=None, readonly=False, softbounds=None, time_dependent=False, time_fn=<Time Time00001> ) - Alpha of the overall figure background.
-
param NumericTuple
fig_bounds
( allow_None=False, constant=False, default=(0.15, 0.15, 0.85, 0.85), instantiate=False, length=4, pickle_default_value=True, precedence=None, readonly=False ) - The bounds of the overall figure as a 4-tuple of the form (left, bottom, right, top), defining the size of the border around the subplots.
-
param Parameter
fig_inches
( allow_None=False, constant=False, default=4, instantiate=False, pickle_default_value=True, precedence=None, readonly=False ) - The overall matplotlib figure size in inches. May be set as an integer in which case it will be used to autocompute a size. Alternatively may be set with an explicit tuple or list, in which case it will be applied directly after being scaled by fig_size. If either the width or height is set to None, it will be computed automatically.
-
param Boolean
fig_latex
( allow_None=False, bounds=(0, 1), constant=False, default=False, instantiate=False, pickle_default_value=True, precedence=None, readonly=False ) - Whether to use LaTeX text in the overall figure.
-
param Dict
fig_rcparams
( allow_None=False, constant=False, default={}, instantiate=True, is_instance=True, pickle_default_value=True, precedence=None, readonly=False ) - matplotlib rc parameters to apply to the overall figure.
-
param Number
fig_size
( allow_None=False, bounds=(1, None), constant=False, default=100.0, inclusive_bounds=(True, True), instantiate=False, pickle_default_value=True, precedence=None, readonly=False, softbounds=None, time_dependent=False, time_fn=<Time Time00001> ) - Size relative to the supplied overall fig_inches in percent.
-
param HookList
initial_hooks
( allow_None=False, bounds=(0, None), constant=False, default=[], instantiate=True, pickle_default_value=True, precedence=None, readonly=False ) - Optional list of hooks called before plotting the data onto the axis. The hook is passed the plot object and the displayed object, other plotting handles can be accessed via plot.handles.
-
param HookList
final_hooks
( allow_None=False, bounds=(0, None), constant=False, default=[], instantiate=True, pickle_default_value=True, precedence=None, readonly=False ) - Optional list of hooks called when finalizing an axis. The hook is passed the plot object and the displayed object, other plotting handles can be accessed via plot.handles.
-
param HookList
finalize_hooks
( allow_None=False, bounds=(0, None), constant=False, default=[], instantiate=True, pickle_default_value=True, precedence=None, readonly=False ) - Optional list of hooks called when finalizing an axis. The hook is passed the plot object and the displayed object, other plotting handles can be accessed via plot.handles.
-
param String
sublabel_format
( allow_None=True, basestring=<class ‘str’>, constant=False, default=None, instantiate=False, pickle_default_value=True, precedence=None, readonly=False ) - Allows labeling the subaxes in each plot with various formatters including {Alpha}, {alpha}, {numeric} and {roman}.
-
param NumericTuple
sublabel_position
( allow_None=False, constant=False, default=(-0.35, 0.85), instantiate=False, length=2, pickle_default_value=True, precedence=None, readonly=False ) - Position relative to the plot for placing the optional subfigure label.
-
param Number
sublabel_size
( allow_None=False, bounds=None, constant=False, default=18, inclusive_bounds=(True, True), instantiate=False, pickle_default_value=True, precedence=None, readonly=False, softbounds=None, time_dependent=False, time_fn=<Time Time00001> ) - Size of optional subfigure label.
-
param Boolean
show_frame
( allow_None=False, bounds=(0, 1), constant=False, default=False, instantiate=False, pickle_default_value=True, precedence=None, readonly=False ) - Whether or not to show a complete frame around the plot.
-
param Boolean
apply_ranges
( allow_None=False, bounds=(0, 1), constant=False, default=True, instantiate=False, pickle_default_value=True, precedence=None, readonly=False ) - Whether to compute the plot bounds from the data itself.
-
param Boolean
apply_extents
( allow_None=False, bounds=(0, 1), constant=False, default=True, instantiate=False, pickle_default_value=True, precedence=None, readonly=False ) - Whether to apply extent overrides on the Elements
-
param Boolean
apply_ticks
( allow_None=False, bounds=(0, 1), constant=False, default=True, instantiate=False, pickle_default_value=True, precedence=None, readonly=False ) - Whether to apply custom ticks.
-
param Parameter
aspect
( allow_None=False, constant=False, default=square, instantiate=False, pickle_default_value=True, precedence=None, readonly=False ) - The aspect ratio mode of the plot. By default, a plot may select its own appropriate aspect ratio but sometimes it may be necessary to force a square aspect ratio (e.g. to display the plot as an element of a grid). The modes ‘auto’ and ‘equal’ correspond to the axis modes of the same name in matplotlib, a numeric value may also be passed.
-
param String
bgcolor
( allow_None=False, basestring=<class ‘str’>, constant=False, default=white, instantiate=True, pickle_default_value=True, precedence=None, readonly=False ) - Background color of the axis.
-
param ObjectSelector
invert_axes
( allow_None=None, check_on_set=False, compute_default_fn=None, constant=False, default=False, instantiate=False, objects=[], pickle_default_value=True, precedence=None, readonly=False ) - Inverts the axes of the plot. Note that this parameter may not always be respected by all plots but should be respected by adjoined plots when appropriate.
-
param Boolean
invert_xaxis
( allow_None=False, bounds=(0, 1), constant=False, default=False, instantiate=False, pickle_default_value=True, precedence=None, readonly=False ) - Whether to invert the plot x-axis.
-
param Boolean
invert_yaxis
( allow_None=False, bounds=(0, 1), constant=False, default=False, instantiate=False, pickle_default_value=True, precedence=None, readonly=False ) - Whether to invert the plot y-axis.
-
param Boolean
invert_zaxis
( allow_None=False, bounds=(0, 1), constant=False, default=False, instantiate=False, pickle_default_value=True, precedence=None, readonly=False ) - Whether to invert the plot z-axis.
-
param List
labelled
( allow_None=False, bounds=(0, None), constant=False, default=[‘x’, ‘y’, ‘z’], instantiate=True, pickle_default_value=True, precedence=None, readonly=False ) - Whether to plot the ‘x’, ‘y’ and ‘z’ labels.
-
param Boolean
logx
( allow_None=False, bounds=(0, 1), constant=False, default=False, instantiate=False, pickle_default_value=True, precedence=None, readonly=False ) - Whether to apply log scaling to the x-axis of the Chart.
-
param Boolean
logy
( allow_None=False, bounds=(0, 1), constant=False, default=False, instantiate=False, pickle_default_value=True, precedence=None, readonly=False ) - Whether to apply log scaling to the y-axis of the Chart.
-
param Boolean
logz
( allow_None=False, bounds=(0, 1), constant=False, default=False, instantiate=False, pickle_default_value=True, precedence=None, readonly=False ) - Whether to apply log scaling to the y-axis of the Chart.
-
param Boolean
show_legend
( allow_None=False, bounds=(0, 1), constant=False, default=False, instantiate=False, pickle_default_value=True, precedence=None, readonly=False ) - Whether to show legend for the plot.
-
param Boolean
show_grid
( allow_None=False, bounds=(0, 1), constant=False, default=True, instantiate=False, pickle_default_value=True, precedence=None, readonly=False ) - Whether to draw a grid in the figure.
-
param ObjectSelector
xaxis
( allow_None=None, check_on_set=True, compute_default_fn=None, constant=False, default=fixed, instantiate=False, objects=[‘fixed’, None], pickle_default_value=True, precedence=None, readonly=False ) - Whether and where to display the xaxis.
-
param ObjectSelector
yaxis
( allow_None=None, check_on_set=True, compute_default_fn=None, constant=False, default=fixed, instantiate=False, objects=[‘fixed’, None], pickle_default_value=True, precedence=None, readonly=False ) - Whether and where to display the yaxis.
-
param ObjectSelector
zaxis
( allow_None=False, check_on_set=True, compute_default_fn=None, constant=False, default=fixed, instantiate=False, objects=[‘fixed’, None], pickle_default_value=True, precedence=None, readonly=False ) - Whether and where to display the yaxis.
-
param Parameter
xticks
( allow_None=True, constant=False, default=None, instantiate=False, pickle_default_value=True, precedence=None, readonly=False ) - Ticks along x-axis specified as an integer, explicit list of tick locations, list of tuples containing the locations and labels or a matplotlib tick locator object. If set to None default matplotlib ticking behavior is applied.
-
param Integer
xrotation
( allow_None=False, bounds=(0, 360), constant=False, default=0, inclusive_bounds=(True, True), instantiate=False, pickle_default_value=True, precedence=None, readonly=False, softbounds=None, time_dependent=False, time_fn=<Time Time00001> ) - Rotation angle of the xticks.
-
param Parameter
yticks
( allow_None=True, constant=False, default=None, instantiate=False, pickle_default_value=True, precedence=None, readonly=False ) - Ticks along y-axis specified as an integer, explicit list of tick locations, list of tuples containing the locations and labels or a matplotlib tick locator object. If set to None default matplotlib ticking behavior is applied.
-
param Integer
yrotation
( allow_None=False, bounds=(0, 360), constant=False, default=0, inclusive_bounds=(True, True), instantiate=False, pickle_default_value=True, precedence=None, readonly=False, softbounds=None, time_dependent=False, time_fn=<Time Time00001> ) - Rotation angle of the yticks.
-
param Integer
zrotation
( allow_None=False, bounds=(0, 360), constant=False, default=0, inclusive_bounds=(True, True), instantiate=False, pickle_default_value=True, precedence=None, readonly=False, softbounds=None, time_dependent=False, time_fn=<Time Time00001> ) - Rotation angle of the zticks.
-
param Parameter
zticks
( allow_None=True, constant=False, default=None, instantiate=False, pickle_default_value=True, precedence=None, readonly=False ) - Ticks along z-axis specified as an integer, explicit list of tick locations, list of tuples containing the locations and labels or a matplotlib tick locator object. If set to None default matplotlib ticking behavior is applied.
-
param Boolean
colorbar
( allow_None=False, bounds=(0, 1), constant=False, default=False, instantiate=False, pickle_default_value=True, precedence=None, readonly=False ) - Whether to add a colorbar to the plot.
-
param Dict
clipping_colors
( allow_None=False, constant=False, default={}, instantiate=True, is_instance=True, pickle_default_value=True, precedence=None, readonly=False ) - Dictionary to specify colors for clipped values, allows setting color for NaN values and for values above and below the min and max value. The min, max or NaN color may specify an RGB(A) color as a color hex string of the form #FFFFFF or #FFFFFFFF or a length 3 or length 4 tuple specifying values in the range 0-1 or a named HTML color.
-
param Number
cbar_padding
( allow_None=False, bounds=None, constant=False, default=0.01, inclusive_bounds=(True, True), instantiate=False, pickle_default_value=True, precedence=None, readonly=False, softbounds=None, time_dependent=False, time_fn=<Time Time00001> ) - Padding between colorbar and other plots.
-
param Parameter
cbar_ticks
( allow_None=True, constant=False, default=None, instantiate=False, pickle_default_value=True, precedence=None, readonly=False ) - Ticks along colorbar-axis specified as an integer, explicit list of tick locations, list of tuples containing the locations and labels or a matplotlib tick locator object. If set to None default matplotlib ticking behavior is applied.
-
param Number
cbar_width
( allow_None=False, bounds=None, constant=False, default=0.05, inclusive_bounds=(True, True), instantiate=False, pickle_default_value=True, precedence=None, readonly=False, softbounds=None, time_dependent=False, time_fn=<Time Time00001> ) - Width of the colorbar as a fraction of the main plot
-
param Boolean
symmetric
( allow_None=False, bounds=(0, 1), constant=False, default=False, instantiate=False, pickle_default_value=True, precedence=None, readonly=False ) - Whether to make the colormap symmetric around zero.
-
param Integer
azimuth
( allow_None=False, bounds=(-180, 180), constant=False, default=-60, inclusive_bounds=(True, True), instantiate=False, pickle_default_value=True, precedence=None, readonly=False, softbounds=None, time_dependent=False, time_fn=<Time Time00001> ) - Azimuth angle in the x,y plane.
-
param Integer
elevation
( allow_None=False, bounds=(0, 180), constant=False, default=30, inclusive_bounds=(True, True), instantiate=False, pickle_default_value=True, precedence=None, readonly=False, softbounds=None, time_dependent=False, time_fn=<Time Time00001> ) - Elevation angle in the z-axis.
-
param Integer
distance
( allow_None=False, bounds=(7, 15), constant=False, default=10, inclusive_bounds=(True, True), instantiate=False, pickle_default_value=True, precedence=None, readonly=False, softbounds=None, time_dependent=False, time_fn=<Time Time00001> ) - Distance from the plotted object.
-
param Boolean
disable_axes
( allow_None=False, bounds=(0, 1), constant=False, default=False, instantiate=False, pickle_default_value=True, precedence=None, readonly=False ) - Disable all axes.
-
param ObjectSelector
plot_type
( allow_None=None, check_on_set=True, compute_default_fn=None, constant=False, default=surface, instantiate=False, objects=[‘surface’, ‘wireframe’, ‘contour’], pickle_default_value=True, precedence=None, readonly=False ) - Specifies the type of visualization for the Surface object. Valid values are ‘surface’, ‘wireframe’ and ‘contour’.
-
anim
( start=0 , stop=None , fps=30 ) ¶ -
Method to return a matplotlib animation. The start and stop frames may be specified as well as the fps.
-
compute_ranges
( obj , key , ranges ) ¶ -
Given an object, a specific key and the normalization options this method will find the specified normalization options on the appropriate OptionTree, group the elements according to the selected normalization option (i.e. either per frame or over the whole animation) and finally compute the dimension ranges in each group. The new set of ranges is returned.
-
debug
( msg , *args , **kw ) ¶ -
Print msg merged with args as a debugging statement.
See Python’s logging module for details of message formatting.
-
defaults
( ) ¶ -
Return {parameter_name:parameter.default} for all non-constant Parameters.
Note that a Parameter for which instantiate==True has its default instantiated.
-
force_new_dynamic_value
= functools.partial(<function Parameterized.force_new_dynamic_value>, <class 'holoviews.plotting.mpl.chart3d.SurfacePlot'>) ¶
-
get_extents
( view , ranges ) ¶ -
Gets the extents for the axes from the current View. The globally computed ranges can optionally override the extents.
-
get_param_values
( onlychanged=False ) ¶ -
Return a list of name,value pairs for all Parameters of this object.
If onlychanged is True, will only return values that are not equal to the default value.
-
get_value_generator
= functools.partial(<function Parameterized.get_value_generator>, <class 'holoviews.plotting.mpl.chart3d.SurfacePlot'>) ¶
-
get_zorder
( overlay , key , el ) ¶ -
Computes the z-order of element in the NdOverlay taking into account possible batching of elements.
-
init_comm
( ) ¶ -
Initializes comm and attaches streams.
-
inspect_value
= functools.partial(<function Parameterized.inspect_value>, <class 'holoviews.plotting.mpl.chart3d.SurfacePlot'>) ¶
-
matches
( spec ) ¶ -
Matches a specification against the current Plot.
-
message
( msg , *args , **kw ) ¶ -
Print msg merged with args as a message.
See Python’s logging module for details of message formatting.
-
params
( parameter_name=None ) ¶ -
Return the Parameters of this class as the dictionary {name: parameter_object}
Includes Parameters from this class and its superclasses.
-
pprint
( imports=None , prefix=' ' , unknown_value='<?>' , qualify=False , separator='' ) ¶ -
(Experimental) Pretty printed representation that may be evaluated with eval. See pprint() function for more details.
-
print_param_defaults
( ) ¶ -
Print the default values of all cls’s Parameters.
-
print_param_values
( ) ¶ -
Print the values of all this object’s Parameters.
-
push
( ) ¶ -
Pushes updated plot data via the Comm.
-
refresh
( **kwargs ) ¶ -
Refreshes the plot by rerendering it and then pushing the updated data if the plot has an associated Comm.
-
script_repr
( imports=[] , prefix=' ' ) ¶ -
Variant of __repr__ designed for generating a runnable script.
-
set_default
( param_name , value ) ¶ -
Set the default value of param_name.
Equivalent to setting param_name on the class.
-
set_dynamic_time_fn
= functools.partial(<function Parameterized.set_dynamic_time_fn>, <class 'holoviews.plotting.mpl.chart3d.SurfacePlot'>) ¶
-
set_param
= functools.partial(<function Parameterized.set_param>, <class 'holoviews.plotting.mpl.chart3d.SurfacePlot'>) ¶
-
state_pop
( ) ¶ -
Restore the most recently saved state.
See state_push() for more details.
-
state_push
( ) ¶ -
Save this instance’s state.
For Parameterized instances, this includes the state of dynamically generated values.
Subclasses that maintain short-term state should additionally save and restore that state using state_push() and state_pop().
Generally, this method is used by operations that need to test something without permanently altering the objects’ state.
-
teardown_handles
( ) ¶ -
If no custom update_handles method is supplied this method is called to tear down any previous handles before replacing them.
-
traverse
( fn=None , specs=None , full_breadth=True ) ¶ -
Traverses any nested DimensionedPlot returning a list of all plots that match the specs. The specs should be supplied as a list of either Plot types or callables, which should return a boolean given the plot class.
-
update_handles
( key , axis , element , ranges , style ) ¶ -
Update the elements of the plot.
-
verbose
( msg , *args , **kw ) ¶ -
Print msg merged with args as a verbose message.
See Python’s logging module for details of message formatting.
-
warning
( msg , *args , **kw ) ¶ -
Print msg merged with args as a warning, unless module variable warnings_as_exceptions is True, then raise an Exception containing the arguments.
See Python’s logging module for details of message formatting.
-
param Parameter
-
class
holoviews.plotting.mpl.chart3d.
TrisurfacePlot
( *args , **kwargs ) [source] ¶ -
Bases:
holoviews.plotting.mpl.chart3d.Plot3D
Plots a trisurface given a Trisurface element, containing X, Y and Z coordinates.
-
param Parameter
fontsize
( allow_None=True, constant=False, default=None, instantiate=False, pickle_default_value=True, precedence=None, readonly=False ) - Specifies various fontsizes of the displayed text. Finer control is available by supplying a dictionary where any unmentioned keys reverts to the default sizes, e.g: {‘ticks’:20, ‘title’:15, ‘ylabel’:5, ‘xlabel’:5, ‘legend’:8, ‘legend_title’:13} You can set the fontsize of both ‘ylabel’ and ‘xlabel’ together using the ‘labels’ key.
-
param Boolean
show_title
( allow_None=False, bounds=(0, 1), constant=False, default=True, instantiate=False, pickle_default_value=True, precedence=None, readonly=False ) - Whether to display the plot title.
-
param String
title_format
( allow_None=False, basestring=<class ‘str’>, constant=False, default={label} {group} {dimensions}, instantiate=False, pickle_default_value=True, precedence=None, readonly=False ) - The formatting string for the title of this plot, allows defining a label group separator and dimension labels.
-
param Boolean
normalize
( allow_None=False, bounds=(0, 1), constant=False, default=True, instantiate=False, pickle_default_value=True, precedence=None, readonly=False ) - Whether to compute ranges across all Elements at this level of plotting. Allows selecting normalization at different levels for nested data containers.
-
param ObjectSelector
projection
( allow_None=True, check_on_set=True, compute_default_fn=None, constant=False, default=3d, instantiate=False, objects=[‘3d’], pickle_default_value=True, precedence=None, readonly=False ) - The projection of the matplotlib axis.
-
param Number
fig_alpha
( allow_None=False, bounds=(0, 1), constant=False, default=1.0, inclusive_bounds=(True, True), instantiate=False, pickle_default_value=True, precedence=None, readonly=False, softbounds=None, time_dependent=False, time_fn=<Time Time00001> ) - Alpha of the overall figure background.
-
param NumericTuple
fig_bounds
( allow_None=False, constant=False, default=(0.15, 0.15, 0.85, 0.85), instantiate=False, length=4, pickle_default_value=True, precedence=None, readonly=False ) - The bounds of the overall figure as a 4-tuple of the form (left, bottom, right, top), defining the size of the border around the subplots.
-
param Parameter
fig_inches
( allow_None=False, constant=False, default=4, instantiate=False, pickle_default_value=True, precedence=None, readonly=False ) - The overall matplotlib figure size in inches. May be set as an integer in which case it will be used to autocompute a size. Alternatively may be set with an explicit tuple or list, in which case it will be applied directly after being scaled by fig_size. If either the width or height is set to None, it will be computed automatically.
-
param Boolean
fig_latex
( allow_None=False, bounds=(0, 1), constant=False, default=False, instantiate=False, pickle_default_value=True, precedence=None, readonly=False ) - Whether to use LaTeX text in the overall figure.
-
param Dict
fig_rcparams
( allow_None=False, constant=False, default={}, instantiate=True, is_instance=True, pickle_default_value=True, precedence=None, readonly=False ) - matplotlib rc parameters to apply to the overall figure.
-
param Number
fig_size
( allow_None=False, bounds=(1, None), constant=False, default=100.0, inclusive_bounds=(True, True), instantiate=False, pickle_default_value=True, precedence=None, readonly=False, softbounds=None, time_dependent=False, time_fn=<Time Time00001> ) - Size relative to the supplied overall fig_inches in percent.
-
param HookList
initial_hooks
( allow_None=False, bounds=(0, None), constant=False, default=[], instantiate=True, pickle_default_value=True, precedence=None, readonly=False ) - Optional list of hooks called before plotting the data onto the axis. The hook is passed the plot object and the displayed object, other plotting handles can be accessed via plot.handles.
-
param HookList
final_hooks
( allow_None=False, bounds=(0, None), constant=False, default=[], instantiate=True, pickle_default_value=True, precedence=None, readonly=False ) - Optional list of hooks called when finalizing an axis. The hook is passed the plot object and the displayed object, other plotting handles can be accessed via plot.handles.
-
param HookList
finalize_hooks
( allow_None=False, bounds=(0, None), constant=False, default=[], instantiate=True, pickle_default_value=True, precedence=None, readonly=False ) - Optional list of hooks called when finalizing an axis. The hook is passed the plot object and the displayed object, other plotting handles can be accessed via plot.handles.
-
param String
sublabel_format
( allow_None=True, basestring=<class ‘str’>, constant=False, default=None, instantiate=False, pickle_default_value=True, precedence=None, readonly=False ) - Allows labeling the subaxes in each plot with various formatters including {Alpha}, {alpha}, {numeric} and {roman}.
-
param NumericTuple
sublabel_position
( allow_None=False, constant=False, default=(-0.35, 0.85), instantiate=False, length=2, pickle_default_value=True, precedence=None, readonly=False ) - Position relative to the plot for placing the optional subfigure label.
-
param Number
sublabel_size
( allow_None=False, bounds=None, constant=False, default=18, inclusive_bounds=(True, True), instantiate=False, pickle_default_value=True, precedence=None, readonly=False, softbounds=None, time_dependent=False, time_fn=<Time Time00001> ) - Size of optional subfigure label.
-
param Boolean
show_frame
( allow_None=False, bounds=(0, 1), constant=False, default=False, instantiate=False, pickle_default_value=True, precedence=None, readonly=False ) - Whether or not to show a complete frame around the plot.
-
param Boolean
apply_ranges
( allow_None=False, bounds=(0, 1), constant=False, default=True, instantiate=False, pickle_default_value=True, precedence=None, readonly=False ) - Whether to compute the plot bounds from the data itself.
-
param Boolean
apply_extents
( allow_None=False, bounds=(0, 1), constant=False, default=True, instantiate=False, pickle_default_value=True, precedence=None, readonly=False ) - Whether to apply extent overrides on the Elements
-
param Boolean
apply_ticks
( allow_None=False, bounds=(0, 1), constant=False, default=True, instantiate=False, pickle_default_value=True, precedence=None, readonly=False ) - Whether to apply custom ticks.
-
param Parameter
aspect
( allow_None=False, constant=False, default=square, instantiate=False, pickle_default_value=True, precedence=None, readonly=False ) - The aspect ratio mode of the plot. By default, a plot may select its own appropriate aspect ratio but sometimes it may be necessary to force a square aspect ratio (e.g. to display the plot as an element of a grid). The modes ‘auto’ and ‘equal’ correspond to the axis modes of the same name in matplotlib, a numeric value may also be passed.
-
param String
bgcolor
( allow_None=False, basestring=<class ‘str’>, constant=False, default=white, instantiate=True, pickle_default_value=True, precedence=None, readonly=False ) - Background color of the axis.
-
param ObjectSelector
invert_axes
( allow_None=None, check_on_set=False, compute_default_fn=None, constant=False, default=False, instantiate=False, objects=[], pickle_default_value=True, precedence=None, readonly=False ) - Inverts the axes of the plot. Note that this parameter may not always be respected by all plots but should be respected by adjoined plots when appropriate.
-
param Boolean
invert_xaxis
( allow_None=False, bounds=(0, 1), constant=False, default=False, instantiate=False, pickle_default_value=True, precedence=None, readonly=False ) - Whether to invert the plot x-axis.
-
param Boolean
invert_yaxis
( allow_None=False, bounds=(0, 1), constant=False, default=False, instantiate=False, pickle_default_value=True, precedence=None, readonly=False ) - Whether to invert the plot y-axis.
-
param Boolean
invert_zaxis
( allow_None=False, bounds=(0, 1), constant=False, default=False, instantiate=False, pickle_default_value=True, precedence=None, readonly=False ) - Whether to invert the plot z-axis.
-
param List
labelled
( allow_None=False, bounds=(0, None), constant=False, default=[‘x’, ‘y’, ‘z’], instantiate=True, pickle_default_value=True, precedence=None, readonly=False ) - Whether to plot the ‘x’, ‘y’ and ‘z’ labels.
-
param Boolean
logx
( allow_None=False, bounds=(0, 1), constant=False, default=False, instantiate=False, pickle_default_value=True, precedence=None, readonly=False ) - Whether to apply log scaling to the x-axis of the Chart.
-
param Boolean
logy
( allow_None=False, bounds=(0, 1), constant=False, default=False, instantiate=False, pickle_default_value=True, precedence=None, readonly=False ) - Whether to apply log scaling to the y-axis of the Chart.
-
param Boolean
logz
( allow_None=False, bounds=(0, 1), constant=False, default=False, instantiate=False, pickle_default_value=True, precedence=None, readonly=False ) - Whether to apply log scaling to the y-axis of the Chart.
-
param Boolean
show_legend
( allow_None=False, bounds=(0, 1), constant=False, default=False, instantiate=False, pickle_default_value=True, precedence=None, readonly=False ) - Whether to show legend for the plot.
-
param Boolean
show_grid
( allow_None=False, bounds=(0, 1), constant=False, default=True, instantiate=False, pickle_default_value=True, precedence=None, readonly=False ) - Whether to draw a grid in the figure.
-
param ObjectSelector
xaxis
( allow_None=None, check_on_set=True, compute_default_fn=None, constant=False, default=fixed, instantiate=False, objects=[‘fixed’, None], pickle_default_value=True, precedence=None, readonly=False ) - Whether and where to display the xaxis.
-
param ObjectSelector
yaxis
( allow_None=None, check_on_set=True, compute_default_fn=None, constant=False, default=fixed, instantiate=False, objects=[‘fixed’, None], pickle_default_value=True, precedence=None, readonly=False ) - Whether and where to display the yaxis.
-
param ObjectSelector
zaxis
( allow_None=False, check_on_set=True, compute_default_fn=None, constant=False, default=fixed, instantiate=False, objects=[‘fixed’, None], pickle_default_value=True, precedence=None, readonly=False ) - Whether and where to display the yaxis.
-
param Parameter
xticks
( allow_None=True, constant=False, default=None, instantiate=False, pickle_default_value=True, precedence=None, readonly=False ) - Ticks along x-axis specified as an integer, explicit list of tick locations, list of tuples containing the locations and labels or a matplotlib tick locator object. If set to None default matplotlib ticking behavior is applied.
-
param Integer
xrotation
( allow_None=False, bounds=(0, 360), constant=False, default=0, inclusive_bounds=(True, True), instantiate=False, pickle_default_value=True, precedence=None, readonly=False, softbounds=None, time_dependent=False, time_fn=<Time Time00001> ) - Rotation angle of the xticks.
-
param Parameter
yticks
( allow_None=True, constant=False, default=None, instantiate=False, pickle_default_value=True, precedence=None, readonly=False ) - Ticks along y-axis specified as an integer, explicit list of tick locations, list of tuples containing the locations and labels or a matplotlib tick locator object. If set to None default matplotlib ticking behavior is applied.
-
param Integer
yrotation
( allow_None=False, bounds=(0, 360), constant=False, default=0, inclusive_bounds=(True, True), instantiate=False, pickle_default_value=True, precedence=None, readonly=False, softbounds=None, time_dependent=False, time_fn=<Time Time00001> ) - Rotation angle of the yticks.
-
param Integer
zrotation
( allow_None=False, bounds=(0, 360), constant=False, default=0, inclusive_bounds=(True, True), instantiate=False, pickle_default_value=True, precedence=None, readonly=False, softbounds=None, time_dependent=False, time_fn=<Time Time00001> ) - Rotation angle of the zticks.
-
param Parameter
zticks
( allow_None=True, constant=False, default=None, instantiate=False, pickle_default_value=True, precedence=None, readonly=False ) - Ticks along z-axis specified as an integer, explicit list of tick locations, list of tuples containing the locations and labels or a matplotlib tick locator object. If set to None default matplotlib ticking behavior is applied.
-
param Boolean
colorbar
( allow_None=False, bounds=(0, 1), constant=False, default=False, instantiate=False, pickle_default_value=True, precedence=None, readonly=False ) - Whether to add a colorbar to the plot.
-
param Dict
clipping_colors
( allow_None=False, constant=False, default={}, instantiate=True, is_instance=True, pickle_default_value=True, precedence=None, readonly=False ) - Dictionary to specify colors for clipped values, allows setting color for NaN values and for values above and below the min and max value. The min, max or NaN color may specify an RGB(A) color as a color hex string of the form #FFFFFF or #FFFFFFFF or a length 3 or length 4 tuple specifying values in the range 0-1 or a named HTML color.
-
param Number
cbar_padding
( allow_None=False, bounds=None, constant=False, default=0.01, inclusive_bounds=(True, True), instantiate=False, pickle_default_value=True, precedence=None, readonly=False, softbounds=None, time_dependent=False, time_fn=<Time Time00001> ) - Padding between colorbar and other plots.
-
param Parameter
cbar_ticks
( allow_None=True, constant=False, default=None, instantiate=False, pickle_default_value=True, precedence=None, readonly=False ) - Ticks along colorbar-axis specified as an integer, explicit list of tick locations, list of tuples containing the locations and labels or a matplotlib tick locator object. If set to None default matplotlib ticking behavior is applied.
-
param Number
cbar_width
( allow_None=False, bounds=None, constant=False, default=0.05, inclusive_bounds=(True, True), instantiate=False, pickle_default_value=True, precedence=None, readonly=False, softbounds=None, time_dependent=False, time_fn=<Time Time00001> ) - Width of the colorbar as a fraction of the main plot
-
param Boolean
symmetric
( allow_None=False, bounds=(0, 1), constant=False, default=False, instantiate=False, pickle_default_value=True, precedence=None, readonly=False ) - Whether to make the colormap symmetric around zero.
-
param Integer
azimuth
( allow_None=False, bounds=(-180, 180), constant=False, default=-60, inclusive_bounds=(True, True), instantiate=False, pickle_default_value=True, precedence=None, readonly=False, softbounds=None, time_dependent=False, time_fn=<Time Time00001> ) - Azimuth angle in the x,y plane.
-
param Integer
elevation
( allow_None=False, bounds=(0, 180), constant=False, default=30, inclusive_bounds=(True, True), instantiate=False, pickle_default_value=True, precedence=None, readonly=False, softbounds=None, time_dependent=False, time_fn=<Time Time00001> ) - Elevation angle in the z-axis.
-
param Integer
distance
( allow_None=False, bounds=(7, 15), constant=False, default=10, inclusive_bounds=(True, True), instantiate=False, pickle_default_value=True, precedence=None, readonly=False, softbounds=None, time_dependent=False, time_fn=<Time Time00001> ) - Distance from the plotted object.
-
param Boolean
disable_axes
( allow_None=False, bounds=(0, 1), constant=False, default=False, instantiate=False, pickle_default_value=True, precedence=None, readonly=False ) - Disable all axes.
-
anim
( start=0 , stop=None , fps=30 ) ¶ -
Method to return a matplotlib animation. The start and stop frames may be specified as well as the fps.
-
compute_ranges
( obj , key , ranges ) ¶ -
Given an object, a specific key and the normalization options this method will find the specified normalization options on the appropriate OptionTree, group the elements according to the selected normalization option (i.e. either per frame or over the whole animation) and finally compute the dimension ranges in each group. The new set of ranges is returned.
-
debug
( msg , *args , **kw ) ¶ -
Print msg merged with args as a debugging statement.
See Python’s logging module for details of message formatting.
-
defaults
( ) ¶ -
Return {parameter_name:parameter.default} for all non-constant Parameters.
Note that a Parameter for which instantiate==True has its default instantiated.
-
force_new_dynamic_value
= functools.partial(<function Parameterized.force_new_dynamic_value>, <class 'holoviews.plotting.mpl.chart3d.TrisurfacePlot'>) ¶
-
get_extents
( view , ranges ) ¶ -
Gets the extents for the axes from the current View. The globally computed ranges can optionally override the extents.
-
get_param_values
( onlychanged=False ) ¶ -
Return a list of name,value pairs for all Parameters of this object.
If onlychanged is True, will only return values that are not equal to the default value.
-
get_value_generator
= functools.partial(<function Parameterized.get_value_generator>, <class 'holoviews.plotting.mpl.chart3d.TrisurfacePlot'>) ¶
-
get_zorder
( overlay , key , el ) ¶ -
Computes the z-order of element in the NdOverlay taking into account possible batching of elements.
-
init_artists
( ax , plot_args , plot_kwargs ) ¶ -
Initializes the artist based on the plot method declared on the plot.
-
init_comm
( ) ¶ -
Initializes comm and attaches streams.
-
inspect_value
= functools.partial(<function Parameterized.inspect_value>, <class 'holoviews.plotting.mpl.chart3d.TrisurfacePlot'>) ¶
-
matches
( spec ) ¶ -
Matches a specification against the current Plot.
-
message
( msg , *args , **kw ) ¶ -
Print msg merged with args as a message.
See Python’s logging module for details of message formatting.
-
params
( parameter_name=None ) ¶ -
Return the Parameters of this class as the dictionary {name: parameter_object}
Includes Parameters from this class and its superclasses.
-
pprint
( imports=None , prefix=' ' , unknown_value='<?>' , qualify=False , separator='' ) ¶ -
(Experimental) Pretty printed representation that may be evaluated with eval. See pprint() function for more details.
-
print_param_defaults
( ) ¶ -
Print the default values of all cls’s Parameters.
-
print_param_values
( ) ¶ -
Print the values of all this object’s Parameters.
-
push
( ) ¶ -
Pushes updated plot data via the Comm.
-
refresh
( **kwargs ) ¶ -
Refreshes the plot by rerendering it and then pushing the updated data if the plot has an associated Comm.
-
script_repr
( imports=[] , prefix=' ' ) ¶ -
Variant of __repr__ designed for generating a runnable script.
-
set_default
( param_name , value ) ¶ -
Set the default value of param_name.
Equivalent to setting param_name on the class.
-
set_dynamic_time_fn
= functools.partial(<function Parameterized.set_dynamic_time_fn>, <class 'holoviews.plotting.mpl.chart3d.TrisurfacePlot'>) ¶
-
set_param
= functools.partial(<function Parameterized.set_param>, <class 'holoviews.plotting.mpl.chart3d.TrisurfacePlot'>) ¶
-
state_pop
( ) ¶ -
Restore the most recently saved state.
See state_push() for more details.
-
state_push
( ) ¶ -
Save this instance’s state.
For Parameterized instances, this includes the state of dynamically generated values.
Subclasses that maintain short-term state should additionally save and restore that state using state_push() and state_pop().
Generally, this method is used by operations that need to test something without permanently altering the objects’ state.
-
teardown_handles
( ) ¶ -
If no custom update_handles method is supplied this method is called to tear down any previous handles before replacing them.
-
traverse
( fn=None , specs=None , full_breadth=True ) ¶ -
Traverses any nested DimensionedPlot returning a list of all plots that match the specs. The specs should be supplied as a list of either Plot types or callables, which should return a boolean given the plot class.
-
update_handles
( key , axis , element , ranges , style ) ¶ -
Update the elements of the plot.
-
verbose
( msg , *args , **kw ) ¶ -
Print msg merged with args as a verbose message.
See Python’s logging module for details of message formatting.
-
warning
( msg , *args , **kw ) ¶ -
Print msg merged with args as a warning, unless module variable warnings_as_exceptions is True, then raise an Exception containing the arguments.
See Python’s logging module for details of message formatting.
-
param Parameter
comms
Module
¶
-
class
holoviews.plotting.mpl.comms.
NbAggCommSocket
( manager , target=None ) [source] ¶ -
Bases:
matplotlib.backends.backend_nbagg.CommSocket
NbAggCommSocket subclasses the matplotlib CommSocket allowing the opening of a comms channel to be delayed until the plot is displayed.
-
class
holoviews.plotting.mpl.comms.
NbAggJupyterComm
( plot , id=None , on_msg=None ) [source] ¶ -
Bases:
holoviews.plotting.comms.JupyterComm
Wraps a NbAggCommSocket to provide a consistent API to work for updating nbagg plots.
-
decode
( msg ) ¶ -
Decodes messages following Jupyter messaging protocol. If JSON decoding fails data is assumed to be a regular string.
-
element
Module
¶
-
class
holoviews.plotting.mpl.element.
OverlayPlot
( overlay , ranges=None , **params ) [source] ¶ -
Bases:
holoviews.plotting.mpl.element.LegendPlot
,holoviews.plotting.plot.GenericOverlayPlot
OverlayPlot supports compositors processing of Overlays across maps.
-
param Parameter
fontsize
( allow_None=True, constant=False, default=None, instantiate=False, pickle_default_value=True, precedence=None, readonly=False ) - Specifies various fontsizes of the displayed text. Finer control is available by supplying a dictionary where any unmentioned keys reverts to the default sizes, e.g: {‘ticks’:20, ‘title’:15, ‘ylabel’:5, ‘xlabel’:5, ‘legend’:8, ‘legend_title’:13} You can set the fontsize of both ‘ylabel’ and ‘xlabel’ together using the ‘labels’ key.
-
param Boolean
show_title
( allow_None=False, bounds=(0, 1), constant=False, default=True, instantiate=False, pickle_default_value=True, precedence=None, readonly=False ) - Whether to display the plot title.
-
param String
title_format
( allow_None=False, basestring=<class ‘str’>, constant=False, default={label} {group} {dimensions}, instantiate=False, pickle_default_value=True, precedence=None, readonly=False ) - The formatting string for the title of this plot, allows defining a label group separator and dimension labels.
-
param Boolean
normalize
( allow_None=False, bounds=(0, 1), constant=False, default=True, instantiate=False, pickle_default_value=True, precedence=None, readonly=False ) - Whether to compute ranges across all Elements at this level of plotting. Allows selecting normalization at different levels for nested data containers.
-
param Parameter
projection
( allow_None=True, constant=False, default=None, instantiate=False, pickle_default_value=True, precedence=None, readonly=False ) - The projection of the plot axis, default of None is equivalent to 2D plot, ‘3d’ and ‘polar’ are also supported by matplotlib by default. May also supply a custom projection that is either a matplotlib projection type or implements the _as_mpl_axes method.
-
param Number
fig_alpha
( allow_None=False, bounds=(0, 1), constant=False, default=1.0, inclusive_bounds=(True, True), instantiate=False, pickle_default_value=True, precedence=None, readonly=False, softbounds=None, time_dependent=False, time_fn=<Time Time00001> ) - Alpha of the overall figure background.
-
param NumericTuple
fig_bounds
( allow_None=False, constant=False, default=(0.15, 0.15, 0.85, 0.85), instantiate=False, length=4, pickle_default_value=True, precedence=None, readonly=False ) - The bounds of the overall figure as a 4-tuple of the form (left, bottom, right, top), defining the size of the border around the subplots.
-
param Parameter
fig_inches
( allow_None=False, constant=False, default=4, instantiate=False, pickle_default_value=True, precedence=None, readonly=False ) - The overall matplotlib figure size in inches. May be set as an integer in which case it will be used to autocompute a size. Alternatively may be set with an explicit tuple or list, in which case it will be applied directly after being scaled by fig_size. If either the width or height is set to None, it will be computed automatically.
-
param Boolean
fig_latex
( allow_None=False, bounds=(0, 1), constant=False, default=False, instantiate=False, pickle_default_value=True, precedence=None, readonly=False ) - Whether to use LaTeX text in the overall figure.
-
param Dict
fig_rcparams
( allow_None=False, constant=False, default={}, instantiate=True, is_instance=True, pickle_default_value=True, precedence=None, readonly=False ) - matplotlib rc parameters to apply to the overall figure.
-
param Number
fig_size
( allow_None=False, bounds=(1, None), constant=False, default=100.0, inclusive_bounds=(True, True), instantiate=False, pickle_default_value=True, precedence=None, readonly=False, softbounds=None, time_dependent=False, time_fn=<Time Time00001> ) - Size relative to the supplied overall fig_inches in percent.
-
param HookList
initial_hooks
( allow_None=False, bounds=(0, None), constant=False, default=[], instantiate=True, pickle_default_value=True, precedence=None, readonly=False ) - Optional list of hooks called before plotting the data onto the axis. The hook is passed the plot object and the displayed object, other plotting handles can be accessed via plot.handles.
-
param HookList
final_hooks
( allow_None=False, bounds=(0, None), constant=False, default=[], instantiate=True, pickle_default_value=True, precedence=None, readonly=False ) - Optional list of hooks called when finalizing an axis. The hook is passed the plot object and the displayed object, other plotting handles can be accessed via plot.handles.
-
param HookList
finalize_hooks
( allow_None=False, bounds=(0, None), constant=False, default=[], instantiate=True, pickle_default_value=True, precedence=None, readonly=False ) - Optional list of hooks called when finalizing an axis. The hook is passed the plot object and the displayed object, other plotting handles can be accessed via plot.handles.
-
param String
sublabel_format
( allow_None=True, basestring=<class ‘str’>, constant=False, default=None, instantiate=False, pickle_default_value=True, precedence=None, readonly=False ) - Allows labeling the subaxes in each plot with various formatters including {Alpha}, {alpha}, {numeric} and {roman}.
-
param NumericTuple
sublabel_position
( allow_None=False, constant=False, default=(-0.35, 0.85), instantiate=False, length=2, pickle_default_value=True, precedence=None, readonly=False ) - Position relative to the plot for placing the optional subfigure label.
-
param Number
sublabel_size
( allow_None=False, bounds=None, constant=False, default=18, inclusive_bounds=(True, True), instantiate=False, pickle_default_value=True, precedence=None, readonly=False, softbounds=None, time_dependent=False, time_fn=<Time Time00001> ) - Size of optional subfigure label.
-
param Boolean
show_frame
( allow_None=False, bounds=(0, 1), constant=False, default=False, instantiate=False, pickle_default_value=True, precedence=None, readonly=False ) - Whether or not to show a complete frame around the plot.
-
param Boolean
apply_ranges
( allow_None=False, bounds=(0, 1), constant=False, default=True, instantiate=False, pickle_default_value=True, precedence=None, readonly=False ) - Whether to compute the plot bounds from the data itself.
-
param Boolean
apply_extents
( allow_None=False, bounds=(0, 1), constant=False, default=True, instantiate=False, pickle_default_value=True, precedence=None, readonly=False ) - Whether to apply extent overrides on the Elements
-
param Boolean
batched
( allow_None=False, bounds=(0, 1), constant=False, default=True, instantiate=False, pickle_default_value=True, precedence=None, readonly=False ) - Whether to plot Elements NdOverlay in a batched plotting call if possible. Disables legends and zorder may not be preserved.
-
param Integer
legend_limit
( allow_None=False, bounds=None, constant=False, default=25, inclusive_bounds=(True, True), instantiate=False, pickle_default_value=True, precedence=None, readonly=False, softbounds=None, time_dependent=False, time_fn=<Time Time00001> ) - Number of rendered glyphs before legends are disabled.
-
param Boolean
show_legend
( allow_None=False, bounds=(0, 1), constant=False, default=True, instantiate=False, pickle_default_value=True, precedence=None, readonly=False ) - Whether to show legend for the plot.
-
param Integer
style_grouping
( allow_None=False, bounds=None, constant=False, default=2, inclusive_bounds=(True, True), instantiate=False, pickle_default_value=True, precedence=None, readonly=False, softbounds=None, time_dependent=False, time_fn=<Time Time00001> ) - The length of the type.group.label spec that will be used to group Elements into style groups, i.e. a style_grouping value of 1 will group just by type, a value of 2 will group by type and group and a value of 3 will group by the full specification.
-
param Boolean
apply_ticks
( allow_None=False, bounds=(0, 1), constant=False, default=True, instantiate=False, pickle_default_value=True, precedence=None, readonly=False ) - Whether to apply custom ticks.
-
param Parameter
aspect
( allow_None=False, constant=False, default=square, instantiate=False, pickle_default_value=True, precedence=None, readonly=False ) - The aspect ratio mode of the plot. By default, a plot may select its own appropriate aspect ratio but sometimes it may be necessary to force a square aspect ratio (e.g. to display the plot as an element of a grid). The modes ‘auto’ and ‘equal’ correspond to the axis modes of the same name in matplotlib, a numeric value may also be passed.
-
param ClassSelector
bgcolor
( allow_None=True, constant=False, default=None, instantiate=True, is_instance=True, pickle_default_value=True, precedence=None, readonly=False ) - If set bgcolor overrides the background color of the axis.
-
param ObjectSelector
invert_axes
( allow_None=None, check_on_set=False, compute_default_fn=None, constant=False, default=False, instantiate=False, objects=[], pickle_default_value=True, precedence=None, readonly=False ) - Inverts the axes of the plot. Note that this parameter may not always be respected by all plots but should be respected by adjoined plots when appropriate.
-
param Boolean
invert_xaxis
( allow_None=False, bounds=(0, 1), constant=False, default=False, instantiate=False, pickle_default_value=True, precedence=None, readonly=False ) - Whether to invert the plot x-axis.
-
param Boolean
invert_yaxis
( allow_None=False, bounds=(0, 1), constant=False, default=False, instantiate=False, pickle_default_value=True, precedence=None, readonly=False ) - Whether to invert the plot y-axis.
-
param Boolean
invert_zaxis
( allow_None=False, bounds=(0, 1), constant=False, default=False, instantiate=False, pickle_default_value=True, precedence=None, readonly=False ) - Whether to invert the plot z-axis.
-
param List
labelled
( allow_None=False, bounds=(0, None), constant=False, default=[‘x’, ‘y’], instantiate=True, pickle_default_value=True, precedence=None, readonly=False ) - Whether to plot the ‘x’ and ‘y’ labels.
-
param Boolean
logx
( allow_None=False, bounds=(0, 1), constant=False, default=False, instantiate=False, pickle_default_value=True, precedence=None, readonly=False ) - Whether to apply log scaling to the x-axis of the Chart.
-
param Boolean
logy
( allow_None=False, bounds=(0, 1), constant=False, default=False, instantiate=False, pickle_default_value=True, precedence=None, readonly=False ) - Whether to apply log scaling to the y-axis of the Chart.
-
param Boolean
logz
( allow_None=False, bounds=(0, 1), constant=False, default=False, instantiate=False, pickle_default_value=True, precedence=None, readonly=False ) - Whether to apply log scaling to the y-axis of the Chart.
-
param Boolean
show_grid
( allow_None=False, bounds=(0, 1), constant=False, default=False, instantiate=False, pickle_default_value=True, precedence=None, readonly=False ) - Whether to show a Cartesian grid on the plot.
-
param ObjectSelector
xaxis
( allow_None=None, check_on_set=True, compute_default_fn=None, constant=False, default=bottom, instantiate=False, objects=[‘top’, ‘bottom’, ‘bare’, ‘top-bare’, ‘bottom-bare’, None], pickle_default_value=True, precedence=None, readonly=False ) - Whether and where to display the xaxis, bare options allow suppressing all axis labels including ticks and xlabel. Valid options are ‘top’, ‘bottom’, ‘bare’, ‘top-bare’ and ‘bottom-bare’.
-
param ObjectSelector
yaxis
( allow_None=None, check_on_set=True, compute_default_fn=None, constant=False, default=left, instantiate=False, objects=[‘left’, ‘right’, ‘bare’, ‘left-bare’, ‘right-bare’, None], pickle_default_value=True, precedence=None, readonly=False ) - Whether and where to display the yaxis, bare options allow suppressing all axis labels including ticks and ylabel. Valid options are ‘left’, ‘right’, ‘bare’ ‘left-bare’ and ‘right-bare’.
-
param Boolean
zaxis
( allow_None=False, bounds=(0, 1), constant=False, default=True, instantiate=False, pickle_default_value=True, precedence=None, readonly=False ) - Whether to display the z-axis.
-
param Parameter
xticks
( allow_None=True, constant=False, default=None, instantiate=False, pickle_default_value=True, precedence=None, readonly=False ) - Ticks along x-axis specified as an integer, explicit list of tick locations, list of tuples containing the locations and labels or a matplotlib tick locator object. If set to None default matplotlib ticking behavior is applied.
-
param Integer
xrotation
( allow_None=False, bounds=(0, 360), constant=False, default=0, inclusive_bounds=(True, True), instantiate=False, pickle_default_value=True, precedence=None, readonly=False, softbounds=None, time_dependent=False, time_fn=<Time Time00001> ) - Rotation angle of the xticks.
-
param Parameter
yticks
( allow_None=True, constant=False, default=None, instantiate=False, pickle_default_value=True, precedence=None, readonly=False ) - Ticks along y-axis specified as an integer, explicit list of tick locations, list of tuples containing the locations and labels or a matplotlib tick locator object. If set to None default matplotlib ticking behavior is applied.
-
param Integer
yrotation
( allow_None=False, bounds=(0, 360), constant=False, default=0, inclusive_bounds=(True, True), instantiate=False, pickle_default_value=True, precedence=None, readonly=False, softbounds=None, time_dependent=False, time_fn=<Time Time00001> ) - Rotation angle of the yticks.
-
param Integer
zrotation
( allow_None=False, bounds=(0, 360), constant=False, default=0, inclusive_bounds=(True, True), instantiate=False, pickle_default_value=True, precedence=None, readonly=False, softbounds=None, time_dependent=False, time_fn=<Time Time00001> ) - Rotation angle of the zticks.
-
param Parameter
zticks
( allow_None=True, constant=False, default=None, instantiate=False, pickle_default_value=True, precedence=None, readonly=False ) - Ticks along z-axis specified as an integer, explicit list of tick locations, list of tuples containing the locations and labels or a matplotlib tick locator object. If set to None default matplotlib ticking behavior is applied.
-
param Integer
legend_cols
( allow_None=True, bounds=None, constant=False, default=None, inclusive_bounds=(True, True), instantiate=False, pickle_default_value=True, precedence=None, readonly=False, softbounds=None, time_dependent=False, time_fn=<Time Time00001> ) - Number of legend columns in the legend.
-
param ObjectSelector
legend_position
( allow_None=None, check_on_set=True, compute_default_fn=None, constant=False, default=inner, instantiate=False, objects=[‘inner’, ‘right’, ‘bottom’, ‘top’, ‘left’, ‘best’, ‘top_right’, ‘top_left’, ‘bottom_left’, ‘bottom_right’], pickle_default_value=True, precedence=None, readonly=False ) - Allows selecting between a number of predefined legend position options. The predefined options may be customized in the legend_specs class attribute. By default, ‘inner’, ‘right’, ‘bottom’, ‘top’, ‘left’, ‘best’, ‘top_right’, ‘top_left’, ‘bottom_right’ and ‘bottom_left’ are supported.
-
anim
( start=0 , stop=None , fps=30 ) ¶ -
Method to return a matplotlib animation. The start and stop frames may be specified as well as the fps.
-
compute_ranges
( obj , key , ranges ) ¶ -
Given an object, a specific key and the normalization options this method will find the specified normalization options on the appropriate OptionTree, group the elements according to the selected normalization option (i.e. either per frame or over the whole animation) and finally compute the dimension ranges in each group. The new set of ranges is returned.
-
debug
( msg , *args , **kw ) ¶ -
Print msg merged with args as a debugging statement.
See Python’s logging module for details of message formatting.
-
defaults
( ) ¶ -
Return {parameter_name:parameter.default} for all non-constant Parameters.
Note that a Parameter for which instantiate==True has its default instantiated.
-
force_new_dynamic_value
= functools.partial(<function Parameterized.force_new_dynamic_value>, <class 'holoviews.plotting.mpl.element.OverlayPlot'>) ¶
-
get_param_values
( onlychanged=False ) ¶ -
Return a list of name,value pairs for all Parameters of this object.
If onlychanged is True, will only return values that are not equal to the default value.
-
get_value_generator
= functools.partial(<function Parameterized.get_value_generator>, <class 'holoviews.plotting.mpl.element.OverlayPlot'>) ¶
-
get_zorder
( overlay , key , el ) ¶ -
Computes the z-order of element in the NdOverlay taking into account possible batching of elements.
-
init_artists
( ax , plot_args , plot_kwargs ) ¶ -
Initializes the artist based on the plot method declared on the plot.
-
init_comm
( ) ¶ -
Initializes comm and attaches streams.
-
inspect_value
= functools.partial(<function Parameterized.inspect_value>, <class 'holoviews.plotting.mpl.element.OverlayPlot'>) ¶
-
matches
( spec ) ¶ -
Matches a specification against the current Plot.
-
message
( msg , *args , **kw ) ¶ -
Print msg merged with args as a message.
See Python’s logging module for details of message formatting.
-
params
( parameter_name=None ) ¶ -
Return the Parameters of this class as the dictionary {name: parameter_object}
Includes Parameters from this class and its superclasses.
-
pprint
( imports=None , prefix=' ' , unknown_value='<?>' , qualify=False , separator='' ) ¶ -
(Experimental) Pretty printed representation that may be evaluated with eval. See pprint() function for more details.
-
print_param_defaults
( ) ¶ -
Print the default values of all cls’s Parameters.
-
print_param_values
( ) ¶ -
Print the values of all this object’s Parameters.
-
push
( ) ¶ -
Pushes updated plot data via the Comm.
-
refresh
( **kwargs ) ¶ -
Refreshes the plot by rerendering it and then pushing the updated data if the plot has an associated Comm.
-
script_repr
( imports=[] , prefix=' ' ) ¶ -
Variant of __repr__ designed for generating a runnable script.
-
set_default
( param_name , value ) ¶ -
Set the default value of param_name.
Equivalent to setting param_name on the class.
-
set_dynamic_time_fn
= functools.partial(<function Parameterized.set_dynamic_time_fn>, <class 'holoviews.plotting.mpl.element.OverlayPlot'>) ¶
-
set_param
= functools.partial(<function Parameterized.set_param>, <class 'holoviews.plotting.mpl.element.OverlayPlot'>) ¶
-
state_pop
( ) ¶ -
Restore the most recently saved state.
See state_push() for more details.
-
state_push
( ) ¶ -
Save this instance’s state.
For Parameterized instances, this includes the state of dynamically generated values.
Subclasses that maintain short-term state should additionally save and restore that state using state_push() and state_pop().
Generally, this method is used by operations that need to test something without permanently altering the objects’ state.
-
teardown_handles
( ) ¶ -
If no custom update_handles method is supplied this method is called to tear down any previous handles before replacing them.
-
traverse
( fn=None , specs=None , full_breadth=True ) ¶ -
Traverses any nested DimensionedPlot returning a list of all plots that match the specs. The specs should be supplied as a list of either Plot types or callables, which should return a boolean given the plot class.
-
update_handles
( key , axis , element , ranges , style ) ¶ -
Update the elements of the plot.
-
verbose
( msg , *args , **kw ) ¶ -
Print msg merged with args as a verbose message.
See Python’s logging module for details of message formatting.
-
warning
( msg , *args , **kw ) ¶ -
Print msg merged with args as a warning, unless module variable warnings_as_exceptions is True, then raise an Exception containing the arguments.
See Python’s logging module for details of message formatting.
-
param Parameter
graphs
Module
¶
-
class
holoviews.plotting.mpl.graphs.
GraphPlot
( *args , **kwargs ) [source] ¶ -
Bases:
holoviews.plotting.mpl.element.ColorbarPlot
-
param Parameter
fontsize
( allow_None=True, constant=False, default=None, instantiate=False, pickle_default_value=True, precedence=None, readonly=False ) - Specifies various fontsizes of the displayed text. Finer control is available by supplying a dictionary where any unmentioned keys reverts to the default sizes, e.g: {‘ticks’:20, ‘title’:15, ‘ylabel’:5, ‘xlabel’:5, ‘legend’:8, ‘legend_title’:13} You can set the fontsize of both ‘ylabel’ and ‘xlabel’ together using the ‘labels’ key.
-
param Boolean
show_title
( allow_None=False, bounds=(0, 1), constant=False, default=True, instantiate=False, pickle_default_value=True, precedence=None, readonly=False ) - Whether to display the plot title.
-
param String
title_format
( allow_None=False, basestring=<class ‘str’>, constant=False, default={label} {group} {dimensions}, instantiate=False, pickle_default_value=True, precedence=None, readonly=False ) - The formatting string for the title of this plot, allows defining a label group separator and dimension labels.
-
param Boolean
normalize
( allow_None=False, bounds=(0, 1), constant=False, default=True, instantiate=False, pickle_default_value=True, precedence=None, readonly=False ) - Whether to compute ranges across all Elements at this level of plotting. Allows selecting normalization at different levels for nested data containers.
-
param Parameter
projection
( allow_None=True, constant=False, default=None, instantiate=False, pickle_default_value=True, precedence=None, readonly=False ) - The projection of the plot axis, default of None is equivalent to 2D plot, ‘3d’ and ‘polar’ are also supported by matplotlib by default. May also supply a custom projection that is either a matplotlib projection type or implements the _as_mpl_axes method.
-
param Number
fig_alpha
( allow_None=False, bounds=(0, 1), constant=False, default=1.0, inclusive_bounds=(True, True), instantiate=False, pickle_default_value=True, precedence=None, readonly=False, softbounds=None, time_dependent=False, time_fn=<Time Time00001> ) - Alpha of the overall figure background.
-
param NumericTuple
fig_bounds
( allow_None=False, constant=False, default=(0.15, 0.15, 0.85, 0.85), instantiate=False, length=4, pickle_default_value=True, precedence=None, readonly=False ) - The bounds of the overall figure as a 4-tuple of the form (left, bottom, right, top), defining the size of the border around the subplots.
-
param Parameter
fig_inches
( allow_None=False, constant=False, default=4, instantiate=False, pickle_default_value=True, precedence=None, readonly=False ) - The overall matplotlib figure size in inches. May be set as an integer in which case it will be used to autocompute a size. Alternatively may be set with an explicit tuple or list, in which case it will be applied directly after being scaled by fig_size. If either the width or height is set to None, it will be computed automatically.
-
param Boolean
fig_latex
( allow_None=False, bounds=(0, 1), constant=False, default=False, instantiate=False, pickle_default_value=True, precedence=None, readonly=False ) - Whether to use LaTeX text in the overall figure.
-
param Dict
fig_rcparams
( allow_None=False, constant=False, default={}, instantiate=True, is_instance=True, pickle_default_value=True, precedence=None, readonly=False ) - matplotlib rc parameters to apply to the overall figure.
-
param Number
fig_size
( allow_None=False, bounds=(1, None), constant=False, default=100.0, inclusive_bounds=(True, True), instantiate=False, pickle_default_value=True, precedence=None, readonly=False, softbounds=None, time_dependent=False, time_fn=<Time Time00001> ) - Size relative to the supplied overall fig_inches in percent.
-
param HookList
initial_hooks
( allow_None=False, bounds=(0, None), constant=False, default=[], instantiate=True, pickle_default_value=True, precedence=None, readonly=False ) - Optional list of hooks called before plotting the data onto the axis. The hook is passed the plot object and the displayed object, other plotting handles can be accessed via plot.handles.
-
param HookList
final_hooks
( allow_None=False, bounds=(0, None), constant=False, default=[], instantiate=True, pickle_default_value=True, precedence=None, readonly=False ) - Optional list of hooks called when finalizing an axis. The hook is passed the plot object and the displayed object, other plotting handles can be accessed via plot.handles.
-
param HookList
finalize_hooks
( allow_None=False, bounds=(0, None), constant=False, default=[], instantiate=True, pickle_default_value=True, precedence=None, readonly=False ) - Optional list of hooks called when finalizing an axis. The hook is passed the plot object and the displayed object, other plotting handles can be accessed via plot.handles.
-
param String
sublabel_format
( allow_None=True, basestring=<class ‘str’>, constant=False, default=None, instantiate=False, pickle_default_value=True, precedence=None, readonly=False ) - Allows labeling the subaxes in each plot with various formatters including {Alpha}, {alpha}, {numeric} and {roman}.
-
param NumericTuple
sublabel_position
( allow_None=False, constant=False, default=(-0.35, 0.85), instantiate=False, length=2, pickle_default_value=True, precedence=None, readonly=False ) - Position relative to the plot for placing the optional subfigure label.
-
param Number
sublabel_size
( allow_None=False, bounds=None, constant=False, default=18, inclusive_bounds=(True, True), instantiate=False, pickle_default_value=True, precedence=None, readonly=False, softbounds=None, time_dependent=False, time_fn=<Time Time00001> ) - Size of optional subfigure label.
-
param Boolean
show_frame
( allow_None=False, bounds=(0, 1), constant=False, default=False, instantiate=False, pickle_default_value=True, precedence=None, readonly=False ) - Whether or not to show a complete frame around the plot.
-
param Boolean
apply_ranges
( allow_None=False, bounds=(0, 1), constant=False, default=True, instantiate=False, pickle_default_value=True, precedence=None, readonly=False ) - Whether to compute the plot bounds from the data itself.
-
param Boolean
apply_extents
( allow_None=False, bounds=(0, 1), constant=False, default=True, instantiate=False, pickle_default_value=True, precedence=None, readonly=False ) - Whether to apply extent overrides on the Elements
-
param Boolean
apply_ticks
( allow_None=False, bounds=(0, 1), constant=False, default=True, instantiate=False, pickle_default_value=True, precedence=None, readonly=False ) - Whether to apply custom ticks.
-
param Parameter
aspect
( allow_None=False, constant=False, default=square, instantiate=False, pickle_default_value=True, precedence=None, readonly=False ) - The aspect ratio mode of the plot. By default, a plot may select its own appropriate aspect ratio but sometimes it may be necessary to force a square aspect ratio (e.g. to display the plot as an element of a grid). The modes ‘auto’ and ‘equal’ correspond to the axis modes of the same name in matplotlib, a numeric value may also be passed.
-
param ClassSelector
bgcolor
( allow_None=True, constant=False, default=None, instantiate=True, is_instance=True, pickle_default_value=True, precedence=None, readonly=False ) - If set bgcolor overrides the background color of the axis.
-
param ObjectSelector
invert_axes
( allow_None=None, check_on_set=False, compute_default_fn=None, constant=False, default=False, instantiate=False, objects=[], pickle_default_value=True, precedence=None, readonly=False ) - Inverts the axes of the plot. Note that this parameter may not always be respected by all plots but should be respected by adjoined plots when appropriate.
-
param Boolean
invert_xaxis
( allow_None=False, bounds=(0, 1), constant=False, default=False, instantiate=False, pickle_default_value=True, precedence=None, readonly=False ) - Whether to invert the plot x-axis.
-
param Boolean
invert_yaxis
( allow_None=False, bounds=(0, 1), constant=False, default=False, instantiate=False, pickle_default_value=True, precedence=None, readonly=False ) - Whether to invert the plot y-axis.
-
param Boolean
invert_zaxis
( allow_None=False, bounds=(0, 1), constant=False, default=False, instantiate=False, pickle_default_value=True, precedence=None, readonly=False ) - Whether to invert the plot z-axis.
-
param List
labelled
( allow_None=False, bounds=(0, None), constant=False, default=[‘x’, ‘y’], instantiate=True, pickle_default_value=True, precedence=None, readonly=False ) - Whether to plot the ‘x’ and ‘y’ labels.
-
param Boolean
logx
( allow_None=False, bounds=(0, 1), constant=False, default=False, instantiate=False, pickle_default_value=True, precedence=None, readonly=False ) - Whether to apply log scaling to the x-axis of the Chart.
-
param Boolean
logy
( allow_None=False, bounds=(0, 1), constant=False, default=False, instantiate=False, pickle_default_value=True, precedence=None, readonly=False ) - Whether to apply log scaling to the y-axis of the Chart.
-
param Boolean
logz
( allow_None=False, bounds=(0, 1), constant=False, default=False, instantiate=False, pickle_default_value=True, precedence=None, readonly=False ) - Whether to apply log scaling to the y-axis of the Chart.
-
param Boolean
show_legend
( allow_None=False, bounds=(0, 1), constant=False, default=False, instantiate=False, pickle_default_value=True, precedence=None, readonly=False ) - Whether to show legend for the plot.
-
param Boolean
show_grid
( allow_None=False, bounds=(0, 1), constant=False, default=False, instantiate=False, pickle_default_value=True, precedence=None, readonly=False ) - Whether to show a Cartesian grid on the plot.
-
param ObjectSelector
xaxis
( allow_None=None, check_on_set=True, compute_default_fn=None, constant=False, default=bottom, instantiate=False, objects=[‘top’, ‘bottom’, ‘bare’, ‘top-bare’, ‘bottom-bare’, None], pickle_default_value=True, precedence=None, readonly=False ) - Whether and where to display the xaxis, bare options allow suppressing all axis labels including ticks and xlabel. Valid options are ‘top’, ‘bottom’, ‘bare’, ‘top-bare’ and ‘bottom-bare’.
-
param ObjectSelector
yaxis
( allow_None=None, check_on_set=True, compute_default_fn=None, constant=False, default=left, instantiate=False, objects=[‘left’, ‘right’, ‘bare’, ‘left-bare’, ‘right-bare’, None], pickle_default_value=True, precedence=None, readonly=False ) - Whether and where to display the yaxis, bare options allow suppressing all axis labels including ticks and ylabel. Valid options are ‘left’, ‘right’, ‘bare’ ‘left-bare’ and ‘right-bare’.
-
param Boolean
zaxis
( allow_None=False, bounds=(0, 1), constant=False, default=True, instantiate=False, pickle_default_value=True, precedence=None, readonly=False ) - Whether to display the z-axis.
-
param Parameter
xticks
( allow_None=True, constant=False, default=None, instantiate=False, pickle_default_value=True, precedence=None, readonly=False ) - Ticks along x-axis specified as an integer, explicit list of tick locations, list of tuples containing the locations and labels or a matplotlib tick locator object. If set to None default matplotlib ticking behavior is applied.
-
param Integer
xrotation
( allow_None=False, bounds=(0, 360), constant=False, default=0, inclusive_bounds=(True, True), instantiate=False, pickle_default_value=True, precedence=None, readonly=False, softbounds=None, time_dependent=False, time_fn=<Time Time00001> ) - Rotation angle of the xticks.
-
param Parameter
yticks
( allow_None=True, constant=False, default=None, instantiate=False, pickle_default_value=True, precedence=None, readonly=False ) - Ticks along y-axis specified as an integer, explicit list of tick locations, list of tuples containing the locations and labels or a matplotlib tick locator object. If set to None default matplotlib ticking behavior is applied.
-
param Integer
yrotation
( allow_None=False, bounds=(0, 360), constant=False, default=0, inclusive_bounds=(True, True), instantiate=False, pickle_default_value=True, precedence=None, readonly=False, softbounds=None, time_dependent=False, time_fn=<Time Time00001> ) - Rotation angle of the yticks.
-
param Integer
zrotation
( allow_None=False, bounds=(0, 360), constant=False, default=0, inclusive_bounds=(True, True), instantiate=False, pickle_default_value=True, precedence=None, readonly=False, softbounds=None, time_dependent=False, time_fn=<Time Time00001> ) - Rotation angle of the zticks.
-
param Parameter
zticks
( allow_None=True, constant=False, default=None, instantiate=False, pickle_default_value=True, precedence=None, readonly=False ) - Ticks along z-axis specified as an integer, explicit list of tick locations, list of tuples containing the locations and labels or a matplotlib tick locator object. If set to None default matplotlib ticking behavior is applied.
-
param Boolean
colorbar
( allow_None=False, bounds=(0, 1), constant=False, default=False, instantiate=False, pickle_default_value=True, precedence=None, readonly=False ) - Whether to draw a colorbar.
-
param Dict
clipping_colors
( allow_None=False, constant=False, default={}, instantiate=True, is_instance=True, pickle_default_value=True, precedence=None, readonly=False ) - Dictionary to specify colors for clipped values, allows setting color for NaN values and for values above and below the min and max value. The min, max or NaN color may specify an RGB(A) color as a color hex string of the form #FFFFFF or #FFFFFFFF or a length 3 or length 4 tuple specifying values in the range 0-1 or a named HTML color.
-
param Number
cbar_padding
( allow_None=False, bounds=None, constant=False, default=0.01, inclusive_bounds=(True, True), instantiate=False, pickle_default_value=True, precedence=None, readonly=False, softbounds=None, time_dependent=False, time_fn=<Time Time00001> ) - Padding between colorbar and other plots.
-
param Parameter
cbar_ticks
( allow_None=True, constant=False, default=None, instantiate=False, pickle_default_value=True, precedence=None, readonly=False ) - Ticks along colorbar-axis specified as an integer, explicit list of tick locations, list of tuples containing the locations and labels or a matplotlib tick locator object. If set to None default matplotlib ticking behavior is applied.
-
param Number
cbar_width
( allow_None=False, bounds=None, constant=False, default=0.05, inclusive_bounds=(True, True), instantiate=False, pickle_default_value=True, precedence=None, readonly=False, softbounds=None, time_dependent=False, time_fn=<Time Time00001> ) - Width of the colorbar as a fraction of the main plot
-
param Boolean
symmetric
( allow_None=False, bounds=(0, 1), constant=False, default=False, instantiate=False, pickle_default_value=True, precedence=None, readonly=False ) - Whether to make the colormap symmetric around zero.
-
param ClassSelector
color_index
( allow_None=True, constant=False, default=None, instantiate=True, is_instance=True, pickle_default_value=True, precedence=None, readonly=False ) - Index of the dimension from which the color will the drawn
-
anim
( start=0 , stop=None , fps=30 ) ¶ -
Method to return a matplotlib animation. The start and stop frames may be specified as well as the fps.
-
compute_ranges
( obj , key , ranges ) ¶ -
Given an object, a specific key and the normalization options this method will find the specified normalization options on the appropriate OptionTree, group the elements according to the selected normalization option (i.e. either per frame or over the whole animation) and finally compute the dimension ranges in each group. The new set of ranges is returned.
-
debug
( msg , *args , **kw ) ¶ -
Print msg merged with args as a debugging statement.
See Python’s logging module for details of message formatting.
-
defaults
( ) ¶ -
Return {parameter_name:parameter.default} for all non-constant Parameters.
Note that a Parameter for which instantiate==True has its default instantiated.
-
force_new_dynamic_value
= functools.partial(<function Parameterized.force_new_dynamic_value>, <class 'holoviews.plotting.mpl.graphs.GraphPlot'>) ¶
-
get_extents
( element , ranges ) [source] ¶ -
Extents are set to ‘’ and None because x-axis is categorical and y-axis auto-ranges.
-
get_param_values
( onlychanged=False ) ¶ -
Return a list of name,value pairs for all Parameters of this object.
If onlychanged is True, will only return values that are not equal to the default value.
-
get_value_generator
= functools.partial(<function Parameterized.get_value_generator>, <class 'holoviews.plotting.mpl.graphs.GraphPlot'>) ¶
-
get_zorder
( overlay , key , el ) ¶ -
Computes the z-order of element in the NdOverlay taking into account possible batching of elements.
-
init_comm
( ) ¶ -
Initializes comm and attaches streams.
-
inspect_value
= functools.partial(<function Parameterized.inspect_value>, <class 'holoviews.plotting.mpl.graphs.GraphPlot'>) ¶
-
matches
( spec ) ¶ -
Matches a specification against the current Plot.
-
message
( msg , *args , **kw ) ¶ -
Print msg merged with args as a message.
See Python’s logging module for details of message formatting.
-
params
( parameter_name=None ) ¶ -
Return the Parameters of this class as the dictionary {name: parameter_object}
Includes Parameters from this class and its superclasses.
-
pprint
( imports=None , prefix=' ' , unknown_value='<?>' , qualify=False , separator='' ) ¶ -
(Experimental) Pretty printed representation that may be evaluated with eval. See pprint() function for more details.
-
print_param_defaults
( ) ¶ -
Print the default values of all cls’s Parameters.
-
print_param_values
( ) ¶ -
Print the values of all this object’s Parameters.
-
push
( ) ¶ -
Pushes updated plot data via the Comm.
-
refresh
( **kwargs ) ¶ -
Refreshes the plot by rerendering it and then pushing the updated data if the plot has an associated Comm.
-
script_repr
( imports=[] , prefix=' ' ) ¶ -
Variant of __repr__ designed for generating a runnable script.
-
set_default
( param_name , value ) ¶ -
Set the default value of param_name.
Equivalent to setting param_name on the class.
-
set_dynamic_time_fn
= functools.partial(<function Parameterized.set_dynamic_time_fn>, <class 'holoviews.plotting.mpl.graphs.GraphPlot'>) ¶
-
set_param
= functools.partial(<function Parameterized.set_param>, <class 'holoviews.plotting.mpl.graphs.GraphPlot'>) ¶
-
state_pop
( ) ¶ -
Restore the most recently saved state.
See state_push() for more details.
-
state_push
( ) ¶ -
Save this instance’s state.
For Parameterized instances, this includes the state of dynamically generated values.
Subclasses that maintain short-term state should additionally save and restore that state using state_push() and state_pop().
Generally, this method is used by operations that need to test something without permanently altering the objects’ state.
-
teardown_handles
( ) ¶ -
If no custom update_handles method is supplied this method is called to tear down any previous handles before replacing them.
-
traverse
( fn=None , specs=None , full_breadth=True ) ¶ -
Traverses any nested DimensionedPlot returning a list of all plots that match the specs. The specs should be supplied as a list of either Plot types or callables, which should return a boolean given the plot class.
-
verbose
( msg , *args , **kw ) ¶ -
Print msg merged with args as a verbose message.
See Python’s logging module for details of message formatting.
-
warning
( msg , *args , **kw ) ¶ -
Print msg merged with args as a warning, unless module variable warnings_as_exceptions is True, then raise an Exception containing the arguments.
See Python’s logging module for details of message formatting.
-
param Parameter
path
Module
¶
-
class
holoviews.plotting.mpl.path.
PolygonPlot
( *args , **kwargs ) [source] ¶ -
Bases:
holoviews.plotting.mpl.path.ContourPlot
PolygonPlot draws the polygon paths in the supplied Polygons object. If the Polygon has an associated value the color of Polygons will be drawn from the supplied cmap, otherwise the supplied facecolor will apply. Facecolor also determines the color for non-finite values.
-
param Parameter
fontsize
( allow_None=True, constant=False, default=None, instantiate=False, pickle_default_value=True, precedence=None, readonly=False ) - Specifies various fontsizes of the displayed text. Finer control is available by supplying a dictionary where any unmentioned keys reverts to the default sizes, e.g: {‘ticks’:20, ‘title’:15, ‘ylabel’:5, ‘xlabel’:5, ‘legend’:8, ‘legend_title’:13} You can set the fontsize of both ‘ylabel’ and ‘xlabel’ together using the ‘labels’ key.
-
param Boolean
show_title
( allow_None=False, bounds=(0, 1), constant=False, default=True, instantiate=False, pickle_default_value=True, precedence=None, readonly=False ) - Whether to display the plot title.
-
param String
title_format
( allow_None=False, basestring=<class ‘str’>, constant=False, default={label} {group} {dimensions}, instantiate=False, pickle_default_value=True, precedence=None, readonly=False ) - The formatting string for the title of this plot, allows defining a label group separator and dimension labels.
-
param Boolean
normalize
( allow_None=False, bounds=(0, 1), constant=False, default=True, instantiate=False, pickle_default_value=True, precedence=None, readonly=False ) - Whether to compute ranges across all Elements at this level of plotting. Allows selecting normalization at different levels for nested data containers.
-
param Parameter
projection
( allow_None=True, constant=False, default=None, instantiate=False, pickle_default_value=True, precedence=None, readonly=False ) - The projection of the plot axis, default of None is equivalent to 2D plot, ‘3d’ and ‘polar’ are also supported by matplotlib by default. May also supply a custom projection that is either a matplotlib projection type or implements the _as_mpl_axes method.
-
param Number
fig_alpha
( allow_None=False, bounds=(0, 1), constant=False, default=1.0, inclusive_bounds=(True, True), instantiate=False, pickle_default_value=True, precedence=None, readonly=False, softbounds=None, time_dependent=False, time_fn=<Time Time00001> ) - Alpha of the overall figure background.
-
param NumericTuple
fig_bounds
( allow_None=False, constant=False, default=(0.15, 0.15, 0.85, 0.85), instantiate=False, length=4, pickle_default_value=True, precedence=None, readonly=False ) - The bounds of the overall figure as a 4-tuple of the form (left, bottom, right, top), defining the size of the border around the subplots.
-
param Parameter
fig_inches
( allow_None=False, constant=False, default=4, instantiate=False, pickle_default_value=True, precedence=None, readonly=False ) - The overall matplotlib figure size in inches. May be set as an integer in which case it will be used to autocompute a size. Alternatively may be set with an explicit tuple or list, in which case it will be applied directly after being scaled by fig_size. If either the width or height is set to None, it will be computed automatically.
-
param Boolean
fig_latex
( allow_None=False, bounds=(0, 1), constant=False, default=False, instantiate=False, pickle_default_value=True, precedence=None, readonly=False ) - Whether to use LaTeX text in the overall figure.
-
param Dict
fig_rcparams
( allow_None=False, constant=False, default={}, instantiate=True, is_instance=True, pickle_default_value=True, precedence=None, readonly=False ) - matplotlib rc parameters to apply to the overall figure.
-
param Number
fig_size
( allow_None=False, bounds=(1, None), constant=False, default=100.0, inclusive_bounds=(True, True), instantiate=False, pickle_default_value=True, precedence=None, readonly=False, softbounds=None, time_dependent=False, time_fn=<Time Time00001> ) - Size relative to the supplied overall fig_inches in percent.
-
param HookList
initial_hooks
( allow_None=False, bounds=(0, None), constant=False, default=[], instantiate=True, pickle_default_value=True, precedence=None, readonly=False ) - Optional list of hooks called before plotting the data onto the axis. The hook is passed the plot object and the displayed object, other plotting handles can be accessed via plot.handles.
-
param HookList
final_hooks
( allow_None=False, bounds=(0, None), constant=False, default=[], instantiate=True, pickle_default_value=True, precedence=None, readonly=False ) - Optional list of hooks called when finalizing an axis. The hook is passed the plot object and the displayed object, other plotting handles can be accessed via plot.handles.
-
param HookList
finalize_hooks
( allow_None=False, bounds=(0, None), constant=False, default=[], instantiate=True, pickle_default_value=True, precedence=None, readonly=False ) - Optional list of hooks called when finalizing an axis. The hook is passed the plot object and the displayed object, other plotting handles can be accessed via plot.handles.
-
param String
sublabel_format
( allow_None=True, basestring=<class ‘str’>, constant=False, default=None, instantiate=False, pickle_default_value=True, precedence=None, readonly=False ) - Allows labeling the subaxes in each plot with various formatters including {Alpha}, {alpha}, {numeric} and {roman}.
-
param NumericTuple
sublabel_position
( allow_None=False, constant=False, default=(-0.35, 0.85), instantiate=False, length=2, pickle_default_value=True, precedence=None, readonly=False ) - Position relative to the plot for placing the optional subfigure label.
-
param Number
sublabel_size
( allow_None=False, bounds=None, constant=False, default=18, inclusive_bounds=(True, True), instantiate=False, pickle_default_value=True, precedence=None, readonly=False, softbounds=None, time_dependent=False, time_fn=<Time Time00001> ) - Size of optional subfigure label.
-
param Boolean
show_frame
( allow_None=False, bounds=(0, 1), constant=False, default=False, instantiate=False, pickle_default_value=True, precedence=None, readonly=False ) - Whether or not to show a complete frame around the plot.
-
param Boolean
apply_ranges
( allow_None=False, bounds=(0, 1), constant=False, default=True, instantiate=False, pickle_default_value=True, precedence=None, readonly=False ) - Whether to compute the plot bounds from the data itself.
-
param Boolean
apply_extents
( allow_None=False, bounds=(0, 1), constant=False, default=True, instantiate=False, pickle_default_value=True, precedence=None, readonly=False ) - Whether to apply extent overrides on the Elements
-
param Boolean
apply_ticks
( allow_None=False, bounds=(0, 1), constant=False, default=True, instantiate=False, pickle_default_value=True, precedence=None, readonly=False ) - Whether to apply custom ticks.
-
param Parameter
aspect
( allow_None=False, constant=False, default=square, instantiate=False, pickle_default_value=True, precedence=None, readonly=False ) - PathPlots axes usually define single space so aspect of Paths follows aspect in data coordinates by default.
-
param ClassSelector
bgcolor
( allow_None=True, constant=False, default=None, instantiate=True, is_instance=True, pickle_default_value=True, precedence=None, readonly=False ) - If set bgcolor overrides the background color of the axis.
-
param ObjectSelector
invert_axes
( allow_None=None, check_on_set=False, compute_default_fn=None, constant=False, default=False, instantiate=False, objects=[], pickle_default_value=True, precedence=None, readonly=False ) - Inverts the axes of the plot. Note that this parameter may not always be respected by all plots but should be respected by adjoined plots when appropriate.
-
param Boolean
invert_xaxis
( allow_None=False, bounds=(0, 1), constant=False, default=False, instantiate=False, pickle_default_value=True, precedence=None, readonly=False ) - Whether to invert the plot x-axis.
-
param Boolean
invert_yaxis
( allow_None=False, bounds=(0, 1), constant=False, default=False, instantiate=False, pickle_default_value=True, precedence=None, readonly=False ) - Whether to invert the plot y-axis.
-
param Boolean
invert_zaxis
( allow_None=False, bounds=(0, 1), constant=False, default=False, instantiate=False, pickle_default_value=True, precedence=None, readonly=False ) - Whether to invert the plot z-axis.
-
param List
labelled
( allow_None=False, bounds=(0, None), constant=False, default=[‘x’, ‘y’], instantiate=True, pickle_default_value=True, precedence=None, readonly=False ) - Whether to plot the ‘x’ and ‘y’ labels.
-
param Boolean
logx
( allow_None=False, bounds=(0, 1), constant=False, default=False, instantiate=False, pickle_default_value=True, precedence=None, readonly=False ) - Whether to apply log scaling to the x-axis of the Chart.
-
param Boolean
logy
( allow_None=False, bounds=(0, 1), constant=False, default=False, instantiate=False, pickle_default_value=True, precedence=None, readonly=False ) - Whether to apply log scaling to the y-axis of the Chart.
-
param Boolean
logz
( allow_None=False, bounds=(0, 1), constant=False, default=False, instantiate=False, pickle_default_value=True, precedence=None, readonly=False ) - Whether to apply log scaling to the y-axis of the Chart.
-
param Boolean
show_legend
( allow_None=False, bounds=(0, 1), constant=False, default=False, instantiate=False, pickle_default_value=True, precedence=None, readonly=False ) - Whether to show legend for the plot.
-
param Boolean
show_grid
( allow_None=False, bounds=(0, 1), constant=False, default=False, instantiate=False, pickle_default_value=True, precedence=None, readonly=False ) - Whether to show a Cartesian grid on the plot.
-
param ObjectSelector
xaxis
( allow_None=None, check_on_set=True, compute_default_fn=None, constant=False, default=bottom, instantiate=False, objects=[‘top’, ‘bottom’, ‘bare’, ‘top-bare’, ‘bottom-bare’, None], pickle_default_value=True, precedence=None, readonly=False ) - Whether and where to display the xaxis, bare options allow suppressing all axis labels including ticks and xlabel. Valid options are ‘top’, ‘bottom’, ‘bare’, ‘top-bare’ and ‘bottom-bare’.
-
param ObjectSelector
yaxis
( allow_None=None, check_on_set=True, compute_default_fn=None, constant=False, default=left, instantiate=False, objects=[‘left’, ‘right’, ‘bare’, ‘left-bare’, ‘right-bare’, None], pickle_default_value=True, precedence=None, readonly=False ) - Whether and where to display the yaxis, bare options allow suppressing all axis labels including ticks and ylabel. Valid options are ‘left’, ‘right’, ‘bare’ ‘left-bare’ and ‘right-bare’.
-
param Boolean
zaxis
( allow_None=False, bounds=(0, 1), constant=False, default=True, instantiate=False, pickle_default_value=True, precedence=None, readonly=False ) - Whether to display the z-axis.
-
param Parameter
xticks
( allow_None=True, constant=False, default=None, instantiate=False, pickle_default_value=True, precedence=None, readonly=False ) - Ticks along x-axis specified as an integer, explicit list of tick locations, list of tuples containing the locations and labels or a matplotlib tick locator object. If set to None default matplotlib ticking behavior is applied.
-
param Integer
xrotation
( allow_None=False, bounds=(0, 360), constant=False, default=0, inclusive_bounds=(True, True), instantiate=False, pickle_default_value=True, precedence=None, readonly=False, softbounds=None, time_dependent=False, time_fn=<Time Time00001> ) - Rotation angle of the xticks.
-
param Parameter
yticks
( allow_None=True, constant=False, default=None, instantiate=False, pickle_default_value=True, precedence=None, readonly=False ) - Ticks along y-axis specified as an integer, explicit list of tick locations, list of tuples containing the locations and labels or a matplotlib tick locator object. If set to None default matplotlib ticking behavior is applied.
-
param Integer
yrotation
( allow_None=False, bounds=(0, 360), constant=False, default=0, inclusive_bounds=(True, True), instantiate=False, pickle_default_value=True, precedence=None, readonly=False, softbounds=None, time_dependent=False, time_fn=<Time Time00001> ) - Rotation angle of the yticks.
-
param Integer
zrotation
( allow_None=False, bounds=(0, 360), constant=False, default=0, inclusive_bounds=(True, True), instantiate=False, pickle_default_value=True, precedence=None, readonly=False, softbounds=None, time_dependent=False, time_fn=<Time Time00001> ) - Rotation angle of the zticks.
-
param Parameter
zticks
( allow_None=True, constant=False, default=None, instantiate=False, pickle_default_value=True, precedence=None, readonly=False ) - Ticks along z-axis specified as an integer, explicit list of tick locations, list of tuples containing the locations and labels or a matplotlib tick locator object. If set to None default matplotlib ticking behavior is applied.
-
param Boolean
colorbar
( allow_None=False, bounds=(0, 1), constant=False, default=False, instantiate=False, pickle_default_value=True, precedence=None, readonly=False ) - Whether to draw a colorbar.
-
param Dict
clipping_colors
( allow_None=False, constant=False, default={}, instantiate=True, is_instance=True, pickle_default_value=True, precedence=None, readonly=False ) - Dictionary to specify colors for clipped values, allows setting color for NaN values and for values above and below the min and max value. The min, max or NaN color may specify an RGB(A) color as a color hex string of the form #FFFFFF or #FFFFFFFF or a length 3 or length 4 tuple specifying values in the range 0-1 or a named HTML color.
-
param Number
cbar_padding
( allow_None=False, bounds=None, constant=False, default=0.01, inclusive_bounds=(True, True), instantiate=False, pickle_default_value=True, precedence=None, readonly=False, softbounds=None, time_dependent=False, time_fn=<Time Time00001> ) - Padding between colorbar and other plots.
-
param Parameter
cbar_ticks
( allow_None=True, constant=False, default=None, instantiate=False, pickle_default_value=True, precedence=None, readonly=False ) - Ticks along colorbar-axis specified as an integer, explicit list of tick locations, list of tuples containing the locations and labels or a matplotlib tick locator object. If set to None default matplotlib ticking behavior is applied.
-
param Number
cbar_width
( allow_None=False, bounds=None, constant=False, default=0.05, inclusive_bounds=(True, True), instantiate=False, pickle_default_value=True, precedence=None, readonly=False, softbounds=None, time_dependent=False, time_fn=<Time Time00001> ) - Width of the colorbar as a fraction of the main plot
-
param Boolean
symmetric
( allow_None=False, bounds=(0, 1), constant=False, default=False, instantiate=False, pickle_default_value=True, precedence=None, readonly=False ) - Whether to make the colormap symmetric around zero.
-
param ClassSelector
color_index
( allow_None=True, constant=False, default=0, instantiate=True, is_instance=True, pickle_default_value=True, precedence=None, readonly=False ) - Index of the dimension from which the color will the drawn
-
anim
( start=0 , stop=None , fps=30 ) ¶ -
Method to return a matplotlib animation. The start and stop frames may be specified as well as the fps.
-
compute_ranges
( obj , key , ranges ) ¶ -
Given an object, a specific key and the normalization options this method will find the specified normalization options on the appropriate OptionTree, group the elements according to the selected normalization option (i.e. either per frame or over the whole animation) and finally compute the dimension ranges in each group. The new set of ranges is returned.
-
debug
( msg , *args , **kw ) ¶ -
Print msg merged with args as a debugging statement.
See Python’s logging module for details of message formatting.
-
defaults
( ) ¶ -
Return {parameter_name:parameter.default} for all non-constant Parameters.
Note that a Parameter for which instantiate==True has its default instantiated.
-
force_new_dynamic_value
= functools.partial(<function Parameterized.force_new_dynamic_value>, <class 'holoviews.plotting.mpl.path.PolygonPlot'>) ¶
-
get_extents
( view , ranges ) ¶ -
Gets the extents for the axes from the current View. The globally computed ranges can optionally override the extents.
-
get_param_values
( onlychanged=False ) ¶ -
Return a list of name,value pairs for all Parameters of this object.
If onlychanged is True, will only return values that are not equal to the default value.
-
get_value_generator
= functools.partial(<function Parameterized.get_value_generator>, <class 'holoviews.plotting.mpl.path.PolygonPlot'>) ¶
-
get_zorder
( overlay , key , el ) ¶ -
Computes the z-order of element in the NdOverlay taking into account possible batching of elements.
-
init_comm
( ) ¶ -
Initializes comm and attaches streams.
-
inspect_value
= functools.partial(<function Parameterized.inspect_value>, <class 'holoviews.plotting.mpl.path.PolygonPlot'>) ¶
-
matches
( spec ) ¶ -
Matches a specification against the current Plot.
-
message
( msg , *args , **kw ) ¶ -
Print msg merged with args as a message.
See Python’s logging module for details of message formatting.
-
params
( parameter_name=None ) ¶ -
Return the Parameters of this class as the dictionary {name: parameter_object}
Includes Parameters from this class and its superclasses.
-
pprint
( imports=None , prefix=' ' , unknown_value='<?>' , qualify=False , separator='' ) ¶ -
(Experimental) Pretty printed representation that may be evaluated with eval. See pprint() function for more details.
-
print_param_defaults
( ) ¶ -
Print the default values of all cls’s Parameters.
-
print_param_values
( ) ¶ -
Print the values of all this object’s Parameters.
-
push
( ) ¶ -
Pushes updated plot data via the Comm.
-
refresh
( **kwargs ) ¶ -
Refreshes the plot by rerendering it and then pushing the updated data if the plot has an associated Comm.
-
script_repr
( imports=[] , prefix=' ' ) ¶ -
Variant of __repr__ designed for generating a runnable script.
-
set_default
( param_name , value ) ¶ -
Set the default value of param_name.
Equivalent to setting param_name on the class.
-
set_dynamic_time_fn
= functools.partial(<function Parameterized.set_dynamic_time_fn>, <class 'holoviews.plotting.mpl.path.PolygonPlot'>) ¶
-
set_param
= functools.partial(<function Parameterized.set_param>, <class 'holoviews.plotting.mpl.path.PolygonPlot'>) ¶
-
state_pop
( ) ¶ -
Restore the most recently saved state.
See state_push() for more details.
-
state_push
( ) ¶ -
Save this instance’s state.
For Parameterized instances, this includes the state of dynamically generated values.
Subclasses that maintain short-term state should additionally save and restore that state using state_push() and state_pop().
Generally, this method is used by operations that need to test something without permanently altering the objects’ state.
-
teardown_handles
( ) ¶ -
If no custom update_handles method is supplied this method is called to tear down any previous handles before replacing them.
-
traverse
( fn=None , specs=None , full_breadth=True ) ¶ -
Traverses any nested DimensionedPlot returning a list of all plots that match the specs. The specs should be supplied as a list of either Plot types or callables, which should return a boolean given the plot class.
-
verbose
( msg , *args , **kw ) ¶ -
Print msg merged with args as a verbose message.
See Python’s logging module for details of message formatting.
-
warning
( msg , *args , **kw ) ¶ -
Print msg merged with args as a warning, unless module variable warnings_as_exceptions is True, then raise an Exception containing the arguments.
See Python’s logging module for details of message formatting.
-
param Parameter
plot
Module
¶
-
class
holoviews.plotting.mpl.plot.
AdjointLayoutPlot
( layout , layout_type , subaxes , subplots , **params ) [source] ¶ -
Bases:
holoviews.plotting.mpl.plot.MPLPlot
LayoutPlot allows placing up to three Views in a number of predefined and fixed layouts, which are defined by the layout_dict class attribute. This allows placing subviews next to a main plot in either a ‘top’ or ‘right’ position.
Initially, a LayoutPlot computes an appropriate layout based for the number of Views in the AdjointLayout object it has been given, but when embedded in a NdLayout, it can recompute the layout to match the number of rows and columns as part of a larger grid.
-
param Parameter
fontsize
( allow_None=True, constant=False, default=None, instantiate=False, pickle_default_value=True, precedence=None, readonly=False ) - Specifies various fontsizes of the displayed text. Finer control is available by supplying a dictionary where any unmentioned keys reverts to the default sizes, e.g: {‘ticks’:20, ‘title’:15, ‘ylabel’:5, ‘xlabel’:5, ‘legend’:8, ‘legend_title’:13} You can set the fontsize of both ‘ylabel’ and ‘xlabel’ together using the ‘labels’ key.
-
param Boolean
show_title
( allow_None=False, bounds=(0, 1), constant=False, default=True, instantiate=False, pickle_default_value=True, precedence=None, readonly=False ) - Whether to display the plot title.
-
param String
title_format
( allow_None=False, basestring=<class ‘str’>, constant=False, default={label} {group} {dimensions}, instantiate=False, pickle_default_value=True, precedence=None, readonly=False ) - The formatting string for the title of this plot, allows defining a label group separator and dimension labels.
-
param Boolean
normalize
( allow_None=False, bounds=(0, 1), constant=False, default=True, instantiate=False, pickle_default_value=True, precedence=None, readonly=False ) - Whether to compute ranges across all Elements at this level of plotting. Allows selecting normalization at different levels for nested data containers.
-
param Parameter
projection
( allow_None=True, constant=False, default=None, instantiate=False, pickle_default_value=True, precedence=None, readonly=False ) - The projection of the plot axis, default of None is equivalent to 2D plot, ‘3d’ and ‘polar’ are also supported by matplotlib by default. May also supply a custom projection that is either a matplotlib projection type or implements the _as_mpl_axes method.
-
param Number
fig_alpha
( allow_None=False, bounds=(0, 1), constant=False, default=1.0, inclusive_bounds=(True, True), instantiate=False, pickle_default_value=True, precedence=None, readonly=False, softbounds=None, time_dependent=False, time_fn=<Time Time00001> ) - Alpha of the overall figure background.
-
param NumericTuple
fig_bounds
( allow_None=False, constant=False, default=(0.15, 0.15, 0.85, 0.85), instantiate=False, length=4, pickle_default_value=True, precedence=None, readonly=False ) - The bounds of the overall figure as a 4-tuple of the form (left, bottom, right, top), defining the size of the border around the subplots.
-
param Parameter
fig_inches
( allow_None=False, constant=False, default=4, instantiate=False, pickle_default_value=True, precedence=None, readonly=False ) - The overall matplotlib figure size in inches. May be set as an integer in which case it will be used to autocompute a size. Alternatively may be set with an explicit tuple or list, in which case it will be applied directly after being scaled by fig_size. If either the width or height is set to None, it will be computed automatically.
-
param Boolean
fig_latex
( allow_None=False, bounds=(0, 1), constant=False, default=False, instantiate=False, pickle_default_value=True, precedence=None, readonly=False ) - Whether to use LaTeX text in the overall figure.
-
param Dict
fig_rcparams
( allow_None=False, constant=False, default={}, instantiate=True, is_instance=True, pickle_default_value=True, precedence=None, readonly=False ) - matplotlib rc parameters to apply to the overall figure.
-
param Number
fig_size
( allow_None=False, bounds=(1, None), constant=False, default=100.0, inclusive_bounds=(True, True), instantiate=False, pickle_default_value=True, precedence=None, readonly=False, softbounds=None, time_dependent=False, time_fn=<Time Time00001> ) - Size relative to the supplied overall fig_inches in percent.
-
param HookList
initial_hooks
( allow_None=False, bounds=(0, None), constant=False, default=[], instantiate=True, pickle_default_value=True, precedence=None, readonly=False ) - Optional list of hooks called before plotting the data onto the axis. The hook is passed the plot object and the displayed object, other plotting handles can be accessed via plot.handles.
-
param HookList
final_hooks
( allow_None=False, bounds=(0, None), constant=False, default=[], instantiate=True, pickle_default_value=True, precedence=None, readonly=False ) - Optional list of hooks called when finalizing an axis. The hook is passed the plot object and the displayed object, other plotting handles can be accessed via plot.handles.
-
param HookList
finalize_hooks
( allow_None=False, bounds=(0, None), constant=False, default=[], instantiate=True, pickle_default_value=True, precedence=None, readonly=False ) - Optional list of hooks called when finalizing an axis. The hook is passed the plot object and the displayed object, other plotting handles can be accessed via plot.handles.
-
param String
sublabel_format
( allow_None=True, basestring=<class ‘str’>, constant=False, default=None, instantiate=False, pickle_default_value=True, precedence=None, readonly=False ) - Allows labeling the subaxes in each plot with various formatters including {Alpha}, {alpha}, {numeric} and {roman}.
-
param NumericTuple
sublabel_position
( allow_None=False, constant=False, default=(-0.35, 0.85), instantiate=False, length=2, pickle_default_value=True, precedence=None, readonly=False ) - Position relative to the plot for placing the optional subfigure label.
-
param Number
sublabel_size
( allow_None=False, bounds=None, constant=False, default=18, inclusive_bounds=(True, True), instantiate=False, pickle_default_value=True, precedence=None, readonly=False, softbounds=None, time_dependent=False, time_fn=<Time Time00001> ) - Size of optional subfigure label.
-
param Boolean
show_frame
( allow_None=False, bounds=(0, 1), constant=False, default=False, instantiate=False, pickle_default_value=True, precedence=None, readonly=False ) - Whether or not to show a complete frame around the plot.
-
adjust_positions
( redraw=True ) [source] ¶ -
Make adjustments to the positions of subplots (if available) relative to the main plot axes as required.
This method is called by LayoutPlot after an initial pass used to position all the Layouts together. This method allows LayoutPlots to make final adjustments to the axis positions.
-
anim
( start=0 , stop=None , fps=30 ) ¶ -
Method to return a matplotlib animation. The start and stop frames may be specified as well as the fps.
-
compute_ranges
( obj , key , ranges ) ¶ -
Given an object, a specific key and the normalization options this method will find the specified normalization options on the appropriate OptionTree, group the elements according to the selected normalization option (i.e. either per frame or over the whole animation) and finally compute the dimension ranges in each group. The new set of ranges is returned.
-
debug
( msg , *args , **kw ) ¶ -
Print msg merged with args as a debugging statement.
See Python’s logging module for details of message formatting.
-
defaults
( ) ¶ -
Return {parameter_name:parameter.default} for all non-constant Parameters.
Note that a Parameter for which instantiate==True has its default instantiated.
-
force_new_dynamic_value
= functools.partial(<function Parameterized.force_new_dynamic_value>, <class 'holoviews.plotting.mpl.plot.AdjointLayoutPlot'>) ¶
-
get_param_values
( onlychanged=False ) ¶ -
Return a list of name,value pairs for all Parameters of this object.
If onlychanged is True, will only return values that are not equal to the default value.
-
get_value_generator
= functools.partial(<function Parameterized.get_value_generator>, <class 'holoviews.plotting.mpl.plot.AdjointLayoutPlot'>) ¶
-
init_comm
( ) ¶ -
Initializes comm and attaches streams.
-
inspect_value
= functools.partial(<function Parameterized.inspect_value>, <class 'holoviews.plotting.mpl.plot.AdjointLayoutPlot'>) ¶
-
matches
( spec ) ¶ -
Matches a specification against the current Plot.
-
message
( msg , *args , **kw ) ¶ -
Print msg merged with args as a message.
See Python’s logging module for details of message formatting.
-
params
( parameter_name=None ) ¶ -
Return the Parameters of this class as the dictionary {name: parameter_object}
Includes Parameters from this class and its superclasses.
-
pprint
( imports=None , prefix=' ' , unknown_value='<?>' , qualify=False , separator='' ) ¶ -
(Experimental) Pretty printed representation that may be evaluated with eval. See pprint() function for more details.
-
print_param_defaults
( ) ¶ -
Print the default values of all cls’s Parameters.
-
print_param_values
( ) ¶ -
Print the values of all this object’s Parameters.
-
push
( ) ¶ -
Pushes updated plot data via the Comm.
-
refresh
( **kwargs ) ¶ -
Refreshes the plot by rerendering it and then pushing the updated data if the plot has an associated Comm.
-
script_repr
( imports=[] , prefix=' ' ) ¶ -
Variant of __repr__ designed for generating a runnable script.
-
set_default
( param_name , value ) ¶ -
Set the default value of param_name.
Equivalent to setting param_name on the class.
-
set_dynamic_time_fn
= functools.partial(<function Parameterized.set_dynamic_time_fn>, <class 'holoviews.plotting.mpl.plot.AdjointLayoutPlot'>) ¶
-
set_param
= functools.partial(<function Parameterized.set_param>, <class 'holoviews.plotting.mpl.plot.AdjointLayoutPlot'>) ¶
-
state_pop
( ) ¶ -
Restore the most recently saved state.
See state_push() for more details.
-
state_push
( ) ¶ -
Save this instance’s state.
For Parameterized instances, this includes the state of dynamically generated values.
Subclasses that maintain short-term state should additionally save and restore that state using state_push() and state_pop().
Generally, this method is used by operations that need to test something without permanently altering the objects’ state.
-
traverse
( fn=None , specs=None , full_breadth=True ) ¶ -
Traverses any nested DimensionedPlot returning a list of all plots that match the specs. The specs should be supplied as a list of either Plot types or callables, which should return a boolean given the plot class.
-
verbose
( msg , *args , **kw ) ¶ -
Print msg merged with args as a verbose message.
See Python’s logging module for details of message formatting.
-
warning
( msg , *args , **kw ) ¶ -
Print msg merged with args as a warning, unless module variable warnings_as_exceptions is True, then raise an Exception containing the arguments.
See Python’s logging module for details of message formatting.
-
param Parameter
-
class
holoviews.plotting.mpl.plot.
CompositePlot
( layout , keys=None , dimensions=None , **params ) [source] ¶ -
Bases:
holoviews.plotting.plot.GenericCompositePlot
,holoviews.plotting.mpl.plot.MPLPlot
CompositePlot provides a baseclass for plots coordinate multiple subplots to form a Layout.
-
param Parameter
fontsize
( allow_None=True, constant=False, default=None, instantiate=False, pickle_default_value=True, precedence=None, readonly=False ) - Specifies various fontsizes of the displayed text. Finer control is available by supplying a dictionary where any unmentioned keys reverts to the default sizes, e.g: {‘ticks’:20, ‘title’:15, ‘ylabel’:5, ‘xlabel’:5, ‘legend’:8, ‘legend_title’:13} You can set the fontsize of both ‘ylabel’ and ‘xlabel’ together using the ‘labels’ key.
-
param Boolean
show_title
( allow_None=False, bounds=(0, 1), constant=False, default=True, instantiate=False, pickle_default_value=True, precedence=None, readonly=False ) - Whether to display the plot title.
-
param String
title_format
( allow_None=False, basestring=<class ‘str’>, constant=False, default={label} {group} {dimensions}, instantiate=False, pickle_default_value=True, precedence=None, readonly=False ) - The formatting string for the title of this plot, allows defining a label group separator and dimension labels.
-
param Boolean
normalize
( allow_None=False, bounds=(0, 1), constant=False, default=True, instantiate=False, pickle_default_value=True, precedence=None, readonly=False ) - Whether to compute ranges across all Elements at this level of plotting. Allows selecting normalization at different levels for nested data containers.
-
param Parameter
projection
( allow_None=True, constant=False, default=None, instantiate=False, pickle_default_value=True, precedence=None, readonly=False ) - The projection of the plot axis, default of None is equivalent to 2D plot, ‘3d’ and ‘polar’ are also supported by matplotlib by default. May also supply a custom projection that is either a matplotlib projection type or implements the _as_mpl_axes method.
-
param Number
fig_alpha
( allow_None=False, bounds=(0, 1), constant=False, default=1.0, inclusive_bounds=(True, True), instantiate=False, pickle_default_value=True, precedence=None, readonly=False, softbounds=None, time_dependent=False, time_fn=<Time Time00001> ) - Alpha of the overall figure background.
-
param NumericTuple
fig_bounds
( allow_None=False, constant=False, default=(0.15, 0.15, 0.85, 0.85), instantiate=False, length=4, pickle_default_value=True, precedence=None, readonly=False ) - The bounds of the overall figure as a 4-tuple of the form (left, bottom, right, top), defining the size of the border around the subplots.
-
param Parameter
fig_inches
( allow_None=False, constant=False, default=4, instantiate=False, pickle_default_value=True, precedence=None, readonly=False ) - The overall matplotlib figure size in inches. May be set as an integer in which case it will be used to autocompute a size. Alternatively may be set with an explicit tuple or list, in which case it will be applied directly after being scaled by fig_size. If either the width or height is set to None, it will be computed automatically.
-
param Boolean
fig_latex
( allow_None=False, bounds=(0, 1), constant=False, default=False, instantiate=False, pickle_default_value=True, precedence=None, readonly=False ) - Whether to use LaTeX text in the overall figure.
-
param Dict
fig_rcparams
( allow_None=False, constant=False, default={}, instantiate=True, is_instance=True, pickle_default_value=True, precedence=None, readonly=False ) - matplotlib rc parameters to apply to the overall figure.
-
param Number
fig_size
( allow_None=False, bounds=(1, None), constant=False, default=100.0, inclusive_bounds=(True, True), instantiate=False, pickle_default_value=True, precedence=None, readonly=False, softbounds=None, time_dependent=False, time_fn=<Time Time00001> ) - Size relative to the supplied overall fig_inches in percent.
-
param HookList
initial_hooks
( allow_None=False, bounds=(0, None), constant=False, default=[], instantiate=True, pickle_default_value=True, precedence=None, readonly=False ) - Optional list of hooks called before plotting the data onto the axis. The hook is passed the plot object and the displayed object, other plotting handles can be accessed via plot.handles.
-
param HookList
final_hooks
( allow_None=False, bounds=(0, None), constant=False, default=[], instantiate=True, pickle_default_value=True, precedence=None, readonly=False ) - Optional list of hooks called when finalizing an axis. The hook is passed the plot object and the displayed object, other plotting handles can be accessed via plot.handles.
-
param HookList
finalize_hooks
( allow_None=False, bounds=(0, None), constant=False, default=[], instantiate=True, pickle_default_value=True, precedence=None, readonly=False ) - Optional list of hooks called when finalizing an axis. The hook is passed the plot object and the displayed object, other plotting handles can be accessed via plot.handles.
-
param String
sublabel_format
( allow_None=True, basestring=<class ‘str’>, constant=False, default=None, instantiate=False, pickle_default_value=True, precedence=None, readonly=False ) - Allows labeling the subaxes in each plot with various formatters including {Alpha}, {alpha}, {numeric} and {roman}.
-
param NumericTuple
sublabel_position
( allow_None=False, constant=False, default=(-0.35, 0.85), instantiate=False, length=2, pickle_default_value=True, precedence=None, readonly=False ) - Position relative to the plot for placing the optional subfigure label.
-
param Number
sublabel_size
( allow_None=False, bounds=None, constant=False, default=18, inclusive_bounds=(True, True), instantiate=False, pickle_default_value=True, precedence=None, readonly=False, softbounds=None, time_dependent=False, time_fn=<Time Time00001> ) - Size of optional subfigure label.
-
param Boolean
show_frame
( allow_None=False, bounds=(0, 1), constant=False, default=False, instantiate=False, pickle_default_value=True, precedence=None, readonly=False ) - Whether or not to show a complete frame around the plot.
-
anim
( start=0 , stop=None , fps=30 ) ¶ -
Method to return a matplotlib animation. The start and stop frames may be specified as well as the fps.
-
compute_ranges
( obj , key , ranges ) ¶ -
Given an object, a specific key and the normalization options this method will find the specified normalization options on the appropriate OptionTree, group the elements according to the selected normalization option (i.e. either per frame or over the whole animation) and finally compute the dimension ranges in each group. The new set of ranges is returned.
-
debug
( msg , *args , **kw ) ¶ -
Print msg merged with args as a debugging statement.
See Python’s logging module for details of message formatting.
-
defaults
( ) ¶ -
Return {parameter_name:parameter.default} for all non-constant Parameters.
Note that a Parameter for which instantiate==True has its default instantiated.
-
force_new_dynamic_value
= functools.partial(<function Parameterized.force_new_dynamic_value>, <class 'holoviews.plotting.mpl.plot.CompositePlot'>) ¶
-
get_param_values
( onlychanged=False ) ¶ -
Return a list of name,value pairs for all Parameters of this object.
If onlychanged is True, will only return values that are not equal to the default value.
-
get_value_generator
= functools.partial(<function Parameterized.get_value_generator>, <class 'holoviews.plotting.mpl.plot.CompositePlot'>) ¶
-
init_comm
( ) ¶ -
Initializes comm and attaches streams.
-
initialize_plot
( ranges=None ) ¶ -
Initialize the matplotlib figure.
-
inspect_value
= functools.partial(<function Parameterized.inspect_value>, <class 'holoviews.plotting.mpl.plot.CompositePlot'>) ¶
-
matches
( spec ) ¶ -
Matches a specification against the current Plot.
-
message
( msg , *args , **kw ) ¶ -
Print msg merged with args as a message.
See Python’s logging module for details of message formatting.
-
params
( parameter_name=None ) ¶ -
Return the Parameters of this class as the dictionary {name: parameter_object}
Includes Parameters from this class and its superclasses.
-
pprint
( imports=None , prefix=' ' , unknown_value='<?>' , qualify=False , separator='' ) ¶ -
(Experimental) Pretty printed representation that may be evaluated with eval. See pprint() function for more details.
-
print_param_defaults
( ) ¶ -
Print the default values of all cls’s Parameters.
-
print_param_values
( ) ¶ -
Print the values of all this object’s Parameters.
-
push
( ) ¶ -
Pushes updated plot data via the Comm.
-
refresh
( **kwargs ) ¶ -
Refreshes the plot by rerendering it and then pushing the updated data if the plot has an associated Comm.
-
script_repr
( imports=[] , prefix=' ' ) ¶ -
Variant of __repr__ designed for generating a runnable script.
-
set_default
( param_name , value ) ¶ -
Set the default value of param_name.
Equivalent to setting param_name on the class.
-
set_dynamic_time_fn
= functools.partial(<function Parameterized.set_dynamic_time_fn>, <class 'holoviews.plotting.mpl.plot.CompositePlot'>) ¶
-
set_param
= functools.partial(<function Parameterized.set_param>, <class 'holoviews.plotting.mpl.plot.CompositePlot'>) ¶
-
state_pop
( ) ¶ -
Restore the most recently saved state.
See state_push() for more details.
-
state_push
( ) ¶ -
Save this instance’s state.
For Parameterized instances, this includes the state of dynamically generated values.
Subclasses that maintain short-term state should additionally save and restore that state using state_push() and state_pop().
Generally, this method is used by operations that need to test something without permanently altering the objects’ state.
-
traverse
( fn=None , specs=None , full_breadth=True ) ¶ -
Traverses any nested DimensionedPlot returning a list of all plots that match the specs. The specs should be supplied as a list of either Plot types or callables, which should return a boolean given the plot class.
-
verbose
( msg , *args , **kw ) ¶ -
Print msg merged with args as a verbose message.
See Python’s logging module for details of message formatting.
-
warning
( msg , *args , **kw ) ¶ -
Print msg merged with args as a warning, unless module variable warnings_as_exceptions is True, then raise an Exception containing the arguments.
See Python’s logging module for details of message formatting.
-
param Parameter
-
class
holoviews.plotting.mpl.plot.
GridPlot
( layout , axis=None , create_axes=True , ranges=None , layout_num=1 , keys=None , **params ) [source] ¶ -
Bases:
holoviews.plotting.mpl.plot.CompositePlot
Plot a group of elements in a grid layout based on a GridSpace element object.
-
param Parameter
fontsize
( allow_None=True, constant=False, default=None, instantiate=False, pickle_default_value=True, precedence=None, readonly=False ) - Specifies various fontsizes of the displayed text. Finer control is available by supplying a dictionary where any unmentioned keys reverts to the default sizes, e.g: {‘ticks’:20, ‘title’:15, ‘ylabel’:5, ‘xlabel’:5, ‘legend’:8, ‘legend_title’:13} You can set the fontsize of both ‘ylabel’ and ‘xlabel’ together using the ‘labels’ key.
-
param Boolean
show_title
( allow_None=False, bounds=(0, 1), constant=False, default=True, instantiate=False, pickle_default_value=True, precedence=None, readonly=False ) - Whether to display the plot title.
-
param String
title_format
( allow_None=False, basestring=<class ‘str’>, constant=False, default={label} {group} {dimensions}, instantiate=False, pickle_default_value=True, precedence=None, readonly=False ) - The formatting string for the title of this plot, allows defining a label group separator and dimension labels.
-
param Boolean
normalize
( allow_None=False, bounds=(0, 1), constant=False, default=True, instantiate=False, pickle_default_value=True, precedence=None, readonly=False ) - Whether to compute ranges across all Elements at this level of plotting. Allows selecting normalization at different levels for nested data containers.
-
param Parameter
projection
( allow_None=True, constant=False, default=None, instantiate=False, pickle_default_value=True, precedence=None, readonly=False ) - The projection of the plot axis, default of None is equivalent to 2D plot, ‘3d’ and ‘polar’ are also supported by matplotlib by default. May also supply a custom projection that is either a matplotlib projection type or implements the _as_mpl_axes method.
-
param Number
fig_alpha
( allow_None=False, bounds=(0, 1), constant=False, default=1.0, inclusive_bounds=(True, True), instantiate=False, pickle_default_value=True, precedence=None, readonly=False, softbounds=None, time_dependent=False, time_fn=<Time Time00001> ) - Alpha of the overall figure background.
-
param NumericTuple
fig_bounds
( allow_None=False, constant=False, default=(0.15, 0.15, 0.85, 0.85), instantiate=False, length=4, pickle_default_value=True, precedence=None, readonly=False ) - The bounds of the overall figure as a 4-tuple of the form (left, bottom, right, top), defining the size of the border around the subplots.
-
param Parameter
fig_inches
( allow_None=False, constant=False, default=4, instantiate=False, pickle_default_value=True, precedence=None, readonly=False ) - The overall matplotlib figure size in inches. May be set as an integer in which case it will be used to autocompute a size. Alternatively may be set with an explicit tuple or list, in which case it will be applied directly after being scaled by fig_size. If either the width or height is set to None, it will be computed automatically.
-
param Boolean
fig_latex
( allow_None=False, bounds=(0, 1), constant=False, default=False, instantiate=False, pickle_default_value=True, precedence=None, readonly=False ) - Whether to use LaTeX text in the overall figure.
-
param Dict
fig_rcparams
( allow_None=False, constant=False, default={}, instantiate=True, is_instance=True, pickle_default_value=True, precedence=None, readonly=False ) - matplotlib rc parameters to apply to the overall figure.
-
param Number
fig_size
( allow_None=False, bounds=(1, None), constant=False, default=100.0, inclusive_bounds=(True, True), instantiate=False, pickle_default_value=True, precedence=None, readonly=False, softbounds=None, time_dependent=False, time_fn=<Time Time00001> ) - Size relative to the supplied overall fig_inches in percent.
-
param HookList
initial_hooks
( allow_None=False, bounds=(0, None), constant=False, default=[], instantiate=True, pickle_default_value=True, precedence=None, readonly=False ) - Optional list of hooks called before plotting the data onto the axis. The hook is passed the plot object and the displayed object, other plotting handles can be accessed via plot.handles.
-
param HookList
final_hooks
( allow_None=False, bounds=(0, None), constant=False, default=[], instantiate=True, pickle_default_value=True, precedence=None, readonly=False ) - Optional list of hooks called when finalizing an axis. The hook is passed the plot object and the displayed object, other plotting handles can be accessed via plot.handles.
-
param HookList
finalize_hooks
( allow_None=False, bounds=(0, None), constant=False, default=[], instantiate=True, pickle_default_value=True, precedence=None, readonly=False ) - Optional list of hooks called when finalizing an axis. The hook is passed the plot object and the displayed object, other plotting handles can be accessed via plot.handles.
-
param String
sublabel_format
( allow_None=True, basestring=<class ‘str’>, constant=False, default=None, instantiate=False, pickle_default_value=True, precedence=None, readonly=False ) - Allows labeling the subaxes in each plot with various formatters including {Alpha}, {alpha}, {numeric} and {roman}.
-
param NumericTuple
sublabel_position
( allow_None=False, constant=False, default=(-0.35, 0.85), instantiate=False, length=2, pickle_default_value=True, precedence=None, readonly=False ) - Position relative to the plot for placing the optional subfigure label.
-
param Number
sublabel_size
( allow_None=False, bounds=None, constant=False, default=18, inclusive_bounds=(True, True), instantiate=False, pickle_default_value=True, precedence=None, readonly=False, softbounds=None, time_dependent=False, time_fn=<Time Time00001> ) - Size of optional subfigure label.
-
param Boolean
show_frame
( allow_None=False, bounds=(0, 1), constant=False, default=False, instantiate=False, pickle_default_value=True, precedence=None, readonly=False ) - Whether or not to show a complete frame around the plot.
-
param Parameter
aspect
( allow_None=False, constant=False, default=equal, instantiate=False, pickle_default_value=True, precedence=None, readonly=False ) - Aspect ratios on GridPlot should be automatically determined.
-
param Number
padding
( allow_None=False, bounds=None, constant=False, default=0.1, inclusive_bounds=(True, True), instantiate=False, pickle_default_value=True, precedence=None, readonly=False, softbounds=None, time_dependent=False, time_fn=<Time Time00001> ) - The amount of padding as a fraction of the total Grid size
-
param Boolean
shared_xaxis
( allow_None=False, bounds=(0, 1), constant=False, default=False, instantiate=False, pickle_default_value=True, precedence=None, readonly=False ) - If enabled the x-axes of the GridSpace will be drawn from the objects inside the Grid rather than the GridSpace dimensions.
-
param Boolean
shared_yaxis
( allow_None=False, bounds=(0, 1), constant=False, default=False, instantiate=False, pickle_default_value=True, precedence=None, readonly=False ) - If enabled the x-axes of the GridSpace will be drawn from the objects inside the Grid rather than the GridSpace dimensions.
-
param Boolean
show_legend
( allow_None=False, bounds=(0, 1), constant=False, default=False, instantiate=False, pickle_default_value=True, precedence=None, readonly=False ) - Legends add to much clutter in a grid and are disabled by default.
-
param ObjectSelector
xaxis
( allow_None=None, check_on_set=True, compute_default_fn=None, constant=False, default=bottom, instantiate=False, objects=[‘bottom’, ‘top’, None], pickle_default_value=True, precedence=None, readonly=False ) - Whether and where to display the xaxis, supported options are ‘bottom’, ‘top’ and None.
-
param ObjectSelector
yaxis
( allow_None=None, check_on_set=True, compute_default_fn=None, constant=False, default=left, instantiate=False, objects=[‘left’, ‘right’, None], pickle_default_value=True, precedence=None, readonly=False ) - Whether and where to display the yaxis, supported options are ‘left’, ‘right’ and None.
-
param Integer
xrotation
( allow_None=False, bounds=(0, 360), constant=False, default=0, inclusive_bounds=(True, True), instantiate=False, pickle_default_value=True, precedence=None, readonly=False, softbounds=None, time_dependent=False, time_fn=<Time Time00001> ) - Rotation angle of the xticks.
-
param Integer
yrotation
( allow_None=False, bounds=(0, 360), constant=False, default=0, inclusive_bounds=(True, True), instantiate=False, pickle_default_value=True, precedence=None, readonly=False, softbounds=None, time_dependent=False, time_fn=<Time Time00001> ) - Rotation angle of the yticks.
-
anim
( start=0 , stop=None , fps=30 ) ¶ -
Method to return a matplotlib animation. The start and stop frames may be specified as well as the fps.
-
compute_ranges
( obj , key , ranges ) ¶ -
Given an object, a specific key and the normalization options this method will find the specified normalization options on the appropriate OptionTree, group the elements according to the selected normalization option (i.e. either per frame or over the whole animation) and finally compute the dimension ranges in each group. The new set of ranges is returned.
-
debug
( msg , *args , **kw ) ¶ -
Print msg merged with args as a debugging statement.
See Python’s logging module for details of message formatting.
-
defaults
( ) ¶ -
Return {parameter_name:parameter.default} for all non-constant Parameters.
Note that a Parameter for which instantiate==True has its default instantiated.
-
force_new_dynamic_value
= functools.partial(<function Parameterized.force_new_dynamic_value>, <class 'holoviews.plotting.mpl.plot.GridPlot'>) ¶
-
get_param_values
( onlychanged=False ) ¶ -
Return a list of name,value pairs for all Parameters of this object.
If onlychanged is True, will only return values that are not equal to the default value.
-
get_value_generator
= functools.partial(<function Parameterized.get_value_generator>, <class 'holoviews.plotting.mpl.plot.GridPlot'>) ¶
-
init_comm
( ) ¶ -
Initializes comm and attaches streams.
-
inspect_value
= functools.partial(<function Parameterized.inspect_value>, <class 'holoviews.plotting.mpl.plot.GridPlot'>) ¶
-
matches
( spec ) ¶ -
Matches a specification against the current Plot.
-
message
( msg , *args , **kw ) ¶ -
Print msg merged with args as a message.
See Python’s logging module for details of message formatting.
-
params
( parameter_name=None ) ¶ -
Return the Parameters of this class as the dictionary {name: parameter_object}
Includes Parameters from this class and its superclasses.
-
pprint
( imports=None , prefix=' ' , unknown_value='<?>' , qualify=False , separator='' ) ¶ -
(Experimental) Pretty printed representation that may be evaluated with eval. See pprint() function for more details.
-
print_param_defaults
( ) ¶ -
Print the default values of all cls’s Parameters.
-
print_param_values
( ) ¶ -
Print the values of all this object’s Parameters.
-
push
( ) ¶ -
Pushes updated plot data via the Comm.
-
refresh
( **kwargs ) ¶ -
Refreshes the plot by rerendering it and then pushing the updated data if the plot has an associated Comm.
-
script_repr
( imports=[] , prefix=' ' ) ¶ -
Variant of __repr__ designed for generating a runnable script.
-
set_default
( param_name , value ) ¶ -
Set the default value of param_name.
Equivalent to setting param_name on the class.
-
set_dynamic_time_fn
= functools.partial(<function Parameterized.set_dynamic_time_fn>, <class 'holoviews.plotting.mpl.plot.GridPlot'>) ¶
-
set_param
= functools.partial(<function Parameterized.set_param>, <class 'holoviews.plotting.mpl.plot.GridPlot'>) ¶
-
state_pop
( ) ¶ -
Restore the most recently saved state.
See state_push() for more details.
-
state_push
( ) ¶ -
Save this instance’s state.
For Parameterized instances, this includes the state of dynamically generated values.
Subclasses that maintain short-term state should additionally save and restore that state using state_push() and state_pop().
Generally, this method is used by operations that need to test something without permanently altering the objects’ state.
-
traverse
( fn=None , specs=None , full_breadth=True ) ¶ -
Traverses any nested DimensionedPlot returning a list of all plots that match the specs. The specs should be supplied as a list of either Plot types or callables, which should return a boolean given the plot class.
-
verbose
( msg , *args , **kw ) ¶ -
Print msg merged with args as a verbose message.
See Python’s logging module for details of message formatting.
-
warning
( msg , *args , **kw ) ¶ -
Print msg merged with args as a warning, unless module variable warnings_as_exceptions is True, then raise an Exception containing the arguments.
See Python’s logging module for details of message formatting.
-
param Parameter
-
class
holoviews.plotting.mpl.plot.
LayoutPlot
( layout , keys=None , **params ) [source] ¶ -
Bases:
holoviews.plotting.plot.GenericLayoutPlot
,holoviews.plotting.mpl.plot.CompositePlot
A LayoutPlot accepts either a Layout or a NdLayout and displays the elements in a cartesian grid in scanline order.
-
param Parameter
fontsize
( allow_None=True, constant=False, default={‘title’: 16}, instantiate=False, pickle_default_value=True, precedence=None, readonly=False ) - Specifies various fontsizes of the displayed text. Finer control is available by supplying a dictionary where any unmentioned keys reverts to the default sizes, e.g: {‘ticks’:20, ‘title’:15, ‘ylabel’:5, ‘xlabel’:5, ‘legend’:8, ‘legend_title’:13} You can set the fontsize of both ‘ylabel’ and ‘xlabel’ together using the ‘labels’ key.
-
param Boolean
show_title
( allow_None=False, bounds=(0, 1), constant=False, default=True, instantiate=False, pickle_default_value=True, precedence=None, readonly=False ) - Whether to display the plot title.
-
param String
title_format
( allow_None=False, basestring=<class ‘str’>, constant=False, default={label} {group} {dimensions}, instantiate=False, pickle_default_value=True, precedence=None, readonly=False ) - The formatting string for the title of this plot, allows defining a label group separator and dimension labels.
-
param Boolean
normalize
( allow_None=False, bounds=(0, 1), constant=False, default=True, instantiate=False, pickle_default_value=True, precedence=None, readonly=False ) - Whether to compute ranges across all Elements at this level of plotting. Allows selecting normalization at different levels for nested data containers.
-
param Parameter
projection
( allow_None=True, constant=False, default=None, instantiate=False, pickle_default_value=True, precedence=None, readonly=False ) - The projection of the plot axis, default of None is equivalent to 2D plot, ‘3d’ and ‘polar’ are also supported by matplotlib by default. May also supply a custom projection that is either a matplotlib projection type or implements the _as_mpl_axes method.
-
param Number
fig_alpha
( allow_None=False, bounds=(0, 1), constant=False, default=1.0, inclusive_bounds=(True, True), instantiate=False, pickle_default_value=True, precedence=None, readonly=False, softbounds=None, time_dependent=False, time_fn=<Time Time00001> ) - Alpha of the overall figure background.
-
param NumericTuple
fig_bounds
( allow_None=False, constant=False, default=(0.05, 0.05, 0.95, 0.95), instantiate=False, length=4, pickle_default_value=True, precedence=None, readonly=False ) - The bounds of the figure as a 4-tuple of the form (left, bottom, right, top), defining the size of the border around the subplots.
-
param Parameter
fig_inches
( allow_None=False, constant=False, default=4, instantiate=False, pickle_default_value=True, precedence=None, readonly=False ) - The overall matplotlib figure size in inches. May be set as an integer in which case it will be used to autocompute a size. Alternatively may be set with an explicit tuple or list, in which case it will be applied directly after being scaled by fig_size. If either the width or height is set to None, it will be computed automatically.
-
param Boolean
fig_latex
( allow_None=False, bounds=(0, 1), constant=False, default=False, instantiate=False, pickle_default_value=True, precedence=None, readonly=False ) - Whether to use LaTeX text in the overall figure.
-
param Dict
fig_rcparams
( allow_None=False, constant=False, default={}, instantiate=True, is_instance=True, pickle_default_value=True, precedence=None, readonly=False ) - matplotlib rc parameters to apply to the overall figure.
-
param Number
fig_size
( allow_None=False, bounds=(1, None), constant=False, default=100.0, inclusive_bounds=(True, True), instantiate=False, pickle_default_value=True, precedence=None, readonly=False, softbounds=None, time_dependent=False, time_fn=<Time Time00001> ) - Size relative to the supplied overall fig_inches in percent.
-
param HookList
initial_hooks
( allow_None=False, bounds=(0, None), constant=False, default=[], instantiate=True, pickle_default_value=True, precedence=None, readonly=False ) - Optional list of hooks called before plotting the data onto the axis. The hook is passed the plot object and the displayed object, other plotting handles can be accessed via plot.handles.
-
param HookList
final_hooks
( allow_None=False, bounds=(0, None), constant=False, default=[], instantiate=True, pickle_default_value=True, precedence=None, readonly=False ) - Optional list of hooks called when finalizing an axis. The hook is passed the plot object and the displayed object, other plotting handles can be accessed via plot.handles.
-
param HookList
finalize_hooks
( allow_None=False, bounds=(0, None), constant=False, default=[], instantiate=True, pickle_default_value=True, precedence=None, readonly=False ) - Optional list of hooks called when finalizing an axis. The hook is passed the plot object and the displayed object, other plotting handles can be accessed via plot.handles.
-
param String
sublabel_format
( allow_None=True, basestring=<class ‘str’>, constant=False, default=None, instantiate=False, pickle_default_value=True, precedence=None, readonly=False ) - Allows labeling the subaxes in each plot with various formatters including {Alpha}, {alpha}, {numeric} and {roman}.
-
param NumericTuple
sublabel_position
( allow_None=False, constant=False, default=(-0.35, 0.85), instantiate=False, length=2, pickle_default_value=True, precedence=None, readonly=False ) - Position relative to the plot for placing the optional subfigure label.
-
param Number
sublabel_size
( allow_None=False, bounds=None, constant=False, default=18, inclusive_bounds=(True, True), instantiate=False, pickle_default_value=True, precedence=None, readonly=False, softbounds=None, time_dependent=False, time_fn=<Time Time00001> ) - Size of optional subfigure label.
-
param Boolean
show_frame
( allow_None=False, bounds=(0, 1), constant=False, default=False, instantiate=False, pickle_default_value=True, precedence=None, readonly=False ) - Whether or not to show a complete frame around the plot.
-
param Boolean
transpose
( allow_None=False, bounds=(0, 1), constant=False, default=False, instantiate=False, pickle_default_value=True, precedence=None, readonly=False ) - Whether to transpose the layout when plotting. Switches from row-based left-to-right and top-to-bottom scanline order to column-based top-to-bottom and left-to-right order.
-
param ObjectSelector
absolute_scaling
( allow_None=None, check_on_set=False, compute_default_fn=None, constant=False, default=False, instantiate=False, objects=[], pickle_default_value=True, precedence=None, readonly=False ) - If aspect_weight is enabled absolute_scaling determines whether axes are scaled relative to the widest plot or whether the aspect scales the axes in absolute terms.
-
param Number
aspect_weight
( allow_None=False, bounds=None, constant=False, default=0, inclusive_bounds=(True, True), instantiate=False, pickle_default_value=True, precedence=None, readonly=False, softbounds=None, time_dependent=False, time_fn=<Time Time00001> ) - Weighting of the individual aspects when computing the Layout grid aspects and overall figure size.
-
param Boolean
tight
( allow_None=False, bounds=(0, 1), constant=False, default=False, instantiate=False, pickle_default_value=True, precedence=None, readonly=False ) - Tightly fit the axes in the layout within the fig_bounds and tight_padding.
-
param Parameter
tight_padding
( allow_None=False, constant=False, default=3, instantiate=False, pickle_default_value=True, precedence=None, readonly=False ) - Integer or tuple specifying the padding in inches in a tight layout.
-
param Number
hspace
( allow_None=False, bounds=None, constant=False, default=0.5, inclusive_bounds=(True, True), instantiate=False, pickle_default_value=True, precedence=None, readonly=False, softbounds=None, time_dependent=False, time_fn=<Time Time00001> ) - Specifies the space between horizontally adjacent elements in the grid. Default value is set conservatively to avoid overlap of subplots.
-
param Number
vspace
( allow_None=False, bounds=None, constant=False, default=0.3, inclusive_bounds=(True, True), instantiate=False, pickle_default_value=True, precedence=None, readonly=False, softbounds=None, time_dependent=False, time_fn=<Time Time00001> ) - Specifies the space between vertically adjacent elements in the grid. Default value is set conservatively to avoid overlap of subplots.
-
anim
( start=0 , stop=None , fps=30 ) ¶ -
Method to return a matplotlib animation. The start and stop frames may be specified as well as the fps.
-
compute_ranges
( obj , key , ranges ) ¶ -
Given an object, a specific key and the normalization options this method will find the specified normalization options on the appropriate OptionTree, group the elements according to the selected normalization option (i.e. either per frame or over the whole animation) and finally compute the dimension ranges in each group. The new set of ranges is returned.
-
debug
( msg , *args , **kw ) ¶ -
Print msg merged with args as a debugging statement.
See Python’s logging module for details of message formatting.
-
defaults
( ) ¶ -
Return {parameter_name:parameter.default} for all non-constant Parameters.
Note that a Parameter for which instantiate==True has its default instantiated.
-
force_new_dynamic_value
= functools.partial(<function Parameterized.force_new_dynamic_value>, <class 'holoviews.plotting.mpl.plot.LayoutPlot'>) ¶
-
get_param_values
( onlychanged=False ) ¶ -
Return a list of name,value pairs for all Parameters of this object.
If onlychanged is True, will only return values that are not equal to the default value.
-
get_value_generator
= functools.partial(<function Parameterized.get_value_generator>, <class 'holoviews.plotting.mpl.plot.LayoutPlot'>) ¶
-
grid_situate
( current_idx , layout_type , subgrid_width ) [source] ¶ -
Situate the current AdjointLayoutPlot in a LayoutPlot. The LayoutPlot specifies a layout_type into which the AdjointLayoutPlot must be embedded. This enclosing layout is guaranteed to have enough cells to display all the views.
Based on this enforced layout format, a starting index supplied by LayoutPlot (indexing into a large gridspec arrangement) is updated to the appropriate embedded value. It will also return a list of gridspec indices associated with the all the required layout axes.
-
init_comm
( ) ¶ -
Initializes comm and attaches streams.
-
inspect_value
= functools.partial(<function Parameterized.inspect_value>, <class 'holoviews.plotting.mpl.plot.LayoutPlot'>) ¶
-
matches
( spec ) ¶ -
Matches a specification against the current Plot.
-
message
( msg , *args , **kw ) ¶ -
Print msg merged with args as a message.
See Python’s logging module for details of message formatting.
-
params
( parameter_name=None ) ¶ -
Return the Parameters of this class as the dictionary {name: parameter_object}
Includes Parameters from this class and its superclasses.
-
pprint
( imports=None , prefix=' ' , unknown_value='<?>' , qualify=False , separator='' ) ¶ -
(Experimental) Pretty printed representation that may be evaluated with eval. See pprint() function for more details.
-
print_param_defaults
( ) ¶ -
Print the default values of all cls’s Parameters.
-
print_param_values
( ) ¶ -
Print the values of all this object’s Parameters.
-
push
( ) ¶ -
Pushes updated plot data via the Comm.
-
refresh
( **kwargs ) ¶ -
Refreshes the plot by rerendering it and then pushing the updated data if the plot has an associated Comm.
-
script_repr
( imports=[] , prefix=' ' ) ¶ -
Variant of __repr__ designed for generating a runnable script.
-
set_default
( param_name , value ) ¶ -
Set the default value of param_name.
Equivalent to setting param_name on the class.
-
set_dynamic_time_fn
= functools.partial(<function Parameterized.set_dynamic_time_fn>, <class 'holoviews.plotting.mpl.plot.LayoutPlot'>) ¶
-
set_param
= functools.partial(<function Parameterized.set_param>, <class 'holoviews.plotting.mpl.plot.LayoutPlot'>) ¶
-
state_pop
( ) ¶ -
Restore the most recently saved state.
See state_push() for more details.
-
state_push
( ) ¶ -
Save this instance’s state.
For Parameterized instances, this includes the state of dynamically generated values.
Subclasses that maintain short-term state should additionally save and restore that state using state_push() and state_pop().
Generally, this method is used by operations that need to test something without permanently altering the objects’ state.
-
traverse
( fn=None , specs=None , full_breadth=True ) ¶ -
Traverses any nested DimensionedPlot returning a list of all plots that match the specs. The specs should be supplied as a list of either Plot types or callables, which should return a boolean given the plot class.
-
verbose
( msg , *args , **kw ) ¶ -
Print msg merged with args as a verbose message.
See Python’s logging module for details of message formatting.
-
warning
( msg , *args , **kw ) ¶ -
Print msg merged with args as a warning, unless module variable warnings_as_exceptions is True, then raise an Exception containing the arguments.
See Python’s logging module for details of message formatting.
-
param Parameter
-
class
holoviews.plotting.mpl.plot.
MPLPlot
( fig=None , axis=None , **params ) [source] ¶ -
Bases:
holoviews.plotting.plot.DimensionedPlot
An MPLPlot object draws a matplotlib figure object when called or indexed but can also return a matplotlib animation object as appropriate. MPLPlots take element objects such as Image, Contours or Points as inputs and plots them in the appropriate format using matplotlib. As HoloMaps are supported, all plots support animation via the anim() method.
-
param Parameter
fontsize
( allow_None=True, constant=False, default=None, instantiate=False, pickle_default_value=True, precedence=None, readonly=False ) - Specifies various fontsizes of the displayed text. Finer control is available by supplying a dictionary where any unmentioned keys reverts to the default sizes, e.g: {‘ticks’:20, ‘title’:15, ‘ylabel’:5, ‘xlabel’:5, ‘legend’:8, ‘legend_title’:13} You can set the fontsize of both ‘ylabel’ and ‘xlabel’ together using the ‘labels’ key.
-
param Boolean
show_title
( allow_None=False, bounds=(0, 1), constant=False, default=True, instantiate=False, pickle_default_value=True, precedence=None, readonly=False ) - Whether to display the plot title.
-
param String
title_format
( allow_None=False, basestring=<class ‘str’>, constant=False, default={label} {group} {dimensions}, instantiate=False, pickle_default_value=True, precedence=None, readonly=False ) - The formatting string for the title of this plot, allows defining a label group separator and dimension labels.
-
param Boolean
normalize
( allow_None=False, bounds=(0, 1), constant=False, default=True, instantiate=False, pickle_default_value=True, precedence=None, readonly=False ) - Whether to compute ranges across all Elements at this level of plotting. Allows selecting normalization at different levels for nested data containers.
-
param Parameter
projection
( allow_None=True, constant=False, default=None, instantiate=False, pickle_default_value=True, precedence=None, readonly=False ) - The projection of the plot axis, default of None is equivalent to 2D plot, ‘3d’ and ‘polar’ are also supported by matplotlib by default. May also supply a custom projection that is either a matplotlib projection type or implements the _as_mpl_axes method.
-
param Number
fig_alpha
( allow_None=False, bounds=(0, 1), constant=False, default=1.0, inclusive_bounds=(True, True), instantiate=False, pickle_default_value=True, precedence=None, readonly=False, softbounds=None, time_dependent=False, time_fn=<Time Time00001> ) - Alpha of the overall figure background.
-
param NumericTuple
fig_bounds
( allow_None=False, constant=False, default=(0.15, 0.15, 0.85, 0.85), instantiate=False, length=4, pickle_default_value=True, precedence=None, readonly=False ) - The bounds of the overall figure as a 4-tuple of the form (left, bottom, right, top), defining the size of the border around the subplots.
-
param Parameter
fig_inches
( allow_None=False, constant=False, default=4, instantiate=False, pickle_default_value=True, precedence=None, readonly=False ) - The overall matplotlib figure size in inches. May be set as an integer in which case it will be used to autocompute a size. Alternatively may be set with an explicit tuple or list, in which case it will be applied directly after being scaled by fig_size. If either the width or height is set to None, it will be computed automatically.
-
param Boolean
fig_latex
( allow_None=False, bounds=(0, 1), constant=False, default=False, instantiate=False, pickle_default_value=True, precedence=None, readonly=False ) - Whether to use LaTeX text in the overall figure.
-
param Dict
fig_rcparams
( allow_None=False, constant=False, default={}, instantiate=True, is_instance=True, pickle_default_value=True, precedence=None, readonly=False ) - matplotlib rc parameters to apply to the overall figure.
-
param Number
fig_size
( allow_None=False, bounds=(1, None), constant=False, default=100.0, inclusive_bounds=(True, True), instantiate=False, pickle_default_value=True, precedence=None, readonly=False, softbounds=None, time_dependent=False, time_fn=<Time Time00001> ) - Size relative to the supplied overall fig_inches in percent.
-
param HookList
initial_hooks
( allow_None=False, bounds=(0, None), constant=False, default=[], instantiate=True, pickle_default_value=True, precedence=None, readonly=False ) - Optional list of hooks called before plotting the data onto the axis. The hook is passed the plot object and the displayed object, other plotting handles can be accessed via plot.handles.
-
param HookList
final_hooks
( allow_None=False, bounds=(0, None), constant=False, default=[], instantiate=True, pickle_default_value=True, precedence=None, readonly=False ) - Optional list of hooks called when finalizing an axis. The hook is passed the plot object and the displayed object, other plotting handles can be accessed via plot.handles.
-
param HookList
finalize_hooks
( allow_None=False, bounds=(0, None), constant=False, default=[], instantiate=True, pickle_default_value=True, precedence=None, readonly=False ) - Optional list of hooks called when finalizing an axis. The hook is passed the plot object and the displayed object, other plotting handles can be accessed via plot.handles.
-
param String
sublabel_format
( allow_None=True, basestring=<class ‘str’>, constant=False, default=None, instantiate=False, pickle_default_value=True, precedence=None, readonly=False ) - Allows labeling the subaxes in each plot with various formatters including {Alpha}, {alpha}, {numeric} and {roman}.
-
param NumericTuple
sublabel_position
( allow_None=False, constant=False, default=(-0.35, 0.85), instantiate=False, length=2, pickle_default_value=True, precedence=None, readonly=False ) - Position relative to the plot for placing the optional subfigure label.
-
param Number
sublabel_size
( allow_None=False, bounds=None, constant=False, default=18, inclusive_bounds=(True, True), instantiate=False, pickle_default_value=True, precedence=None, readonly=False, softbounds=None, time_dependent=False, time_fn=<Time Time00001> ) - Size of optional subfigure label.
-
param Boolean
show_frame
( allow_None=False, bounds=(0, 1), constant=False, default=False, instantiate=False, pickle_default_value=True, precedence=None, readonly=False ) - Whether or not to show a complete frame around the plot.
-
anim
( start=0 , stop=None , fps=30 ) [source] ¶ -
Method to return a matplotlib animation. The start and stop frames may be specified as well as the fps.
-
compute_ranges
( obj , key , ranges ) ¶ -
Given an object, a specific key and the normalization options this method will find the specified normalization options on the appropriate OptionTree, group the elements according to the selected normalization option (i.e. either per frame or over the whole animation) and finally compute the dimension ranges in each group. The new set of ranges is returned.
-
debug
( msg , *args , **kw ) ¶ -
Print msg merged with args as a debugging statement.
See Python’s logging module for details of message formatting.
-
defaults
( ) ¶ -
Return {parameter_name:parameter.default} for all non-constant Parameters.
Note that a Parameter for which instantiate==True has its default instantiated.
-
force_new_dynamic_value
= functools.partial(<function Parameterized.force_new_dynamic_value>, <class 'holoviews.plotting.mpl.plot.MPLPlot'>) ¶
-
get_param_values
( onlychanged=False ) ¶ -
Return a list of name,value pairs for all Parameters of this object.
If onlychanged is True, will only return values that are not equal to the default value.
-
get_value_generator
= functools.partial(<function Parameterized.get_value_generator>, <class 'holoviews.plotting.mpl.plot.MPLPlot'>) ¶
-
init_comm
( ) ¶ -
Initializes comm and attaches streams.
-
initialize_plot
( ranges=None ) ¶ -
Initialize the matplotlib figure.
-
inspect_value
= functools.partial(<function Parameterized.inspect_value>, <class 'holoviews.plotting.mpl.plot.MPLPlot'>) ¶
-
matches
( spec ) ¶ -
Matches a specification against the current Plot.
-
message
( msg , *args , **kw ) ¶ -
Print msg merged with args as a message.
See Python’s logging module for details of message formatting.
-
params
( parameter_name=None ) ¶ -
Return the Parameters of this class as the dictionary {name: parameter_object}
Includes Parameters from this class and its superclasses.
-
pprint
( imports=None , prefix=' ' , unknown_value='<?>' , qualify=False , separator='' ) ¶ -
(Experimental) Pretty printed representation that may be evaluated with eval. See pprint() function for more details.
-
print_param_defaults
( ) ¶ -
Print the default values of all cls’s Parameters.
-
print_param_values
( ) ¶ -
Print the values of all this object’s Parameters.
-
push
( ) ¶ -
Pushes updated plot data via the Comm.
-
refresh
( **kwargs ) ¶ -
Refreshes the plot by rerendering it and then pushing the updated data if the plot has an associated Comm.
-
script_repr
( imports=[] , prefix=' ' ) ¶ -
Variant of __repr__ designed for generating a runnable script.
-
set_default
( param_name , value ) ¶ -
Set the default value of param_name.
Equivalent to setting param_name on the class.
-
set_dynamic_time_fn
= functools.partial(<function Parameterized.set_dynamic_time_fn>, <class 'holoviews.plotting.mpl.plot.MPLPlot'>) ¶
-
set_param
= functools.partial(<function Parameterized.set_param>, <class 'holoviews.plotting.mpl.plot.MPLPlot'>) ¶
-
state_pop
( ) ¶ -
Restore the most recently saved state.
See state_push() for more details.
-
state_push
( ) ¶ -
Save this instance’s state.
For Parameterized instances, this includes the state of dynamically generated values.
Subclasses that maintain short-term state should additionally save and restore that state using state_push() and state_pop().
Generally, this method is used by operations that need to test something without permanently altering the objects’ state.
-
traverse
( fn=None , specs=None , full_breadth=True ) ¶ -
Traverses any nested DimensionedPlot returning a list of all plots that match the specs. The specs should be supplied as a list of either Plot types or callables, which should return a boolean given the plot class.
-
verbose
( msg , *args , **kw ) ¶ -
Print msg merged with args as a verbose message.
See Python’s logging module for details of message formatting.
-
warning
( msg , *args , **kw ) ¶ -
Print msg merged with args as a warning, unless module variable warnings_as_exceptions is True, then raise an Exception containing the arguments.
See Python’s logging module for details of message formatting.
-
param Parameter
raster
Module
¶
-
class
holoviews.plotting.mpl.raster.
RasterGridPlot
( layout , keys=None , dimensions=None , create_axes=False , ranges=None , layout_num=1 , **params ) [source] ¶ -
Bases:
holoviews.plotting.mpl.plot.GridPlot
,holoviews.plotting.mpl.element.OverlayPlot
RasterGridPlot evenly spaces out plots of individual projections on a grid, even when they differ in size. Since this class uses a single axis to generate all the individual plots it is much faster than the equivalent using subplots.
-
param Parameter
fontsize
( allow_None=True, constant=False, default=None, instantiate=False, pickle_default_value=True, precedence=None, readonly=False ) - Specifies various fontsizes of the displayed text. Finer control is available by supplying a dictionary where any unmentioned keys reverts to the default sizes, e.g: {‘ticks’:20, ‘title’:15, ‘ylabel’:5, ‘xlabel’:5, ‘legend’:8, ‘legend_title’:13} You can set the fontsize of both ‘ylabel’ and ‘xlabel’ together using the ‘labels’ key.
-
param Boolean
show_title
( allow_None=False, bounds=(0, 1), constant=False, default=True, instantiate=False, pickle_default_value=True, precedence=None, readonly=False ) - Whether to display the plot title.
-
param String
title_format
( allow_None=False, basestring=<class ‘str’>, constant=False, default={label} {group} {dimensions}, instantiate=False, pickle_default_value=True, precedence=None, readonly=False ) - The formatting string for the title of this plot, allows defining a label group separator and dimension labels.
-
param Boolean
normalize
( allow_None=False, bounds=(0, 1), constant=False, default=True, instantiate=False, pickle_default_value=True, precedence=None, readonly=False ) - Whether to compute ranges across all Elements at this level of plotting. Allows selecting normalization at different levels for nested data containers.
-
param Parameter
projection
( allow_None=True, constant=False, default=None, instantiate=False, pickle_default_value=True, precedence=None, readonly=False ) - The projection of the plot axis, default of None is equivalent to 2D plot, ‘3d’ and ‘polar’ are also supported by matplotlib by default. May also supply a custom projection that is either a matplotlib projection type or implements the _as_mpl_axes method.
-
param Number
fig_alpha
( allow_None=False, bounds=(0, 1), constant=False, default=1.0, inclusive_bounds=(True, True), instantiate=False, pickle_default_value=True, precedence=None, readonly=False, softbounds=None, time_dependent=False, time_fn=<Time Time00001> ) - Alpha of the overall figure background.
-
param NumericTuple
fig_bounds
( allow_None=False, constant=False, default=(0.15, 0.15, 0.85, 0.85), instantiate=False, length=4, pickle_default_value=True, precedence=None, readonly=False ) - The bounds of the overall figure as a 4-tuple of the form (left, bottom, right, top), defining the size of the border around the subplots.
-
param Parameter
fig_inches
( allow_None=False, constant=False, default=4, instantiate=False, pickle_default_value=True, precedence=None, readonly=False ) - The overall matplotlib figure size in inches. May be set as an integer in which case it will be used to autocompute a size. Alternatively may be set with an explicit tuple or list, in which case it will be applied directly after being scaled by fig_size. If either the width or height is set to None, it will be computed automatically.
-
param Boolean
fig_latex
( allow_None=False, bounds=(0, 1), constant=False, default=False, instantiate=False, pickle_default_value=True, precedence=None, readonly=False ) - Whether to use LaTeX text in the overall figure.
-
param Dict
fig_rcparams
( allow_None=False, constant=False, default={}, instantiate=True, is_instance=True, pickle_default_value=True, precedence=None, readonly=False ) - matplotlib rc parameters to apply to the overall figure.
-
param Number
fig_size
( allow_None=False, bounds=(1, None), constant=False, default=100.0, inclusive_bounds=(True, True), instantiate=False, pickle_default_value=True, precedence=None, readonly=False, softbounds=None, time_dependent=False, time_fn=<Time Time00001> ) - Size relative to the supplied overall fig_inches in percent.
-
param HookList
initial_hooks
( allow_None=False, bounds=(0, None), constant=False, default=[], instantiate=True, pickle_default_value=True, precedence=None, readonly=False ) - Optional list of hooks called before plotting the data onto the axis. The hook is passed the plot object and the displayed object, other plotting handles can be accessed via plot.handles.
-
param HookList
final_hooks
( allow_None=False, bounds=(0, None), constant=False, default=[], instantiate=True, pickle_default_value=True, precedence=None, readonly=False ) - Optional list of hooks called when finalizing an axis. The hook is passed the plot object and the displayed object, other plotting handles can be accessed via plot.handles.
-
param HookList
finalize_hooks
( allow_None=False, bounds=(0, None), constant=False, default=[], instantiate=True, pickle_default_value=True, precedence=None, readonly=False ) - Optional list of hooks called when finalizing an axis. The hook is passed the plot object and the displayed object, other plotting handles can be accessed via plot.handles.
-
param String
sublabel_format
( allow_None=True, basestring=<class ‘str’>, constant=False, default=None, instantiate=False, pickle_default_value=True, precedence=None, readonly=False ) - Allows labeling the subaxes in each plot with various formatters including {Alpha}, {alpha}, {numeric} and {roman}.
-
param NumericTuple
sublabel_position
( allow_None=False, constant=False, default=(-0.35, 0.85), instantiate=False, length=2, pickle_default_value=True, precedence=None, readonly=False ) - Position relative to the plot for placing the optional subfigure label.
-
param Number
sublabel_size
( allow_None=False, bounds=None, constant=False, default=18, inclusive_bounds=(True, True), instantiate=False, pickle_default_value=True, precedence=None, readonly=False, softbounds=None, time_dependent=False, time_fn=<Time Time00001> ) - Size of optional subfigure label.
-
param Boolean
show_frame
( allow_None=False, bounds=(0, 1), constant=False, default=False, instantiate=False, pickle_default_value=True, precedence=None, readonly=False ) - Whether or not to show a complete frame around the plot.
-
param Parameter
apply_ranges
( allow_None=True, constant=False, default=True, instantiate=False, pickle_default_value=True, precedence=-1, readonly=False ) - Whether to compute the plot bounds from the data itself.
-
param Parameter
apply_extents
( allow_None=True, constant=False, default=True, instantiate=False, pickle_default_value=True, precedence=-1, readonly=False ) - Whether to apply extent overrides on the Elements
-
param Parameter
batched
( allow_None=True, constant=False, default=True, instantiate=False, pickle_default_value=True, precedence=-1, readonly=False ) - Whether to plot Elements NdOverlay in a batched plotting call if possible. Disables legends and zorder may not be preserved.
-
param Parameter
legend_limit
( allow_None=True, constant=False, default=25, instantiate=False, pickle_default_value=True, precedence=-1, readonly=False ) - Number of rendered glyphs before legends are disabled.
-
param Boolean
show_legend
( allow_None=False, bounds=(0, 1), constant=False, default=False, instantiate=False, pickle_default_value=True, precedence=None, readonly=False ) - Legends add to much clutter in a grid and are disabled by default.
-
param Parameter
style_grouping
( allow_None=True, constant=False, default=2, instantiate=False, pickle_default_value=True, precedence=-1, readonly=False ) - The length of the type.group.label spec that will be used to group Elements into style groups, i.e. a style_grouping value of 1 will group just by type, a value of 2 will group by type and group and a value of 3 will group by the full specification.
-
param Parameter
apply_ticks
( allow_None=True, constant=False, default=True, instantiate=False, pickle_default_value=True, precedence=-1, readonly=False ) - Whether to apply custom ticks.
-
param Parameter
aspect
( allow_None=False, constant=False, default=equal, instantiate=False, pickle_default_value=True, precedence=None, readonly=False ) - Aspect ratios on GridPlot should be automatically determined.
-
param Parameter
bgcolor
( allow_None=True, constant=False, default=None, instantiate=True, pickle_default_value=True, precedence=-1, readonly=False ) - If set bgcolor overrides the background color of the axis.
-
param Parameter
invert_axes
( allow_None=True, constant=False, default=False, instantiate=False, pickle_default_value=True, precedence=-1, readonly=False ) - Inverts the axes of the plot. Note that this parameter may not always be respected by all plots but should be respected by adjoined plots when appropriate.
-
param Parameter
invert_xaxis
( allow_None=True, constant=False, default=False, instantiate=False, pickle_default_value=True, precedence=-1, readonly=False ) - Whether to invert the plot x-axis.
-
param Parameter
invert_yaxis
( allow_None=True, constant=False, default=False, instantiate=False, pickle_default_value=True, precedence=-1, readonly=False ) - Whether to invert the plot y-axis.
-
param Parameter
invert_zaxis
( allow_None=True, constant=False, default=False, instantiate=False, pickle_default_value=True, precedence=-1, readonly=False ) - Whether to invert the plot z-axis.
-
param Parameter
labelled
( allow_None=True, constant=False, default=[‘x’, ‘y’], instantiate=True, pickle_default_value=True, precedence=-1, readonly=False ) - Whether to plot the ‘x’ and ‘y’ labels.
-
param Parameter
logx
( allow_None=True, constant=False, default=False, instantiate=False, pickle_default_value=True, precedence=-1, readonly=False ) - Whether to apply log scaling to the x-axis of the Chart.
-
param Parameter
logy
( allow_None=True, constant=False, default=False, instantiate=False, pickle_default_value=True, precedence=-1, readonly=False ) - Whether to apply log scaling to the y-axis of the Chart.
-
param Parameter
logz
( allow_None=True, constant=False, default=False, instantiate=False, pickle_default_value=True, precedence=-1, readonly=False ) - Whether to apply log scaling to the y-axis of the Chart.
-
param Parameter
show_grid
( allow_None=True, constant=False, default=False, instantiate=False, pickle_default_value=True, precedence=-1, readonly=False ) - Whether to show a Cartesian grid on the plot.
-
param ObjectSelector
xaxis
( allow_None=None, check_on_set=True, compute_default_fn=None, constant=False, default=bottom, instantiate=False, objects=[‘bottom’, ‘top’, None], pickle_default_value=True, precedence=None, readonly=False ) - Whether and where to display the xaxis, supported options are ‘bottom’, ‘top’ and None.
-
param ObjectSelector
yaxis
( allow_None=None, check_on_set=True, compute_default_fn=None, constant=False, default=left, instantiate=False, objects=[‘left’, ‘right’, None], pickle_default_value=True, precedence=None, readonly=False ) - Whether and where to display the yaxis, supported options are ‘left’, ‘right’ and None.
-
param Parameter
zaxis
( allow_None=True, constant=False, default=True, instantiate=False, pickle_default_value=True, precedence=-1, readonly=False ) - Whether to display the z-axis.
-
param Parameter
xticks
( allow_None=True, constant=False, default=None, instantiate=False, pickle_default_value=True, precedence=-1, readonly=False ) - Ticks along x-axis specified as an integer, explicit list of tick locations, list of tuples containing the locations and labels or a matplotlib tick locator object. If set to None default matplotlib ticking behavior is applied.
-
param Integer
xrotation
( allow_None=False, bounds=(0, 360), constant=False, default=0, inclusive_bounds=(True, True), instantiate=False, pickle_default_value=True, precedence=None, readonly=False, softbounds=None, time_dependent=False, time_fn=<Time Time00001> ) - Rotation angle of the xticks.
-
param Parameter
yticks
( allow_None=True, constant=False, default=None, instantiate=False, pickle_default_value=True, precedence=-1, readonly=False ) - Ticks along y-axis specified as an integer, explicit list of tick locations, list of tuples containing the locations and labels or a matplotlib tick locator object. If set to None default matplotlib ticking behavior is applied.
-
param Integer
yrotation
( allow_None=False, bounds=(0, 360), constant=False, default=0, inclusive_bounds=(True, True), instantiate=False, pickle_default_value=True, precedence=None, readonly=False, softbounds=None, time_dependent=False, time_fn=<Time Time00001> ) - Rotation angle of the yticks.
-
param Parameter
zrotation
( allow_None=True, constant=False, default=0, instantiate=False, pickle_default_value=True, precedence=-1, readonly=False ) - Rotation angle of the zticks.
-
param Parameter
zticks
( allow_None=True, constant=False, default=None, instantiate=False, pickle_default_value=True, precedence=-1, readonly=False ) - Ticks along z-axis specified as an integer, explicit list of tick locations, list of tuples containing the locations and labels or a matplotlib tick locator object. If set to None default matplotlib ticking behavior is applied.
-
param Parameter
legend_cols
( allow_None=True, constant=False, default=None, instantiate=False, pickle_default_value=True, precedence=-1, readonly=False ) - Number of legend columns in the legend.
-
param Parameter
legend_position
( allow_None=True, constant=False, default=inner, instantiate=False, pickle_default_value=True, precedence=-1, readonly=False ) - Allows selecting between a number of predefined legend position options. The predefined options may be customized in the legend_specs class attribute. By default, ‘inner’, ‘right’, ‘bottom’, ‘top’, ‘left’, ‘best’, ‘top_right’, ‘top_left’, ‘bottom_right’ and ‘bottom_left’ are supported.
-
param Number
padding
( allow_None=False, bounds=None, constant=False, default=0.1, inclusive_bounds=(True, True), instantiate=False, pickle_default_value=True, precedence=None, readonly=False, softbounds=None, time_dependent=False, time_fn=<Time Time00001> ) - The amount of padding as a fraction of the total Grid size
-
param Boolean
shared_xaxis
( allow_None=False, bounds=(0, 1), constant=False, default=False, instantiate=False, pickle_default_value=True, precedence=None, readonly=False ) - If enabled the x-axes of the GridSpace will be drawn from the objects inside the Grid rather than the GridSpace dimensions.
-
param Boolean
shared_yaxis
( allow_None=False, bounds=(0, 1), constant=False, default=False, instantiate=False, pickle_default_value=True, precedence=None, readonly=False ) - If enabled the x-axes of the GridSpace will be drawn from the objects inside the Grid rather than the GridSpace dimensions.
-
anim
( start=0 , stop=None , fps=30 ) ¶ -
Method to return a matplotlib animation. The start and stop frames may be specified as well as the fps.
-
compute_ranges
( obj , key , ranges ) ¶ -
Given an object, a specific key and the normalization options this method will find the specified normalization options on the appropriate OptionTree, group the elements according to the selected normalization option (i.e. either per frame or over the whole animation) and finally compute the dimension ranges in each group. The new set of ranges is returned.
-
debug
( msg , *args , **kw ) ¶ -
Print msg merged with args as a debugging statement.
See Python’s logging module for details of message formatting.
-
defaults
( ) ¶ -
Return {parameter_name:parameter.default} for all non-constant Parameters.
Note that a Parameter for which instantiate==True has its default instantiated.
-
force_new_dynamic_value
= functools.partial(<function Parameterized.force_new_dynamic_value>, <class 'holoviews.plotting.mpl.raster.RasterGridPlot'>) ¶
-
get_param_values
( onlychanged=False ) ¶ -
Return a list of name,value pairs for all Parameters of this object.
If onlychanged is True, will only return values that are not equal to the default value.
-
get_value_generator
= functools.partial(<function Parameterized.get_value_generator>, <class 'holoviews.plotting.mpl.raster.RasterGridPlot'>) ¶
-
get_zorder
( overlay , key , el ) ¶ -
Computes the z-order of element in the NdOverlay taking into account possible batching of elements.
-
init_artists
( ax , plot_args , plot_kwargs ) ¶ -
Initializes the artist based on the plot method declared on the plot.
-
init_comm
( ) ¶ -
Initializes comm and attaches streams.
-
inspect_value
= functools.partial(<function Parameterized.inspect_value>, <class 'holoviews.plotting.mpl.raster.RasterGridPlot'>) ¶
-
matches
( spec ) ¶ -
Matches a specification against the current Plot.
-
message
( msg , *args , **kw ) ¶ -
Print msg merged with args as a message.
See Python’s logging module for details of message formatting.
-
params
( parameter_name=None ) ¶ -
Return the Parameters of this class as the dictionary {name: parameter_object}
Includes Parameters from this class and its superclasses.
-
pprint
( imports=None , prefix=' ' , unknown_value='<?>' , qualify=False , separator='' ) ¶ -
(Experimental) Pretty printed representation that may be evaluated with eval. See pprint() function for more details.
-
print_param_defaults
( ) ¶ -
Print the default values of all cls’s Parameters.
-
print_param_values
( ) ¶ -
Print the values of all this object’s Parameters.
-
push
( ) ¶ -
Pushes updated plot data via the Comm.
-
refresh
( **kwargs ) ¶ -
Refreshes the plot by rerendering it and then pushing the updated data if the plot has an associated Comm.
-
script_repr
( imports=[] , prefix=' ' ) ¶ -
Variant of __repr__ designed for generating a runnable script.
-
set_default
( param_name , value ) ¶ -
Set the default value of param_name.
Equivalent to setting param_name on the class.
-
set_dynamic_time_fn
= functools.partial(<function Parameterized.set_dynamic_time_fn>, <class 'holoviews.plotting.mpl.raster.RasterGridPlot'>) ¶
-
set_param
= functools.partial(<function Parameterized.set_param>, <class 'holoviews.plotting.mpl.raster.RasterGridPlot'>) ¶
-
state_pop
( ) ¶ -
Restore the most recently saved state.
See state_push() for more details.
-
state_push
( ) ¶ -
Save this instance’s state.
For Parameterized instances, this includes the state of dynamically generated values.
Subclasses that maintain short-term state should additionally save and restore that state using state_push() and state_pop().
Generally, this method is used by operations that need to test something without permanently altering the objects’ state.
-
teardown_handles
( ) ¶ -
If no custom update_handles method is supplied this method is called to tear down any previous handles before replacing them.
-
traverse
( fn=None , specs=None , full_breadth=True ) ¶ -
Traverses any nested DimensionedPlot returning a list of all plots that match the specs. The specs should be supplied as a list of either Plot types or callables, which should return a boolean given the plot class.
-
update_handles
( key , axis , element , ranges , style ) ¶ -
Update the elements of the plot.
-
verbose
( msg , *args , **kw ) ¶ -
Print msg merged with args as a verbose message.
See Python’s logging module for details of message formatting.
-
warning
( msg , *args , **kw ) ¶ -
Print msg merged with args as a warning, unless module variable warnings_as_exceptions is True, then raise an Exception containing the arguments.
See Python’s logging module for details of message formatting.
-
param Parameter
renderer
Module
¶
-
class
holoviews.plotting.mpl.renderer.
MPLRenderer
( **params ) [source] ¶ -
Bases:
holoviews.plotting.renderer.Renderer
Exporter used to render data from matplotlib, either to a stream or directly to file.
The __call__ method renders an HoloViews component to raw data of a specified matplotlib format. The save method is the corresponding method for saving a HoloViews objects to disk.
The save_fig and save_anim methods are used to save matplotlib figure and animation objects. These match the two primary return types of plotting class implemented with matplotlib.
-
param Callable
key_fn
( allow_None=True, constant=True, default=None, instantiate=True, pickle_default_value=True, precedence=None, readonly=False ) - Renderers do not support the saving of object key metadata
-
param Callable
info_fn
( allow_None=True, constant=True, instantiate=True, pickle_default_value=True, precedence=None, readonly=False ) - Renderers do not support the saving of object info metadata
-
param String
backend
( allow_None=False, basestring=<class ‘str’>, constant=False, default=matplotlib, instantiate=False, pickle_default_value=True, precedence=None, readonly=False ) - The backend name.
-
param Integer
dpi
( allow_None=False, bounds=None, constant=False, default=72, inclusive_bounds=(True, True), instantiate=False, pickle_default_value=True, precedence=None, readonly=False, softbounds=None, time_dependent=False, time_fn=<Time Time00001> ) - The render resolution in dpi (dots per inch)
-
param ObjectSelector
fig
( allow_None=None, check_on_set=True, compute_default_fn=None, constant=False, default=auto, instantiate=False, objects=[‘png’, ‘svg’, ‘pdf’, ‘html’, None, ‘auto’], pickle_default_value=True, precedence=None, readonly=False ) - Output render format for static figures. If None, no figure rendering will occur.
-
param Number
fps
( allow_None=False, bounds=None, constant=False, default=20, inclusive_bounds=(True, True), instantiate=False, pickle_default_value=True, precedence=None, readonly=False, softbounds=None, time_dependent=False, time_fn=<Time Time00001> ) - Rendered fps (frames per second) for animated formats.
-
param ObjectSelector
holomap
( allow_None=None, check_on_set=True, compute_default_fn=None, constant=False, default=auto, instantiate=False, objects=[‘widgets’, ‘scrubber’, ‘webm’, ‘mp4’, ‘gif’, None, ‘auto’], pickle_default_value=True, precedence=None, readonly=False ) - Output render multi-frame (typically animated) format. If None, no multi-frame rendering will occur.
-
param ObjectSelector
mode
( allow_None=None, check_on_set=True, compute_default_fn=None, constant=False, default=default, instantiate=False, objects=[‘default’, ‘nbagg’], pickle_default_value=True, precedence=None, readonly=False ) - The ‘nbagg’ mode uses matplotlib’s nbagg backend.
-
param Integer
size
( allow_None=False, bounds=None, constant=False, default=100, inclusive_bounds=(True, True), instantiate=False, pickle_default_value=True, precedence=None, readonly=False, softbounds=None, time_dependent=False, time_fn=<Time Time00001> ) - The rendered size as a percentage size
-
param ObjectSelector
widget_mode
( allow_None=None, check_on_set=True, compute_default_fn=None, constant=False, default=embed, instantiate=False, objects=[‘embed’, ‘live’], pickle_default_value=True, precedence=None, readonly=False ) - The widget mode determining whether frames are embedded or generated ‘live’ when interacting with the widget.
-
param Dict
css
( allow_None=False, constant=False, default={}, instantiate=True, is_instance=True, pickle_default_value=True, precedence=None, readonly=False ) - Dictionary of CSS attributes and values to apply to HTML output
-
param Dict
post_render_hooks
( allow_None=False, constant=False, default={‘svg’: [], ‘png’: []}, instantiate=True, is_instance=True, pickle_default_value=True, precedence=None, readonly=False ) - Optional dictionary of hooks that are applied to the rendered data (according to the output format) before it is returned. Each hook is passed the rendered data and the object that is being rendered. These hooks allow post-processing of rendered data before output is saved to file or displayed.
-
param Boolean
interactive
( allow_None=False, bounds=(0, 1), constant=False, default=False, instantiate=False, pickle_default_value=True, precedence=None, readonly=False ) - Whether to enable interactive plotting allowing interactive plotting with explicitly calling show.
-
debug
( msg , *args , **kw ) ¶ -
Print msg merged with args as a debugging statement.
See Python’s logging module for details of message formatting.
-
defaults
( ) ¶ -
Return {parameter_name:parameter.default} for all non-constant Parameters.
Note that a Parameter for which instantiate==True has its default instantiated.
-
encode
( entry ) ¶ -
Classmethod that applies conditional encoding based on mime-type. Given an entry as returned by __call__ return the data in the appropriate encoding.
-
export_widgets
= functools.partial(<function Renderer.export_widgets>, <class 'holoviews.plotting.mpl.renderer.MPLRenderer'>) ¶
-
force_new_dynamic_value
= functools.partial(<function Parameterized.force_new_dynamic_value>, <class 'holoviews.plotting.mpl.renderer.MPLRenderer'>) ¶
-
get_param_values
( onlychanged=False ) ¶ -
Return a list of name,value pairs for all Parameters of this object.
If onlychanged is True, will only return values that are not equal to the default value.
-
get_plot
= functools.partial(<function Renderer.get_plot>, <class 'holoviews.plotting.mpl.renderer.MPLRenderer'>) ¶
-
get_value_generator
= functools.partial(<function Parameterized.get_value_generator>, <class 'holoviews.plotting.mpl.renderer.MPLRenderer'>) ¶
-
html
( obj , fmt=None , css=None , comm=True , **kwargs ) ¶ -
Renders plot or data structure and wraps the output in HTML. The comm argument defines whether the HTML output includes code to initialize a Comm, if the plot supplies one.
-
html_assets
( core=True , extras=True , backends=None ) ¶ -
Returns JS and CSS and for embedding of widgets.
-
inspect_value
= functools.partial(<function Parameterized.inspect_value>, <class 'holoviews.plotting.mpl.renderer.MPLRenderer'>) ¶
-
instance
= functools.partial(<function ParameterizedFunction.instance>, <class 'holoviews.plotting.mpl.renderer.MPLRenderer'>) ¶
-
message
( msg , *args , **kw ) ¶ -
Print msg merged with args as a message.
See Python’s logging module for details of message formatting.
-
params
( parameter_name=None ) ¶ -
Return the Parameters of this class as the dictionary {name: parameter_object}
Includes Parameters from this class and its superclasses.
-
classmethod
plot_options
( obj , percent_size ) [source] ¶ -
Given a holoviews object and a percentage size, apply heuristics to compute a suitable figure size. For instance, scaling layouts and grids linearly can result in unwieldy figure sizes when there are a large number of elements. As ad hoc heuristics are used, this functionality is kept separate from the plotting classes themselves.
Used by the IPython Notebook display hooks and the save utility. Note that this can be overridden explicitly per object using the fig_size and size plot options.
-
plotting_class
( obj ) ¶ -
Given an object or Element class, return the suitable plotting class needed to render it with the current renderer.
-
pprint
( imports=None , prefix='\n ' , unknown_value='<?>' , qualify=False , separator='' ) ¶ -
Same as Parameterized.pprint, except that X.classname(Y is replaced with X.classname.instance(Y
-
print_param_defaults
( ) ¶ -
Print the default values of all cls’s Parameters.
-
print_param_values
( ) ¶ -
Print the values of all this object’s Parameters.
-
save
= functools.partial(<function Renderer.save>, <class 'holoviews.plotting.mpl.renderer.MPLRenderer'>) ¶
-
script_repr
( imports=[] , prefix=' ' ) ¶ -
Same as Parameterized.script_repr, except that X.classname(Y is replaced with X.classname.instance(Y
-
set_default
( param_name , value ) ¶ -
Set the default value of param_name.
Equivalent to setting param_name on the class.
-
set_dynamic_time_fn
= functools.partial(<function Parameterized.set_dynamic_time_fn>, <class 'holoviews.plotting.mpl.renderer.MPLRenderer'>) ¶
-
set_param
= functools.partial(<function Parameterized.set_param>, <class 'holoviews.plotting.mpl.renderer.MPLRenderer'>) ¶
-
state_pop
( ) ¶ -
Restore the most recently saved state.
See state_push() for more details.
-
state_push
( ) ¶ -
Save this instance’s state.
For Parameterized instances, this includes the state of dynamically generated values.
Subclasses that maintain short-term state should additionally save and restore that state using state_push() and state_pop().
Generally, this method is used by operations that need to test something without permanently altering the objects’ state.
-
static_html
( obj , fmt=None , template=None ) ¶ -
Generates a static HTML with the rendered object in the supplied format. Allows supplying a template formatting string with fields to interpolate ‘js’, ‘css’ and the main ‘html’.
-
verbose
( msg , *args , **kw ) ¶ -
Print msg merged with args as a verbose message.
See Python’s logging module for details of message formatting.
-
warning
( msg , *args , **kw ) ¶ -
Print msg merged with args as a warning, unless module variable warnings_as_exceptions is True, then raise an Exception containing the arguments.
See Python’s logging module for details of message formatting.
-
param Callable
stats
Module
¶
-
class
holoviews.plotting.mpl.stats.
BivariatePlot
( *args , **kwargs ) [source] ¶ -
Bases:
holoviews.plotting.mpl.path.PolygonPlot
Bivariate plot visualizes two-dimensional kernel density estimates. Additionally, by enabling the joint option, the marginals distributions can be plotted alongside each axis (does not animate or compose).
-
param Parameter
fontsize
( allow_None=True, constant=False, default=None, instantiate=False, pickle_default_value=True, precedence=None, readonly=False ) - Specifies various fontsizes of the displayed text. Finer control is available by supplying a dictionary where any unmentioned keys reverts to the default sizes, e.g: {‘ticks’:20, ‘title’:15, ‘ylabel’:5, ‘xlabel’:5, ‘legend’:8, ‘legend_title’:13} You can set the fontsize of both ‘ylabel’ and ‘xlabel’ together using the ‘labels’ key.
-
param Boolean
show_title
( allow_None=False, bounds=(0, 1), constant=False, default=True, instantiate=False, pickle_default_value=True, precedence=None, readonly=False ) - Whether to display the plot title.
-
param String
title_format
( allow_None=False, basestring=<class ‘str’>, constant=False, default={label} {group} {dimensions}, instantiate=False, pickle_default_value=True, precedence=None, readonly=False ) - The formatting string for the title of this plot, allows defining a label group separator and dimension labels.
-
param Boolean
normalize
( allow_None=False, bounds=(0, 1), constant=False, default=True, instantiate=False, pickle_default_value=True, precedence=None, readonly=False ) - Whether to compute ranges across all Elements at this level of plotting. Allows selecting normalization at different levels for nested data containers.
-
param Parameter
projection
( allow_None=True, constant=False, default=None, instantiate=False, pickle_default_value=True, precedence=None, readonly=False ) - The projection of the plot axis, default of None is equivalent to 2D plot, ‘3d’ and ‘polar’ are also supported by matplotlib by default. May also supply a custom projection that is either a matplotlib projection type or implements the _as_mpl_axes method.
-
param Number
fig_alpha
( allow_None=False, bounds=(0, 1), constant=False, default=1.0, inclusive_bounds=(True, True), instantiate=False, pickle_default_value=True, precedence=None, readonly=False, softbounds=None, time_dependent=False, time_fn=<Time Time00001> ) - Alpha of the overall figure background.
-
param NumericTuple
fig_bounds
( allow_None=False, constant=False, default=(0.15, 0.15, 0.85, 0.85), instantiate=False, length=4, pickle_default_value=True, precedence=None, readonly=False ) - The bounds of the overall figure as a 4-tuple of the form (left, bottom, right, top), defining the size of the border around the subplots.
-
param Parameter
fig_inches
( allow_None=False, constant=False, default=4, instantiate=False, pickle_default_value=True, precedence=None, readonly=False ) - The overall matplotlib figure size in inches. May be set as an integer in which case it will be used to autocompute a size. Alternatively may be set with an explicit tuple or list, in which case it will be applied directly after being scaled by fig_size. If either the width or height is set to None, it will be computed automatically.
-
param Boolean
fig_latex
( allow_None=False, bounds=(0, 1), constant=False, default=False, instantiate=False, pickle_default_value=True, precedence=None, readonly=False ) - Whether to use LaTeX text in the overall figure.
-
param Dict
fig_rcparams
( allow_None=False, constant=False, default={}, instantiate=True, is_instance=True, pickle_default_value=True, precedence=None, readonly=False ) - matplotlib rc parameters to apply to the overall figure.
-
param Number
fig_size
( allow_None=False, bounds=(1, None), constant=False, default=100.0, inclusive_bounds=(True, True), instantiate=False, pickle_default_value=True, precedence=None, readonly=False, softbounds=None, time_dependent=False, time_fn=<Time Time00001> ) - Size relative to the supplied overall fig_inches in percent.
-
param HookList
initial_hooks
( allow_None=False, bounds=(0, None), constant=False, default=[], instantiate=True, pickle_default_value=True, precedence=None, readonly=False ) - Optional list of hooks called before plotting the data onto the axis. The hook is passed the plot object and the displayed object, other plotting handles can be accessed via plot.handles.
-
param HookList
final_hooks
( allow_None=False, bounds=(0, None), constant=False, default=[], instantiate=True, pickle_default_value=True, precedence=None, readonly=False ) - Optional list of hooks called when finalizing an axis. The hook is passed the plot object and the displayed object, other plotting handles can be accessed via plot.handles.
-
param HookList
finalize_hooks
( allow_None=False, bounds=(0, None), constant=False, default=[], instantiate=True, pickle_default_value=True, precedence=None, readonly=False ) - Optional list of hooks called when finalizing an axis. The hook is passed the plot object and the displayed object, other plotting handles can be accessed via plot.handles.
-
param String
sublabel_format
( allow_None=True, basestring=<class ‘str’>, constant=False, default=None, instantiate=False, pickle_default_value=True, precedence=None, readonly=False ) - Allows labeling the subaxes in each plot with various formatters including {Alpha}, {alpha}, {numeric} and {roman}.
-
param NumericTuple
sublabel_position
( allow_None=False, constant=False, default=(-0.35, 0.85), instantiate=False, length=2, pickle_default_value=True, precedence=None, readonly=False ) - Position relative to the plot for placing the optional subfigure label.
-
param Number
sublabel_size
( allow_None=False, bounds=None, constant=False, default=18, inclusive_bounds=(True, True), instantiate=False, pickle_default_value=True, precedence=None, readonly=False, softbounds=None, time_dependent=False, time_fn=<Time Time00001> ) - Size of optional subfigure label.
-
param Boolean
show_frame
( allow_None=False, bounds=(0, 1), constant=False, default=False, instantiate=False, pickle_default_value=True, precedence=None, readonly=False ) - Whether or not to show a complete frame around the plot.
-
param Boolean
apply_ranges
( allow_None=False, bounds=(0, 1), constant=False, default=True, instantiate=False, pickle_default_value=True, precedence=None, readonly=False ) - Whether to compute the plot bounds from the data itself.
-
param Boolean
apply_extents
( allow_None=False, bounds=(0, 1), constant=False, default=True, instantiate=False, pickle_default_value=True, precedence=None, readonly=False ) - Whether to apply extent overrides on the Elements
-
param Boolean
apply_ticks
( allow_None=False, bounds=(0, 1), constant=False, default=True, instantiate=False, pickle_default_value=True, precedence=None, readonly=False ) - Whether to apply custom ticks.
-
param Parameter
aspect
( allow_None=False, constant=False, default=square, instantiate=False, pickle_default_value=True, precedence=None, readonly=False ) - PathPlots axes usually define single space so aspect of Paths follows aspect in data coordinates by default.
-
param ClassSelector
bgcolor
( allow_None=True, constant=False, default=None, instantiate=True, is_instance=True, pickle_default_value=True, precedence=None, readonly=False ) - If set bgcolor overrides the background color of the axis.
-
param ObjectSelector
invert_axes
( allow_None=None, check_on_set=False, compute_default_fn=None, constant=False, default=False, instantiate=False, objects=[], pickle_default_value=True, precedence=None, readonly=False ) - Inverts the axes of the plot. Note that this parameter may not always be respected by all plots but should be respected by adjoined plots when appropriate.
-
param Boolean
invert_xaxis
( allow_None=False, bounds=(0, 1), constant=False, default=False, instantiate=False, pickle_default_value=True, precedence=None, readonly=False ) - Whether to invert the plot x-axis.
-
param Boolean
invert_yaxis
( allow_None=False, bounds=(0, 1), constant=False, default=False, instantiate=False, pickle_default_value=True, precedence=None, readonly=False ) - Whether to invert the plot y-axis.
-
param Boolean
invert_zaxis
( allow_None=False, bounds=(0, 1), constant=False, default=False, instantiate=False, pickle_default_value=True, precedence=None, readonly=False ) - Whether to invert the plot z-axis.
-
param List
labelled
( allow_None=False, bounds=(0, None), constant=False, default=[‘x’, ‘y’], instantiate=True, pickle_default_value=True, precedence=None, readonly=False ) - Whether to plot the ‘x’ and ‘y’ labels.
-
param Boolean
logx
( allow_None=False, bounds=(0, 1), constant=False, default=False, instantiate=False, pickle_default_value=True, precedence=None, readonly=False ) - Whether to apply log scaling to the x-axis of the Chart.
-
param Boolean
logy
( allow_None=False, bounds=(0, 1), constant=False, default=False, instantiate=False, pickle_default_value=True, precedence=None, readonly=False ) - Whether to apply log scaling to the y-axis of the Chart.
-
param Boolean
logz
( allow_None=False, bounds=(0, 1), constant=False, default=False, instantiate=False, pickle_default_value=True, precedence=None, readonly=False ) - Whether to apply log scaling to the y-axis of the Chart.
-
param Boolean
show_legend
( allow_None=False, bounds=(0, 1), constant=False, default=False, instantiate=False, pickle_default_value=True, precedence=None, readonly=False ) - Whether to show legend for the plot.
-
param Boolean
show_grid
( allow_None=False, bounds=(0, 1), constant=False, default=False, instantiate=False, pickle_default_value=True, precedence=None, readonly=False ) - Whether to show a Cartesian grid on the plot.
-
param ObjectSelector
xaxis
( allow_None=None, check_on_set=True, compute_default_fn=None, constant=False, default=bottom, instantiate=False, objects=[‘top’, ‘bottom’, ‘bare’, ‘top-bare’, ‘bottom-bare’, None], pickle_default_value=True, precedence=None, readonly=False ) - Whether and where to display the xaxis, bare options allow suppressing all axis labels including ticks and xlabel. Valid options are ‘top’, ‘bottom’, ‘bare’, ‘top-bare’ and ‘bottom-bare’.
-
param ObjectSelector
yaxis
( allow_None=None, check_on_set=True, compute_default_fn=None, constant=False, default=left, instantiate=False, objects=[‘left’, ‘right’, ‘bare’, ‘left-bare’, ‘right-bare’, None], pickle_default_value=True, precedence=None, readonly=False ) - Whether and where to display the yaxis, bare options allow suppressing all axis labels including ticks and ylabel. Valid options are ‘left’, ‘right’, ‘bare’ ‘left-bare’ and ‘right-bare’.
-
param Boolean
zaxis
( allow_None=False, bounds=(0, 1), constant=False, default=True, instantiate=False, pickle_default_value=True, precedence=None, readonly=False ) - Whether to display the z-axis.
-
param Parameter
xticks
( allow_None=True, constant=False, default=None, instantiate=False, pickle_default_value=True, precedence=None, readonly=False ) - Ticks along x-axis specified as an integer, explicit list of tick locations, list of tuples containing the locations and labels or a matplotlib tick locator object. If set to None default matplotlib ticking behavior is applied.
-
param Integer
xrotation
( allow_None=False, bounds=(0, 360), constant=False, default=0, inclusive_bounds=(True, True), instantiate=False, pickle_default_value=True, precedence=None, readonly=False, softbounds=None, time_dependent=False, time_fn=<Time Time00001> ) - Rotation angle of the xticks.
-
param Parameter
yticks
( allow_None=True, constant=False, default=None, instantiate=False, pickle_default_value=True, precedence=None, readonly=False ) - Ticks along y-axis specified as an integer, explicit list of tick locations, list of tuples containing the locations and labels or a matplotlib tick locator object. If set to None default matplotlib ticking behavior is applied.
-
param Integer
yrotation
( allow_None=False, bounds=(0, 360), constant=False, default=0, inclusive_bounds=(True, True), instantiate=False, pickle_default_value=True, precedence=None, readonly=False, softbounds=None, time_dependent=False, time_fn=<Time Time00001> ) - Rotation angle of the yticks.
-
param Integer
zrotation
( allow_None=False, bounds=(0, 360), constant=False, default=0, inclusive_bounds=(True, True), instantiate=False, pickle_default_value=True, precedence=None, readonly=False, softbounds=None, time_dependent=False, time_fn=<Time Time00001> ) - Rotation angle of the zticks.
-
param Parameter
zticks
( allow_None=True, constant=False, default=None, instantiate=False, pickle_default_value=True, precedence=None, readonly=False ) - Ticks along z-axis specified as an integer, explicit list of tick locations, list of tuples containing the locations and labels or a matplotlib tick locator object. If set to None default matplotlib ticking behavior is applied.
-
param Boolean
colorbar
( allow_None=False, bounds=(0, 1), constant=False, default=False, instantiate=False, pickle_default_value=True, precedence=None, readonly=False ) - Whether to draw a colorbar.
-
param Dict
clipping_colors
( allow_None=False, constant=False, default={}, instantiate=True, is_instance=True, pickle_default_value=True, precedence=None, readonly=False ) - Dictionary to specify colors for clipped values, allows setting color for NaN values and for values above and below the min and max value. The min, max or NaN color may specify an RGB(A) color as a color hex string of the form #FFFFFF or #FFFFFFFF or a length 3 or length 4 tuple specifying values in the range 0-1 or a named HTML color.
-
param Number
cbar_padding
( allow_None=False, bounds=None, constant=False, default=0.01, inclusive_bounds=(True, True), instantiate=False, pickle_default_value=True, precedence=None, readonly=False, softbounds=None, time_dependent=False, time_fn=<Time Time00001> ) - Padding between colorbar and other plots.
-
param Parameter
cbar_ticks
( allow_None=True, constant=False, default=None, instantiate=False, pickle_default_value=True, precedence=None, readonly=False ) - Ticks along colorbar-axis specified as an integer, explicit list of tick locations, list of tuples containing the locations and labels or a matplotlib tick locator object. If set to None default matplotlib ticking behavior is applied.
-
param Number
cbar_width
( allow_None=False, bounds=None, constant=False, default=0.05, inclusive_bounds=(True, True), instantiate=False, pickle_default_value=True, precedence=None, readonly=False, softbounds=None, time_dependent=False, time_fn=<Time Time00001> ) - Width of the colorbar as a fraction of the main plot
-
param Boolean
symmetric
( allow_None=False, bounds=(0, 1), constant=False, default=False, instantiate=False, pickle_default_value=True, precedence=None, readonly=False ) - Whether to make the colormap symmetric around zero.
-
param ClassSelector
color_index
( allow_None=True, constant=False, default=0, instantiate=True, is_instance=True, pickle_default_value=True, precedence=None, readonly=False ) - Index of the dimension from which the color will the drawn
-
param Number
bandwidth
( allow_None=True, bounds=None, constant=False, default=None, inclusive_bounds=(True, True), instantiate=False, pickle_default_value=True, precedence=None, readonly=False, softbounds=None, time_dependent=False, time_fn=<Time Time00001> ) - The bandwidth of the kernel for the density estimate.
-
param Number
cut
( allow_None=False, bounds=None, constant=False, default=3, inclusive_bounds=(True, True), instantiate=False, pickle_default_value=True, precedence=None, readonly=False, softbounds=None, time_dependent=False, time_fn=<Time Time00001> ) - Draw the estimate to cut * bw from the extreme data points.
-
param Boolean
filled
( allow_None=False, bounds=(0, 1), constant=False, default=False, instantiate=False, pickle_default_value=True, precedence=None, readonly=False ) - Whether the bivariate contours should be filled.
-
anim
( start=0 , stop=None , fps=30 ) ¶ -
Method to return a matplotlib animation. The start and stop frames may be specified as well as the fps.
-
compute_ranges
( obj , key , ranges ) ¶ -
Given an object, a specific key and the normalization options this method will find the specified normalization options on the appropriate OptionTree, group the elements according to the selected normalization option (i.e. either per frame or over the whole animation) and finally compute the dimension ranges in each group. The new set of ranges is returned.
-
debug
( msg , *args , **kw ) ¶ -
Print msg merged with args as a debugging statement.
See Python’s logging module for details of message formatting.
-
defaults
( ) ¶ -
Return {parameter_name:parameter.default} for all non-constant Parameters.
Note that a Parameter for which instantiate==True has its default instantiated.
-
force_new_dynamic_value
= functools.partial(<function Parameterized.force_new_dynamic_value>, <class 'holoviews.plotting.mpl.stats.BivariatePlot'>) ¶
-
get_extents
( view , ranges ) ¶ -
Gets the extents for the axes from the current View. The globally computed ranges can optionally override the extents.
-
get_param_values
( onlychanged=False ) ¶ -
Return a list of name,value pairs for all Parameters of this object.
If onlychanged is True, will only return values that are not equal to the default value.
-
get_value_generator
= functools.partial(<function Parameterized.get_value_generator>, <class 'holoviews.plotting.mpl.stats.BivariatePlot'>) ¶
-
get_zorder
( overlay , key , el ) ¶ -
Computes the z-order of element in the NdOverlay taking into account possible batching of elements.
-
init_comm
( ) ¶ -
Initializes comm and attaches streams.
-
inspect_value
= functools.partial(<function Parameterized.inspect_value>, <class 'holoviews.plotting.mpl.stats.BivariatePlot'>) ¶
-
matches
( spec ) ¶ -
Matches a specification against the current Plot.
-
message
( msg , *args , **kw ) ¶ -
Print msg merged with args as a message.
See Python’s logging module for details of message formatting.
-
params
( parameter_name=None ) ¶ -
Return the Parameters of this class as the dictionary {name: parameter_object}
Includes Parameters from this class and its superclasses.
-
pprint
( imports=None , prefix=' ' , unknown_value='<?>' , qualify=False , separator='' ) ¶ -
(Experimental) Pretty printed representation that may be evaluated with eval. See pprint() function for more details.
-
print_param_defaults
( ) ¶ -
Print the default values of all cls’s Parameters.
-
print_param_values
( ) ¶ -
Print the values of all this object’s Parameters.
-
push
( ) ¶ -
Pushes updated plot data via the Comm.
-
refresh
( **kwargs ) ¶ -
Refreshes the plot by rerendering it and then pushing the updated data if the plot has an associated Comm.
-
script_repr
( imports=[] , prefix=' ' ) ¶ -
Variant of __repr__ designed for generating a runnable script.
-
set_default
( param_name , value ) ¶ -
Set the default value of param_name.
Equivalent to setting param_name on the class.
-
set_dynamic_time_fn
= functools.partial(<function Parameterized.set_dynamic_time_fn>, <class 'holoviews.plotting.mpl.stats.BivariatePlot'>) ¶
-
set_param
= functools.partial(<function Parameterized.set_param>, <class 'holoviews.plotting.mpl.stats.BivariatePlot'>) ¶
-
state_pop
( ) ¶ -
Restore the most recently saved state.
See state_push() for more details.
-
state_push
( ) ¶ -
Save this instance’s state.
For Parameterized instances, this includes the state of dynamically generated values.
Subclasses that maintain short-term state should additionally save and restore that state using state_push() and state_pop().
Generally, this method is used by operations that need to test something without permanently altering the objects’ state.
-
teardown_handles
( ) ¶ -
If no custom update_handles method is supplied this method is called to tear down any previous handles before replacing them.
-
traverse
( fn=None , specs=None , full_breadth=True ) ¶ -
Traverses any nested DimensionedPlot returning a list of all plots that match the specs. The specs should be supplied as a list of either Plot types or callables, which should return a boolean given the plot class.
-
verbose
( msg , *args , **kw ) ¶ -
Print msg merged with args as a verbose message.
See Python’s logging module for details of message formatting.
-
warning
( msg , *args , **kw ) ¶ -
Print msg merged with args as a warning, unless module variable warnings_as_exceptions is True, then raise an Exception containing the arguments.
See Python’s logging module for details of message formatting.
-
param Parameter
-
class
holoviews.plotting.mpl.stats.
DistributionPlot
( element , **params ) [source] ¶ -
Bases:
holoviews.plotting.mpl.chart.AreaPlot
DistributionPlot visualizes a distribution of values as a KDE.
-
param Parameter
fontsize
( allow_None=True, constant=False, default=None, instantiate=False, pickle_default_value=True, precedence=None, readonly=False ) - Specifies various fontsizes of the displayed text. Finer control is available by supplying a dictionary where any unmentioned keys reverts to the default sizes, e.g: {‘ticks’:20, ‘title’:15, ‘ylabel’:5, ‘xlabel’:5, ‘legend’:8, ‘legend_title’:13} You can set the fontsize of both ‘ylabel’ and ‘xlabel’ together using the ‘labels’ key.
-
param Boolean
show_title
( allow_None=False, bounds=(0, 1), constant=False, default=True, instantiate=False, pickle_default_value=True, precedence=None, readonly=False ) - Whether to display the plot title.
-
param String
title_format
( allow_None=False, basestring=<class ‘str’>, constant=False, default={label} {group} {dimensions}, instantiate=False, pickle_default_value=True, precedence=None, readonly=False ) - The formatting string for the title of this plot, allows defining a label group separator and dimension labels.
-
param Boolean
normalize
( allow_None=False, bounds=(0, 1), constant=False, default=True, instantiate=False, pickle_default_value=True, precedence=None, readonly=False ) - Whether to compute ranges across all Elements at this level of plotting. Allows selecting normalization at different levels for nested data containers.
-
param Parameter
projection
( allow_None=True, constant=False, default=None, instantiate=False, pickle_default_value=True, precedence=None, readonly=False ) - The projection of the plot axis, default of None is equivalent to 2D plot, ‘3d’ and ‘polar’ are also supported by matplotlib by default. May also supply a custom projection that is either a matplotlib projection type or implements the _as_mpl_axes method.
-
param Number
fig_alpha
( allow_None=False, bounds=(0, 1), constant=False, default=1.0, inclusive_bounds=(True, True), instantiate=False, pickle_default_value=True, precedence=None, readonly=False, softbounds=None, time_dependent=False, time_fn=<Time Time00001> ) - Alpha of the overall figure background.
-
param NumericTuple
fig_bounds
( allow_None=False, constant=False, default=(0.15, 0.15, 0.85, 0.85), instantiate=False, length=4, pickle_default_value=True, precedence=None, readonly=False ) - The bounds of the overall figure as a 4-tuple of the form (left, bottom, right, top), defining the size of the border around the subplots.
-
param Parameter
fig_inches
( allow_None=False, constant=False, default=4, instantiate=False, pickle_default_value=True, precedence=None, readonly=False ) - The overall matplotlib figure size in inches. May be set as an integer in which case it will be used to autocompute a size. Alternatively may be set with an explicit tuple or list, in which case it will be applied directly after being scaled by fig_size. If either the width or height is set to None, it will be computed automatically.
-
param Boolean
fig_latex
( allow_None=False, bounds=(0, 1), constant=False, default=False, instantiate=False, pickle_default_value=True, precedence=None, readonly=False ) - Whether to use LaTeX text in the overall figure.
-
param Dict
fig_rcparams
( allow_None=False, constant=False, default={}, instantiate=True, is_instance=True, pickle_default_value=True, precedence=None, readonly=False ) - matplotlib rc parameters to apply to the overall figure.
-
param Number
fig_size
( allow_None=False, bounds=(1, None), constant=False, default=100.0, inclusive_bounds=(True, True), instantiate=False, pickle_default_value=True, precedence=None, readonly=False, softbounds=None, time_dependent=False, time_fn=<Time Time00001> ) - Size relative to the supplied overall fig_inches in percent.
-
param HookList
initial_hooks
( allow_None=False, bounds=(0, None), constant=False, default=[], instantiate=True, pickle_default_value=True, precedence=None, readonly=False ) - Optional list of hooks called before plotting the data onto the axis. The hook is passed the plot object and the displayed object, other plotting handles can be accessed via plot.handles.
-
param HookList
final_hooks
( allow_None=False, bounds=(0, None), constant=False, default=[], instantiate=True, pickle_default_value=True, precedence=None, readonly=False ) - Optional list of hooks called when finalizing an axis. The hook is passed the plot object and the displayed object, other plotting handles can be accessed via plot.handles.
-
param HookList
finalize_hooks
( allow_None=False, bounds=(0, None), constant=False, default=[], instantiate=True, pickle_default_value=True, precedence=None, readonly=False ) - Optional list of hooks called when finalizing an axis. The hook is passed the plot object and the displayed object, other plotting handles can be accessed via plot.handles.
-
param String
sublabel_format
( allow_None=True, basestring=<class ‘str’>, constant=False, default=None, instantiate=False, pickle_default_value=True, precedence=None, readonly=False ) - Allows labeling the subaxes in each plot with various formatters including {Alpha}, {alpha}, {numeric} and {roman}.
-
param NumericTuple
sublabel_position
( allow_None=False, constant=False, default=(-0.35, 0.85), instantiate=False, length=2, pickle_default_value=True, precedence=None, readonly=False ) - Position relative to the plot for placing the optional subfigure label.
-
param Number
sublabel_size
( allow_None=False, bounds=None, constant=False, default=18, inclusive_bounds=(True, True), instantiate=False, pickle_default_value=True, precedence=None, readonly=False, softbounds=None, time_dependent=False, time_fn=<Time Time00001> ) - Size of optional subfigure label.
-
param Boolean
show_frame
( allow_None=False, bounds=(0, 1), constant=False, default=False, instantiate=False, pickle_default_value=True, precedence=None, readonly=False ) - Whether or not to show a complete frame around the plot.
-
param Boolean
apply_ranges
( allow_None=False, bounds=(0, 1), constant=False, default=True, instantiate=False, pickle_default_value=True, precedence=None, readonly=False ) - Whether to compute the plot bounds from the data itself.
-
param Boolean
apply_extents
( allow_None=False, bounds=(0, 1), constant=False, default=True, instantiate=False, pickle_default_value=True, precedence=None, readonly=False ) - Whether to apply extent overrides on the Elements
-
param Boolean
apply_ticks
( allow_None=False, bounds=(0, 1), constant=False, default=True, instantiate=False, pickle_default_value=True, precedence=None, readonly=False ) - Whether to apply custom ticks.
-
param Parameter
aspect
( allow_None=False, constant=False, default=square, instantiate=False, pickle_default_value=True, precedence=None, readonly=False ) - The aspect ratio mode of the plot. By default, a plot may select its own appropriate aspect ratio but sometimes it may be necessary to force a square aspect ratio (e.g. to display the plot as an element of a grid). The modes ‘auto’ and ‘equal’ correspond to the axis modes of the same name in matplotlib, a numeric value may also be passed.
-
param ClassSelector
bgcolor
( allow_None=True, constant=False, default=None, instantiate=True, is_instance=True, pickle_default_value=True, precedence=None, readonly=False ) - If set bgcolor overrides the background color of the axis.
-
param ObjectSelector
invert_axes
( allow_None=None, check_on_set=False, compute_default_fn=None, constant=False, default=False, instantiate=False, objects=[], pickle_default_value=True, precedence=None, readonly=False ) - Inverts the axes of the plot. Note that this parameter may not always be respected by all plots but should be respected by adjoined plots when appropriate.
-
param Boolean
invert_xaxis
( allow_None=False, bounds=(0, 1), constant=False, default=False, instantiate=False, pickle_default_value=True, precedence=None, readonly=False ) - Whether to invert the plot x-axis.
-
param Boolean
invert_yaxis
( allow_None=False, bounds=(0, 1), constant=False, default=False, instantiate=False, pickle_default_value=True, precedence=None, readonly=False ) - Whether to invert the plot y-axis.
-
param Boolean
invert_zaxis
( allow_None=False, bounds=(0, 1), constant=False, default=False, instantiate=False, pickle_default_value=True, precedence=None, readonly=False ) - Whether to invert the plot z-axis.
-
param List
labelled
( allow_None=False, bounds=(0, None), constant=False, default=[‘x’, ‘y’], instantiate=True, pickle_default_value=True, precedence=None, readonly=False ) - Whether to plot the ‘x’ and ‘y’ labels.
-
param Boolean
logx
( allow_None=False, bounds=(0, 1), constant=False, default=False, instantiate=False, pickle_default_value=True, precedence=None, readonly=False ) - Whether to apply log scaling to the x-axis of the Chart.
-
param Boolean
logy
( allow_None=False, bounds=(0, 1), constant=False, default=False, instantiate=False, pickle_default_value=True, precedence=None, readonly=False ) - Whether to apply log scaling to the y-axis of the Chart.
-
param Boolean
logz
( allow_None=False, bounds=(0, 1), constant=False, default=False, instantiate=False, pickle_default_value=True, precedence=None, readonly=False ) - Whether to apply log scaling to the y-axis of the Chart.
-
param Boolean
show_legend
( allow_None=False, bounds=(0, 1), constant=False, default=False, instantiate=False, pickle_default_value=True, precedence=None, readonly=False ) - Whether to show legend for the plot.
-
param Boolean
show_grid
( allow_None=False, bounds=(0, 1), constant=False, default=False, instantiate=False, pickle_default_value=True, precedence=None, readonly=False ) - Whether to show a Cartesian grid on the plot.
-
param ObjectSelector
xaxis
( allow_None=None, check_on_set=True, compute_default_fn=None, constant=False, default=bottom, instantiate=False, objects=[‘top’, ‘bottom’, ‘bare’, ‘top-bare’, ‘bottom-bare’, None], pickle_default_value=True, precedence=None, readonly=False ) - Whether and where to display the xaxis, bare options allow suppressing all axis labels including ticks and xlabel. Valid options are ‘top’, ‘bottom’, ‘bare’, ‘top-bare’ and ‘bottom-bare’.
-
param ObjectSelector
yaxis
( allow_None=None, check_on_set=True, compute_default_fn=None, constant=False, default=left, instantiate=False, objects=[‘left’, ‘right’, ‘bare’, ‘left-bare’, ‘right-bare’, None], pickle_default_value=True, precedence=None, readonly=False ) - Whether and where to display the yaxis, bare options allow suppressing all axis labels including ticks and ylabel. Valid options are ‘left’, ‘right’, ‘bare’ ‘left-bare’ and ‘right-bare’.
-
param Boolean
zaxis
( allow_None=False, bounds=(0, 1), constant=False, default=True, instantiate=False, pickle_default_value=True, precedence=None, readonly=False ) - Whether to display the z-axis.
-
param Parameter
xticks
( allow_None=True, constant=False, default=None, instantiate=False, pickle_default_value=True, precedence=None, readonly=False ) - Ticks along x-axis specified as an integer, explicit list of tick locations, list of tuples containing the locations and labels or a matplotlib tick locator object. If set to None default matplotlib ticking behavior is applied.
-
param Integer
xrotation
( allow_None=False, bounds=(0, 360), constant=False, default=0, inclusive_bounds=(True, True), instantiate=False, pickle_default_value=True, precedence=None, readonly=False, softbounds=None, time_dependent=False, time_fn=<Time Time00001> ) - Rotation angle of the xticks.
-
param Parameter
yticks
( allow_None=True, constant=False, default=None, instantiate=False, pickle_default_value=True, precedence=None, readonly=False ) - Ticks along y-axis specified as an integer, explicit list of tick locations, list of tuples containing the locations and labels or a matplotlib tick locator object. If set to None default matplotlib ticking behavior is applied.
-
param Integer
yrotation
( allow_None=False, bounds=(0, 360), constant=False, default=0, inclusive_bounds=(True, True), instantiate=False, pickle_default_value=True, precedence=None, readonly=False, softbounds=None, time_dependent=False, time_fn=<Time Time00001> ) - Rotation angle of the yticks.
-
param Integer
zrotation
( allow_None=False, bounds=(0, 360), constant=False, default=0, inclusive_bounds=(True, True), instantiate=False, pickle_default_value=True, precedence=None, readonly=False, softbounds=None, time_dependent=False, time_fn=<Time Time00001> ) - Rotation angle of the zticks.
-
param Parameter
zticks
( allow_None=True, constant=False, default=None, instantiate=False, pickle_default_value=True, precedence=None, readonly=False ) - Ticks along z-axis specified as an integer, explicit list of tick locations, list of tuples containing the locations and labels or a matplotlib tick locator object. If set to None default matplotlib ticking behavior is applied.
-
param Number
bandwidth
( allow_None=True, bounds=None, constant=False, default=None, inclusive_bounds=(True, True), instantiate=False, pickle_default_value=True, precedence=None, readonly=False, softbounds=None, time_dependent=False, time_fn=<Time Time00001> ) - The bandwidth of the kernel for the density estimate.
-
param Number
cut
( allow_None=False, bounds=None, constant=False, default=3, inclusive_bounds=(True, True), instantiate=False, pickle_default_value=True, precedence=None, readonly=False, softbounds=None, time_dependent=False, time_fn=<Time Time00001> ) - Draw the estimate to cut * bw from the extreme data points.
-
param Boolean
filled
( allow_None=False, bounds=(0, 1), constant=False, default=True, instantiate=False, pickle_default_value=True, precedence=None, readonly=False ) - Whether the bivariate contours should be filled.
-
anim
( start=0 , stop=None , fps=30 ) ¶ -
Method to return a matplotlib animation. The start and stop frames may be specified as well as the fps.
-
compute_ranges
( obj , key , ranges ) ¶ -
Given an object, a specific key and the normalization options this method will find the specified normalization options on the appropriate OptionTree, group the elements according to the selected normalization option (i.e. either per frame or over the whole animation) and finally compute the dimension ranges in each group. The new set of ranges is returned.
-
debug
( msg , *args , **kw ) ¶ -
Print msg merged with args as a debugging statement.
See Python’s logging module for details of message formatting.
-
defaults
( ) ¶ -
Return {parameter_name:parameter.default} for all non-constant Parameters.
Note that a Parameter for which instantiate==True has its default instantiated.
-
force_new_dynamic_value
= functools.partial(<function Parameterized.force_new_dynamic_value>, <class 'holoviews.plotting.mpl.stats.DistributionPlot'>) ¶
-
get_param_values
( onlychanged=False ) ¶ -
Return a list of name,value pairs for all Parameters of this object.
If onlychanged is True, will only return values that are not equal to the default value.
-
get_value_generator
= functools.partial(<function Parameterized.get_value_generator>, <class 'holoviews.plotting.mpl.stats.DistributionPlot'>) ¶
-
get_zorder
( overlay , key , el ) ¶ -
Computes the z-order of element in the NdOverlay taking into account possible batching of elements.
-
init_comm
( ) ¶ -
Initializes comm and attaches streams.
-
inspect_value
= functools.partial(<function Parameterized.inspect_value>, <class 'holoviews.plotting.mpl.stats.DistributionPlot'>) ¶
-
matches
( spec ) ¶ -
Matches a specification against the current Plot.
-
message
( msg , *args , **kw ) ¶ -
Print msg merged with args as a message.
See Python’s logging module for details of message formatting.
-
params
( parameter_name=None ) ¶ -
Return the Parameters of this class as the dictionary {name: parameter_object}
Includes Parameters from this class and its superclasses.
-
pprint
( imports=None , prefix=' ' , unknown_value='<?>' , qualify=False , separator='' ) ¶ -
(Experimental) Pretty printed representation that may be evaluated with eval. See pprint() function for more details.
-
print_param_defaults
( ) ¶ -
Print the default values of all cls’s Parameters.
-
print_param_values
( ) ¶ -
Print the values of all this object’s Parameters.
-
push
( ) ¶ -
Pushes updated plot data via the Comm.
-
refresh
( **kwargs ) ¶ -
Refreshes the plot by rerendering it and then pushing the updated data if the plot has an associated Comm.
-
script_repr
( imports=[] , prefix=' ' ) ¶ -
Variant of __repr__ designed for generating a runnable script.
-
set_default
( param_name , value ) ¶ -
Set the default value of param_name.
Equivalent to setting param_name on the class.
-
set_dynamic_time_fn
= functools.partial(<function Parameterized.set_dynamic_time_fn>, <class 'holoviews.plotting.mpl.stats.DistributionPlot'>) ¶
-
set_param
= functools.partial(<function Parameterized.set_param>, <class 'holoviews.plotting.mpl.stats.DistributionPlot'>) ¶
-
state_pop
( ) ¶ -
Restore the most recently saved state.
See state_push() for more details.
-
state_push
( ) ¶ -
Save this instance’s state.
For Parameterized instances, this includes the state of dynamically generated values.
Subclasses that maintain short-term state should additionally save and restore that state using state_push() and state_pop().
Generally, this method is used by operations that need to test something without permanently altering the objects’ state.
-
teardown_handles
( ) ¶ -
If no custom update_handles method is supplied this method is called to tear down any previous handles before replacing them.
-
traverse
( fn=None , specs=None , full_breadth=True ) ¶ -
Traverses any nested DimensionedPlot returning a list of all plots that match the specs. The specs should be supplied as a list of either Plot types or callables, which should return a boolean given the plot class.
-
update_handles
( key , axis , element , ranges , style ) ¶ -
Update the elements of the plot.
-
verbose
( msg , *args , **kw ) ¶ -
Print msg merged with args as a verbose message.
See Python’s logging module for details of message formatting.
-
warning
( msg , *args , **kw ) ¶ -
Print msg merged with args as a warning, unless module variable warnings_as_exceptions is True, then raise an Exception containing the arguments.
See Python’s logging module for details of message formatting.
-
param Parameter
tabular
Module
¶
-
class
holoviews.plotting.mpl.tabular.
TablePlot
( table , **params ) [source] ¶ -
Bases:
holoviews.plotting.mpl.element.ElementPlot
A TablePlot can plot both TableViews and ViewMaps which display as either a single static table or as an animated table respectively.
-
param Parameter
fontsize
( allow_None=True, constant=False, default=None, instantiate=False, pickle_default_value=True, precedence=None, readonly=False ) - Specifies various fontsizes of the displayed text. Finer control is available by supplying a dictionary where any unmentioned keys reverts to the default sizes, e.g: {‘ticks’:20, ‘title’:15, ‘ylabel’:5, ‘xlabel’:5, ‘legend’:8, ‘legend_title’:13} You can set the fontsize of both ‘ylabel’ and ‘xlabel’ together using the ‘labels’ key.
-
param Boolean
show_title
( allow_None=False, bounds=(0, 1), constant=False, default=True, instantiate=False, pickle_default_value=True, precedence=None, readonly=False ) - Whether to display the plot title.
-
param String
title_format
( allow_None=False, basestring=<class ‘str’>, constant=False, default={label} {group} {dimensions}, instantiate=False, pickle_default_value=True, precedence=None, readonly=False ) - The formatting string for the title of this plot, allows defining a label group separator and dimension labels.
-
param Boolean
normalize
( allow_None=False, bounds=(0, 1), constant=False, default=True, instantiate=False, pickle_default_value=True, precedence=None, readonly=False ) - Whether to compute ranges across all Elements at this level of plotting. Allows selecting normalization at different levels for nested data containers.
-
param Parameter
projection
( allow_None=True, constant=False, default=None, instantiate=False, pickle_default_value=True, precedence=None, readonly=False ) - The projection of the plot axis, default of None is equivalent to 2D plot, ‘3d’ and ‘polar’ are also supported by matplotlib by default. May also supply a custom projection that is either a matplotlib projection type or implements the _as_mpl_axes method.
-
param Number
fig_alpha
( allow_None=False, bounds=(0, 1), constant=False, default=1.0, inclusive_bounds=(True, True), instantiate=False, pickle_default_value=True, precedence=None, readonly=False, softbounds=None, time_dependent=False, time_fn=<Time Time00001> ) - Alpha of the overall figure background.
-
param NumericTuple
fig_bounds
( allow_None=False, constant=False, default=(0.15, 0.15, 0.85, 0.85), instantiate=False, length=4, pickle_default_value=True, precedence=None, readonly=False ) - The bounds of the overall figure as a 4-tuple of the form (left, bottom, right, top), defining the size of the border around the subplots.
-
param Parameter
fig_inches
( allow_None=False, constant=False, default=4, instantiate=False, pickle_default_value=True, precedence=None, readonly=False ) - The overall matplotlib figure size in inches. May be set as an integer in which case it will be used to autocompute a size. Alternatively may be set with an explicit tuple or list, in which case it will be applied directly after being scaled by fig_size. If either the width or height is set to None, it will be computed automatically.
-
param Boolean
fig_latex
( allow_None=False, bounds=(0, 1), constant=False, default=False, instantiate=False, pickle_default_value=True, precedence=None, readonly=False ) - Whether to use LaTeX text in the overall figure.
-
param Dict
fig_rcparams
( allow_None=False, constant=False, default={}, instantiate=True, is_instance=True, pickle_default_value=True, precedence=None, readonly=False ) - matplotlib rc parameters to apply to the overall figure.
-
param Number
fig_size
( allow_None=False, bounds=(1, None), constant=False, default=100.0, inclusive_bounds=(True, True), instantiate=False, pickle_default_value=True, precedence=None, readonly=False, softbounds=None, time_dependent=False, time_fn=<Time Time00001> ) - Size relative to the supplied overall fig_inches in percent.
-
param HookList
initial_hooks
( allow_None=False, bounds=(0, None), constant=False, default=[], instantiate=True, pickle_default_value=True, precedence=None, readonly=False ) - Optional list of hooks called before plotting the data onto the axis. The hook is passed the plot object and the displayed object, other plotting handles can be accessed via plot.handles.
-
param HookList
final_hooks
( allow_None=False, bounds=(0, None), constant=False, default=[], instantiate=True, pickle_default_value=True, precedence=None, readonly=False ) - Optional list of hooks called when finalizing an axis. The hook is passed the plot object and the displayed object, other plotting handles can be accessed via plot.handles.
-
param HookList
finalize_hooks
( allow_None=False, bounds=(0, None), constant=False, default=[], instantiate=True, pickle_default_value=True, precedence=None, readonly=False ) - Optional list of hooks called when finalizing an axis. The hook is passed the plot object and the displayed object, other plotting handles can be accessed via plot.handles.
-
param String
sublabel_format
( allow_None=True, basestring=<class ‘str’>, constant=False, default=None, instantiate=False, pickle_default_value=True, precedence=None, readonly=False ) - Allows labeling the subaxes in each plot with various formatters including {Alpha}, {alpha}, {numeric} and {roman}.
-
param NumericTuple
sublabel_position
( allow_None=False, constant=False, default=(-0.35, 0.85), instantiate=False, length=2, pickle_default_value=True, precedence=None, readonly=False ) - Position relative to the plot for placing the optional subfigure label.
-
param Number
sublabel_size
( allow_None=False, bounds=None, constant=False, default=18, inclusive_bounds=(True, True), instantiate=False, pickle_default_value=True, precedence=None, readonly=False, softbounds=None, time_dependent=False, time_fn=<Time Time00001> ) - Size of optional subfigure label.
-
param Boolean
show_frame
( allow_None=False, bounds=(0, 1), constant=False, default=False, instantiate=False, pickle_default_value=True, precedence=None, readonly=False ) - Whether or not to show a complete frame around the plot.
-
param Boolean
apply_ranges
( allow_None=False, bounds=(0, 1), constant=False, default=True, instantiate=False, pickle_default_value=True, precedence=None, readonly=False ) - Whether to compute the plot bounds from the data itself.
-
param Boolean
apply_extents
( allow_None=False, bounds=(0, 1), constant=False, default=True, instantiate=False, pickle_default_value=True, precedence=None, readonly=False ) - Whether to apply extent overrides on the Elements
-
param Boolean
apply_ticks
( allow_None=False, bounds=(0, 1), constant=False, default=True, instantiate=False, pickle_default_value=True, precedence=None, readonly=False ) - Whether to apply custom ticks.
-
param Parameter
aspect
( allow_None=False, constant=False, default=square, instantiate=False, pickle_default_value=True, precedence=None, readonly=False ) - The aspect ratio mode of the plot. By default, a plot may select its own appropriate aspect ratio but sometimes it may be necessary to force a square aspect ratio (e.g. to display the plot as an element of a grid). The modes ‘auto’ and ‘equal’ correspond to the axis modes of the same name in matplotlib, a numeric value may also be passed.
-
param ClassSelector
bgcolor
( allow_None=True, constant=False, default=None, instantiate=True, is_instance=True, pickle_default_value=True, precedence=None, readonly=False ) - If set bgcolor overrides the background color of the axis.
-
param ObjectSelector
invert_axes
( allow_None=None, check_on_set=False, compute_default_fn=None, constant=False, default=False, instantiate=False, objects=[], pickle_default_value=True, precedence=None, readonly=False ) - Inverts the axes of the plot. Note that this parameter may not always be respected by all plots but should be respected by adjoined plots when appropriate.
-
param Boolean
invert_xaxis
( allow_None=False, bounds=(0, 1), constant=False, default=False, instantiate=False, pickle_default_value=True, precedence=None, readonly=False ) - Whether to invert the plot x-axis.
-
param Boolean
invert_yaxis
( allow_None=False, bounds=(0, 1), constant=False, default=False, instantiate=False, pickle_default_value=True, precedence=None, readonly=False ) - Whether to invert the plot y-axis.
-
param Boolean
invert_zaxis
( allow_None=False, bounds=(0, 1), constant=False, default=False, instantiate=False, pickle_default_value=True, precedence=None, readonly=False ) - Whether to invert the plot z-axis.
-
param List
labelled
( allow_None=False, bounds=(0, None), constant=False, default=[‘x’, ‘y’], instantiate=True, pickle_default_value=True, precedence=None, readonly=False ) - Whether to plot the ‘x’ and ‘y’ labels.
-
param Boolean
logx
( allow_None=False, bounds=(0, 1), constant=False, default=False, instantiate=False, pickle_default_value=True, precedence=None, readonly=False ) - Whether to apply log scaling to the x-axis of the Chart.
-
param Boolean
logy
( allow_None=False, bounds=(0, 1), constant=False, default=False, instantiate=False, pickle_default_value=True, precedence=None, readonly=False ) - Whether to apply log scaling to the y-axis of the Chart.
-
param Boolean
logz
( allow_None=False, bounds=(0, 1), constant=False, default=False, instantiate=False, pickle_default_value=True, precedence=None, readonly=False ) - Whether to apply log scaling to the y-axis of the Chart.
-
param Boolean
show_legend
( allow_None=False, bounds=(0, 1), constant=False, default=False, instantiate=False, pickle_default_value=True, precedence=None, readonly=False ) - Whether to show legend for the plot.
-
param Boolean
show_grid
( allow_None=False, bounds=(0, 1), constant=False, default=False, instantiate=False, pickle_default_value=True, precedence=None, readonly=False ) - Whether to show a Cartesian grid on the plot.
-
param ObjectSelector
xaxis
( allow_None=None, check_on_set=True, compute_default_fn=None, constant=False, default=bottom, instantiate=False, objects=[‘top’, ‘bottom’, ‘bare’, ‘top-bare’, ‘bottom-bare’, None], pickle_default_value=True, precedence=None, readonly=False ) - Whether and where to display the xaxis, bare options allow suppressing all axis labels including ticks and xlabel. Valid options are ‘top’, ‘bottom’, ‘bare’, ‘top-bare’ and ‘bottom-bare’.
-
param ObjectSelector
yaxis
( allow_None=None, check_on_set=True, compute_default_fn=None, constant=False, default=left, instantiate=False, objects=[‘left’, ‘right’, ‘bare’, ‘left-bare’, ‘right-bare’, None], pickle_default_value=True, precedence=None, readonly=False ) - Whether and where to display the yaxis, bare options allow suppressing all axis labels including ticks and ylabel. Valid options are ‘left’, ‘right’, ‘bare’ ‘left-bare’ and ‘right-bare’.
-
param Boolean
zaxis
( allow_None=False, bounds=(0, 1), constant=False, default=True, instantiate=False, pickle_default_value=True, precedence=None, readonly=False ) - Whether to display the z-axis.
-
param Parameter
xticks
( allow_None=True, constant=False, default=None, instantiate=False, pickle_default_value=True, precedence=None, readonly=False ) - Ticks along x-axis specified as an integer, explicit list of tick locations, list of tuples containing the locations and labels or a matplotlib tick locator object. If set to None default matplotlib ticking behavior is applied.
-
param Integer
xrotation
( allow_None=False, bounds=(0, 360), constant=False, default=0, inclusive_bounds=(True, True), instantiate=False, pickle_default_value=True, precedence=None, readonly=False, softbounds=None, time_dependent=False, time_fn=<Time Time00001> ) - Rotation angle of the xticks.
-
param Parameter
yticks
( allow_None=True, constant=False, default=None, instantiate=False, pickle_default_value=True, precedence=None, readonly=False ) - Ticks along y-axis specified as an integer, explicit list of tick locations, list of tuples containing the locations and labels or a matplotlib tick locator object. If set to None default matplotlib ticking behavior is applied.
-
param Integer
yrotation
( allow_None=False, bounds=(0, 360), constant=False, default=0, inclusive_bounds=(True, True), instantiate=False, pickle_default_value=True, precedence=None, readonly=False, softbounds=None, time_dependent=False, time_fn=<Time Time00001> ) - Rotation angle of the yticks.
-
param Integer
zrotation
( allow_None=False, bounds=(0, 360), constant=False, default=0, inclusive_bounds=(True, True), instantiate=False, pickle_default_value=True, precedence=None, readonly=False, softbounds=None, time_dependent=False, time_fn=<Time Time00001> ) - Rotation angle of the zticks.
-
param Parameter
zticks
( allow_None=True, constant=False, default=None, instantiate=False, pickle_default_value=True, precedence=None, readonly=False ) - Ticks along z-axis specified as an integer, explicit list of tick locations, list of tuples containing the locations and labels or a matplotlib tick locator object. If set to None default matplotlib ticking behavior is applied.
-
param Number
border
( allow_None=False, bounds=(0.0, 0.5), constant=False, default=0.05, inclusive_bounds=(True, True), instantiate=False, pickle_default_value=True, precedence=None, readonly=False, softbounds=None, time_dependent=False, time_fn=<Time Time00001> ) - The fraction of the plot that should be empty around the edges.
-
param Integer
float_precision
( allow_None=False, bounds=None, constant=False, default=3, inclusive_bounds=(True, True), instantiate=False, pickle_default_value=True, precedence=None, readonly=False, softbounds=None, time_dependent=False, time_fn=<Time Time00001> ) - The floating point precision to use when printing float numeric data types.
-
param Integer
max_value_len
( allow_None=False, bounds=None, constant=False, default=20, inclusive_bounds=(True, True), instantiate=False, pickle_default_value=True, precedence=None, readonly=False, softbounds=None, time_dependent=False, time_fn=<Time Time00001> ) - The maximum allowable string length of a value shown in any table cell. Any strings longer than this length will be truncated.
-
param Integer
max_font_size
( allow_None=False, bounds=None, constant=False, default=12, inclusive_bounds=(True, True), instantiate=False, pickle_default_value=True, precedence=None, readonly=False, softbounds=None, time_dependent=False, time_fn=<Time Time00001> ) - The largest allowable font size for the text in each table cell.
-
param Integer
max_rows
( allow_None=False, bounds=None, constant=False, default=15, inclusive_bounds=(True, True), instantiate=False, pickle_default_value=True, precedence=None, readonly=False, softbounds=None, time_dependent=False, time_fn=<Time Time00001> ) - The maximum number of Table rows before the table is summarized.
-
param Dict
font_types
( allow_None=False, constant=False, default={‘heading’: <matplotlib.font_manager.FontProperties object at 0x7ff40f93b278>}, instantiate=True, is_instance=True, pickle_default_value=True, precedence=None, readonly=False ) - The font style used for heading labels used for emphasis.
-
anim
( start=0 , stop=None , fps=30 ) ¶ -
Method to return a matplotlib animation. The start and stop frames may be specified as well as the fps.
-
compute_ranges
( obj , key , ranges ) ¶ -
Given an object, a specific key and the normalization options this method will find the specified normalization options on the appropriate OptionTree, group the elements according to the selected normalization option (i.e. either per frame or over the whole animation) and finally compute the dimension ranges in each group. The new set of ranges is returned.
-
debug
( msg , *args , **kw ) ¶ -
Print msg merged with args as a debugging statement.
See Python’s logging module for details of message formatting.
-
defaults
( ) ¶ -
Return {parameter_name:parameter.default} for all non-constant Parameters.
Note that a Parameter for which instantiate==True has its default instantiated.
-
force_new_dynamic_value
= functools.partial(<function Parameterized.force_new_dynamic_value>, <class 'holoviews.plotting.mpl.tabular.TablePlot'>) ¶
-
get_extents
( view , ranges ) ¶ -
Gets the extents for the axes from the current View. The globally computed ranges can optionally override the extents.
-
get_param_values
( onlychanged=False ) ¶ -
Return a list of name,value pairs for all Parameters of this object.
If onlychanged is True, will only return values that are not equal to the default value.
-
get_value_generator
= functools.partial(<function Parameterized.get_value_generator>, <class 'holoviews.plotting.mpl.tabular.TablePlot'>) ¶
-
get_zorder
( overlay , key , el ) ¶ -
Computes the z-order of element in the NdOverlay taking into account possible batching of elements.
-
init_artists
( ax , plot_args , plot_kwargs ) ¶ -
Initializes the artist based on the plot method declared on the plot.
-
init_comm
( ) ¶ -
Initializes comm and attaches streams.
-
inspect_value
= functools.partial(<function Parameterized.inspect_value>, <class 'holoviews.plotting.mpl.tabular.TablePlot'>) ¶
-
matches
( spec ) ¶ -
Matches a specification against the current Plot.
-
message
( msg , *args , **kw ) ¶ -
Print msg merged with args as a message.
See Python’s logging module for details of message formatting.
-
params
( parameter_name=None ) ¶ -
Return the Parameters of this class as the dictionary {name: parameter_object}
Includes Parameters from this class and its superclasses.
-
pprint
( imports=None , prefix=' ' , unknown_value='<?>' , qualify=False , separator='' ) ¶ -
(Experimental) Pretty printed representation that may be evaluated with eval. See pprint() function for more details.
-
print_param_defaults
( ) ¶ -
Print the default values of all cls’s Parameters.
-
print_param_values
( ) ¶ -
Print the values of all this object’s Parameters.
-
push
( ) ¶ -
Pushes updated plot data via the Comm.
-
refresh
( **kwargs ) ¶ -
Refreshes the plot by rerendering it and then pushing the updated data if the plot has an associated Comm.
-
script_repr
( imports=[] , prefix=' ' ) ¶ -
Variant of __repr__ designed for generating a runnable script.
-
set_default
( param_name , value ) ¶ -
Set the default value of param_name.
Equivalent to setting param_name on the class.
-
set_dynamic_time_fn
= functools.partial(<function Parameterized.set_dynamic_time_fn>, <class 'holoviews.plotting.mpl.tabular.TablePlot'>) ¶
-
set_param
= functools.partial(<function Parameterized.set_param>, <class 'holoviews.plotting.mpl.tabular.TablePlot'>) ¶
-
state_pop
( ) ¶ -
Restore the most recently saved state.
See state_push() for more details.
-
state_push
( ) ¶ -
Save this instance’s state.
For Parameterized instances, this includes the state of dynamically generated values.
Subclasses that maintain short-term state should additionally save and restore that state using state_push() and state_pop().
Generally, this method is used by operations that need to test something without permanently altering the objects’ state.
-
teardown_handles
( ) ¶ -
If no custom update_handles method is supplied this method is called to tear down any previous handles before replacing them.
-
traverse
( fn=None , specs=None , full_breadth=True ) ¶ -
Traverses any nested DimensionedPlot returning a list of all plots that match the specs. The specs should be supplied as a list of either Plot types or callables, which should return a boolean given the plot class.
-
verbose
( msg , *args , **kw ) ¶ -
Print msg merged with args as a verbose message.
See Python’s logging module for details of message formatting.
-
warning
( msg , *args , **kw ) ¶ -
Print msg merged with args as a warning, unless module variable warnings_as_exceptions is True, then raise an Exception containing the arguments.
See Python’s logging module for details of message formatting.
-
param Parameter
util
Module
¶
-
holoviews.plotting.mpl.util.
axis_overlap
( ax1 , ax2 ) [source] ¶ -
Tests whether two axes overlap vertically
-
holoviews.plotting.mpl.util.
fix_aspect
( fig , nrows , ncols , title=None , extra_artists=[] , vspace=0.2 , hspace=0.2 ) [source] ¶ -
Calculate heights and widths of axes and adjust the size of the figure to match the aspect.
-
holoviews.plotting.mpl.util.
get_raster_array
( image ) [source] ¶ -
Return the array data from any Raster or Image type
-
holoviews.plotting.mpl.util.
get_tight_bbox
( fig , bbox_extra_artists=[] , pad=None ) [source] ¶ -
Compute a tight bounding box around all the artists in the figure.