plotting Module

Provides capabilities for plotting DataSets.

@author: drusk

pml.utils.plotting.plot_percent_series(series, plot_type)[source]

Plots a series of values against a y axis formatted for percentages.

Args:
dataset: model.DataSet
The data set whose principal components will be examined. Should not already be reduced.
plot_type: string
The plot type to generate. Supported plot types are:
‘bar’: vertical bar chart ‘barh’: horizontal bar chart ‘line’: line chart

Default is ‘bar’.

Returns:
void, but produces a matplotlib plot.
Raises:
UnsupportedPlotTypeError if plot_type is not recognized.
pml.utils.plotting.plot_radviz(dataset)[source]

Generates a RadViz plot of the provided DataSet. RadViz is useful for visualizing data with more than two dimensions.

pml.utils.plotting.verify_supported_series_plot_type(plot_type)[source]

Checks if a plot type is among those supported for plotting a series.

Args:
plot_type: string
The plot type to generate. Supported plot types are:
‘bar’: vertical bar chart ‘barh’: horizontal bar chart ‘line’: line chart
Returns:
void
Raises:
UnsupportedPlotTypeError if the plot type is not supported.

Project Versions

Previous topic

pca Module

Next topic

tree_plotting Module

This Page