opal.visualization.statistics package
opal.visualization.statistics.impl_plots module
- opal.visualization.statistics.impl_plots.plot_classification(xdata, xlab, ydata, ylab, value)[source]
Scatter plot where the points are colored according the value of the probability density function pdf(x, y) computed through kernel density estimation.
- Parameters:
xdata (array_like) – Data of x-axis
xlab (str) – Label of x-axis data
ydata (array_like) – Data oy y-axis
ylab (str) – Label of y-axis data
value (float) – Boundary value of classification
- Returns:
Plot handle
- Return type:
matplotlib.pyplot
- opal.visualization.statistics.impl_plots.plot_density(xdata, xlab, ydata, ylab, clab, **kwargs)[source]
Do a joint plot (marginals + contour / scatter).
- Parameters:
xdata (array_like) – Data of x-axis
xlab (str) – Label of x-axis data
ydata (array_like) – Data oy y-axis
ylab (str) – Label of y-axis data
clab (str) – Label of colorbar
nxbin (int, optional) – Number of bins for x-axis
nybin (int, optional) – Number of bins for y-axis
cmap (str, optional) – Colormap
shading (bool, optional) – If true, it uses ‘gouraud’ shading, else ‘flat’ shading
xlim (tuple, optional) – If not specified use data to compute limits
ylim (tuple, optional) – If not specified use data to compute limits
References
https://matplotlib.org/examples/pylab_examples/pcolor_demo.html
- Returns:
Plot handle
- Return type:
matplotlib.pyplot
- opal.visualization.statistics.impl_plots.plot_joint(xdata, xlab, ydata, ylab, join, **kwargs)[source]
Do a joint plot (marginals + contour / scatter).
- Parameters:
xdata (array_like) – Data of x-axis
xlab (str) – Label of x-axis data
ydata (array_like) – Data oy y-axis
ylab (str) – Label of y-axis data
join (str) – ‘all’, ‘contour’ or ‘scatter’
marginals (str, optional) – ‘hist’, ‘kde’, ‘rug’ or combination separated by ‘+’, eg. ‘hist+kde’
size (int, optional) – Size of plot
cmap (str, optional) – Colormap
References
https://seaborn.pydata.org/generated/seaborn.JointGrid.html
- Returns:
Plot handle
- Return type:
matplotlib.pyplot