![]() |
BHAC Python tools
|
Classes | |
| class | polyplot |
| Simple 2D plotter class using matplotlib, plots every cell in one patch. More... | |
| class | rgplot |
| As polyplot, but use regridded data to display. More... | |
Functions | |
| def | velovect (u1, u2, d, nvect=None, scalevar=None, scale=100, color='k', ax=None, alpha=1.) |
| Plots normalized velocity vectors. More... | |
| def | contour (var, d, levels=None, nmax=600, colors='k', linestyles='solid', ax=None, linewidths=1, smooth=1., alpha=1.) |
| def | streamlines (u1, u2, d, x0=None, y0=None, nmax=600, density=1, fig=None, color='b', linewidth=1, arrowsize=1, alpha=1., smooth=0) |
| plots streamlines from a vector field. More... | |
| def | streamline (u1, u2, d, x1_0, x2_0, dl=1., fig=None, nmax=600) |
| def | gridvar (var, d, xrange, yrange, nmax=600, smooth=0) |
Variables | |
| default_timer = time.clock | |
| def amrplot.contour | ( | var, | |
| d, | |||
levels = None, |
|||
nmax = 600, |
|||
colors = 'k', |
|||
linestyles = 'solid', |
|||
ax = None, |
|||
linewidths = 1, |
|||
smooth = 1., |
|||
alpha = 1. |
|||
| ) |
Definition at line 475 of file amrplot.py.
| def amrplot.gridvar | ( | var, | |
| d, | |||
| xrange, | |||
| yrange, | |||
nmax = 600, |
|||
smooth = 0 |
|||
| ) |
Definition at line 629 of file amrplot.py.
| def amrplot.streamline | ( | u1, | |
| u2, | |||
| d, | |||
| x1_0, | |||
| x2_0, | |||
dl = 1., |
|||
fig = None, |
|||
nmax = 600 |
|||
| ) |
Definition at line 571 of file amrplot.py.
| def amrplot.streamlines | ( | u1, | |
| u2, | |||
| d, | |||
x0 = None, |
|||
y0 = None, |
|||
nmax = 600, |
|||
density = 1, |
|||
fig = None, |
|||
color = 'b', |
|||
linewidth = 1, |
|||
arrowsize = 1, |
|||
alpha = 1., |
|||
smooth = 0 |
|||
| ) |
plots streamlines from a vector field.
Use density=[densx,densy] to control how close streamlines are allowed to get.
Definition at line 514 of file amrplot.py.
| def amrplot.velovect | ( | u1, | |
| u2, | |||
| d, | |||
nvect = None, |
|||
scalevar = None, |
|||
scale = 100, |
|||
color = 'k', |
|||
ax = None, |
|||
alpha = 1. |
|||
| ) |
Plots normalized velocity vectors.
Definition at line 442 of file amrplot.py.
| amrplot.default_timer = time.clock |
Definition at line 19 of file amrplot.py.
1.8.13