pynbody.plot

pynbody.plot#

Useful plotting routines, using matplotlib to display pynbody’s calculations

Changed in version 2.0: The plotting routines have been simplified and pared back in version 2.0.

Call signatures have been simplified, and keywords such as filename, axes, clear, subplot have been removed. Use the matplotlib functions directly to save the figure or modify the axes.

The metals module has been removed. To plot metallicity-related quantities, use generic functions appropriately. Specific examples of [Fe/H] and [O/Fe] vs [Fe/H] plots have been provided in the quick-start tutorial, under the section Histograms, 2D histograms, and derived arrays.

Modules

gas

Functions for plotting gas quantities

generic

Flexible plotting functions

profile

Plots for radial profiles

sph

Routines for plotting smoothed quantities

stars

Routines for plots related to stellar particles

util

Utility functions for the plotting module