Plotting¶
Plots and movies¶
- pigreads.plot.imshow_defaults(array=None, sim=None, dx=None, dy=None, Nx=None, Ny=None, **kwargs)¶
Set default imshow arguments.
- Parameters:
- Return type:
- Returns:
Dictionary of arguments for
matplotlib.pyplot.imshow().
- pigreads.plot.movie(path, frames, dpi=180, fps=15, tlables=None, progress='none', progress_dict=None, parallel=1, **kwargs)¶
Render a chunk of frames to a movie file, with optional parallelization.
- Parameters:
path (
str) – Path to write the movie file to.dpi (
int) – Dots per inch. (default:180)fps (
int) – Frames per second. (default:15)tlables (
list[str] |None) – List of time labels. (default:None)progress (
str) – Progress bar type. (default:'none')progress_dict (
dict[str,int] |None) – Dictionary to store progress. (default:None)parallel (
int) – Number of processes (default 1, 0 to use all CPUs). (default:1)kwargs (
Any) – Passed toplot_frame().
- Return type:
- pigreads.plot.plot_frame(ax, frame, xlabel='x', ylabel='y', vlabel='', title='', **kwargs)¶
Display a frame as an image.
- Parameters:
- Return type:
- Returns:
Image and colorbar objects.