xyzpy.plot.plotter_matplotlib#

Functions for plotting datasets nicely.

Functions

add_visualize_legend(ax, complexobj, max_mag)

auto_heatmap(x, **heatmap_opts)

Auto version of heatmap() that accepts array arguments by converting them to a Dataset first.

auto_histogram(x, **histogram_opts)

Auto version of histogram() that accepts array arguments by converting them to a Dataset first.

auto_lineplot(x, y_z, **lineplot_opts)

Auto version of lineplot() that accepts array arguments by converting them to a Dataset first.

auto_scatter(x, y_z, **scatter_opts)

Auto version of scatter() that accepts array arguments by converting them to a Dataset first.

choose_squarest_grid(x)

handle_sequence_of_arrays(f)

Simple wrapper to handle sequence of arrays as input to e.g. visualize_tensor.

heatmap(ds, x, y, z, **kwargs)

From ds plot variable z as a function of x and y using a 2D heatmap.

histogram(ds, x[, z])

Dataset histogram.

lineplot(ds, x, y[, z, y_err, x_err])

From ds plot lines of y as a function of x, optionally for varying z.

make_ax_square_after_plotted(ax)

mpl_multi_plot(fn)

Decorate a plotting function to plot a grid of values.

scatter(ds, x, y[, z, y_err, x_err])

From ds plot a scatter of y against x, optionally for varying z.

setup_fig_ax([nrows, ncols, facecolor, ...])

show_and_close(fn)

to_colors(zs[, magscale, max_mag, ...])

visualize_matrix(array[, max_mag, magscale, ...])

Visualize array as a 2D colormapped image.

visualize_tensor(array[, spacing_factor, ...])

Visualize all entries of a tensor, with indices mapped into the plane and values mapped into a color wheel.

Classes

AutoHeatMap(x, **heatmap_opts)

AutoHistogram(x, **histogram_opts)

AutoLinePlot(x, y_z, **lineplot_opts)

AutoScatter(x, y_z, **scatter_opts)

HeatMap(ds, x, y, z, **kwargs)

Histogram(ds, x[, z])

LinePlot(ds, x, y[, z, y_err, x_err])

PlotterMatplotlib(ds, x, y[, z, y_err, x_err])

Scatter(ds, x, y[, z])