Public Member Functions | |
__init__ (self, figure=None, axis=None, dpi=None) | |
add_subplot (self, gridspecs) | |
save (self, filename) | |
set_plot_options (self, plot_kwargs={ 'linestyle':''}) | |
set_errorbar_options (self, errorbar_kwargs={ 'fmt':'.', 'elinewidth':3, 'alpha':1}) | |
Overrides default errorbar options for datapoint errorbars. | |
set_errorband_options (self, errorband_kwargs={ 'alpha':0.5}) | |
set_fill_options (self, fill_kwargs=None) | |
add (self, *args, **kwargs) | |
setAxisLimits (self, factor=0.0) | |
finish (self, *args, **kwargs) | |
scale_limits (self) | |
Public Attributes | |
dpi = dpi | |
set default dpi | |
plot_kwargs = None | |
create figure | |
errorbar_kwargs = None | |
Default keyword arguments for errorbar function. | |
errorband_kwargs = None | |
Default keyword arguments for errorband function. | |
fill_kwargs = None | |
Default keyword arguments for fill_between function. | |
prop_cycler = itertools.cycle(plt.rcParams["axes.prop_cycle"]) | |
Property cycler used to give plots unique colors. | |
Static Public Attributes | |
list | plots = None |
Plots added to the axis so far. | |
list | labels = None |
Labels of the plots added so far. | |
xmin = None | |
Minimum x value. | |
xmax = None | |
Maximum x value. | |
ymin = None | |
Minimum y value. | |
ymax = None | |
Maximum y value. | |
float | yscale = 0.0 |
create figure | |
float | xscale = 0.0 |
create figure | |
figure = None | |
figure which is used to draw | |
axis = None | |
Main axis which is used to draw. | |
Protected Member Functions | |
_plot_datapoints (self, axis, x, y, xerr=None, yerr=None) | |
Base class for all Plotters.
Definition at line 43 of file plotting.py.
__init__ | ( | self, | |
figure = None, | |||
axis = None, | |||
dpi = None ) |
Creates a new figure and axis if None is given, sets the default plot parameters @param figure default draw figure which is used @param axis default draw axis which is used @param dpi dpi for the matplotlib figure, if None default is used
Definition at line 77 of file plotting.py.
|
protected |
Plot the given datapoints, with plot, errorbar and make a errorband with fill_between @param x coordinates of the data points @param y coordinates of the data points @param xerr symmetric error on x data points @param yerr symmetric error on y data points
Definition at line 184 of file plotting.py.
add | ( | self, | |
* | args, | ||
** | kwargs ) |
Add a new plot to this plotter
Reimplemented in Box, Correlation, CorrelationMatrix, Diagonal, Difference, Distribution, Importance, Multiplot, Overtraining, PrecisionRecallCurve, PurityAndEfficiencyOverCut, PurityOverEfficiency, RejectionOverEfficiency, SignalToNoiseOverCut, TrueVsFalsePositiveRate, TSNE, and VerboseDistribution.
Definition at line 257 of file plotting.py.
add_subplot | ( | self, | |
gridspecs ) |
Adds a new subplot to the figure, updates all other axes according to the given gridspec @param gridspecs gridspecs for all axes including the new one
Definition at line 129 of file plotting.py.
finish | ( | self, | |
* | args, | ||
** | kwargs ) |
Finish plotting and set labels, legends and stuff
Reimplemented in Box, Correlation, CorrelationMatrix, Diagonal, Difference, Distribution, Importance, Multiplot, Overtraining, PrecisionRecallCurve, PurityAndEfficiencyOverCut, PurityOverEfficiency, RejectionOverEfficiency, SignalToNoiseOverCut, TrueVsFalsePositiveRate, TSNE, and VerboseDistribution.
Definition at line 275 of file plotting.py.
save | ( | self, | |
filename ) |
Save the figure into a file @param filename of the file
Definition at line 141 of file plotting.py.
scale_limits | ( | self | ) |
Scale limits to increase distance to boundaries
Definition at line 281 of file plotting.py.
set_errorband_options | ( | self, | |
errorband_kwargs = {'alpha': 0.5} ) |
Overrides default errorband options for datapoint errorband @param errorbar_kwargs keyword arguments for the fill_between function
Definition at line 168 of file plotting.py.
set_errorbar_options | ( | self, | |
errorbar_kwargs = {'fmt': '.', 'elinewidth': 3, 'alpha': 1} ) |
Overrides default errorbar options for datapoint errorbars.
Overrides default errorbar options for datapoint errorbars @param errorbar_kwargs keyword arguments for the errorbar function
Definition at line 160 of file plotting.py.
set_fill_options | ( | self, | |
fill_kwargs = None ) |
Overrides default fill_between options for datapoint errorband @param fill_kwargs keyword arguments for the fill_between function
Definition at line 176 of file plotting.py.
set_plot_options | ( | self, | |
plot_kwargs = {'linestyle': ''} ) |
Overrides default plot options for datapoint plot @param plot_kwargs keyword arguments for the plot function
Definition at line 152 of file plotting.py.
setAxisLimits | ( | self, | |
factor = 0.0 ) |
Sets the limits of the axis with an optional expansion factor. Parameters: factor (float): Fraction by which to expand the axis limits beyond the data range.
Definition at line 263 of file plotting.py.
|
static |
Main axis which is used to draw.
divide figure into subplots
Definition at line 75 of file plotting.py.
dpi = dpi |
set default dpi
Definition at line 86 of file plotting.py.
errorband_kwargs = None |
Default keyword arguments for errorband function.
Definition at line 117 of file plotting.py.
errorbar_kwargs = None |
Default keyword arguments for errorbar function.
Definition at line 115 of file plotting.py.
|
static |
figure which is used to draw
Definition at line 73 of file plotting.py.
fill_kwargs = None |
Default keyword arguments for fill_between function.
Definition at line 119 of file plotting.py.
|
static |
Labels of the plots added so far.
divide figure into subplots
create empty list for plots
create empty list for labels
Definition at line 61 of file plotting.py.
plot_kwargs = None |
create figure
divide figure into subplots
create empty list for plots
create empty list for labels
set x limits
set y limits
y limit scale
x limit scale
Default keyword arguments for plot function
Definition at line 113 of file plotting.py.
|
static |
Plots added to the axis so far.
divide figure into subplots
create empty list for plots
Definition at line 59 of file plotting.py.
prop_cycler = itertools.cycle(plt.rcParams["axes.prop_cycle"]) |
Property cycler used to give plots unique colors.
Definition at line 127 of file plotting.py.
|
static |
Maximum x value.
divide figure into subplots
create empty list for plots
create empty list for labels
set x limits
Definition at line 65 of file plotting.py.
|
static |
Minimum x value.
create figure
divide figure into subplots
create empty list for plots
create empty list for labels
set x limits
Definition at line 63 of file plotting.py.
|
static |
create figure
limit scale
divide figure into subplots
create empty list for plots
create empty list for labels
set x limits
set y limits
y limit scale
x limit scale
Definition at line 71 of file plotting.py.
|
static |
Maximum y value.
divide figure into subplots
create empty list for plots
create empty list for labels
set x limits
set y limits
Definition at line 69 of file plotting.py.
|
static |
Minimum y value.
create figure
divide figure into subplots
create empty list for plots
create empty list for labels
set x limits
set y limits
Definition at line 67 of file plotting.py.
|
static |
create figure
limit scale
divide figure into subplots
create empty list for plots
create empty list for labels
set x limits
set y limits
y limit scale
Definition at line 70 of file plotting.py.