Classes | |
class | reflist |
Functions | |
def | connectKey (fig, key, action) |
def | once (send, data) |
def | sum (send, axis=None) |
def | gaussian_filter (send, args, kwargs) |
def | gaussiankernel_filter (send, stddev, args, kwargs) |
def | median_filter (send, args, kwargs) |
def | uniform_filter (send, args, kwargs) |
def | mean (send, axis=None) |
def | customfilter (send, fn) |
def | min (send, axis=None) |
def | max (send, axis=None) |
def | minmax (send, axis=None) |
def | clip (send, min, max) |
def | symclip (send) |
def | printer (send, fn=lambda d:d) |
def | produce (send, d) |
def | generate (send, d=None) |
def | getval (p, args) |
def | pipe (send, p=None) |
def | inject (send, p) |
def | call (send, f, args, kwargs) |
def | iterate (send) |
def | select (send, frame=None) |
def | imshow (send, aspect=1, cmap=stdcmap, cax=plt, clim=None, cscale=None, norm=None, xscale=None, yscale=None, xlabel='x', ylabel='y', clabel=None, args, kwargs) |
def | surface (send, f, fig, sub, aspect=1, cmap=stdcmap, cax=plt, clim=None, cscale=None, norm=None, xscale=None, yscale=None, args, kwargs) |
def | plot (send, xdata=None, xlabel='x', ylabel='y', fmt='', xscale=None, yscale=None, xlim=None, ylim=None, aspect=None, text=lambda f:'n=%i\nt=%.2e' %(f.frame, f['/timedisc/time']), kwargs) |
def | multiplot (send, xlabel='x', ylabel='y', xlim=(None, None), ylim=(None, None), fmts=(), labels=(), repeat=0, xscale=None, yscale=None, loc='best', ncol=1, ltitle=None, rtitle=None, color='rgbcmykw', marker=None, linestyle='-', kwargs) |
def | makelist (send, n=lambda f:len(f), l=None) |
def | cut (send, s) |
def | streamplot2 |
def | streamplot (send, scale=1., args, kwargs) |
def | contour (send, args, kwargs) |
def | nextsub (send) |
def | selectsub (send, i) |
def | pcolormesh (send, cmap=stdcmap, clim=None, xlabel='x', ylabel='y', aspect='equal', scale=1., clabel=None, xlim=None, ylim=None, text=None, X=None, Y=None, xscale=None, yscale=None, cscale=None, xticks=None, yticks=None, norm=None, ltitle=None, rtitle=None, cax=None, autoscale=False, edgecolors='None', linewidth=0, tcolor='k', zoom=None, nbins=None, args, kwargs) |
def | text (send, x, y, label, args, kwargs) |
def | annotate (send, label, xy, xytext, args, kwargs) |
def | colorbar (send, i=0, label="", args, kwargs) |
def | addtitle (send, i=0, label="", args, kwargs) |
def | pcolorflat (args, kwargs) |
def | timelistgrid (send, scale=1., tscale=1.) |
def | moviesave (send, filename, fps=60, ffmpeg_params=['-preset', slow, crf, args, kwargs) |
def | anisave (send, filename, frames, args, kwargs) |
def | animate (send, args, kwargs) |
def | timeseries (send) |
def | series (send, it) |
def | getData (f, names) |
def | get (send) |
def | savetxt (send, name, args, kwargs) |
def | loadtxt (send, args, kwargs) |
def | savefig (send, name, args, kwargs) |
def | savepng (name, args, kwargs) |
def | savepdf (name, args, kwargs) |
def | axvline (send, x, args, kwargs) |
def | saveimg (send, name, args, kwargs) |
def | savepgf (send, name, args, kwargs) |
def | save (send, name, args, kwargs) |
def | load (send, args, kwargs) |
def | psave (send, name, args, kwargs) |
def | pload (send, args, kwargs) |
def | rfft (send) |
def | irfft (send) |
def | abs (send) |
def | log10 (send) |
def | log (send) |
def | only (send, i, p) |
def | waiter (send, n) |
def | onlyif (send, fn) |
def | each (send, p) |
def | split (send, args) |
def | repeat (send, no) |
def | broadcast (send, args) |
def | normalize |
def | normalize2 |
def | numexpr (send, expr) |
def | apply (send, fn) |
def | movingaverage (send, order=3) |
def | forall (send, fn) |
def | diff_backward (send, order=1) |
def | timediff (send, reset=None) |
def | timediff2 (send) |
def | vecabs (send) |
def | diff (f, d, dir) |
def | grad (send) |
def | delR (send) |
def | absgrad (f) |
def | curl (send) |
def | div (send) |
def | cross (send, f, a) |
def | Convert2Cartesian (send) |
def | inner (send) |
def | readdirs (send) |
def | readbin (send) |
def | pltshow (send) |
def | mkplt (send, args, kwargs) |
def | mksubplots (send, grid=(1, 2), args, kwargs) |
def | mkgrid (send, grid, figsize=None, kwargs) |
def | control (send, i=None) |
def | append (send, l) |
def | togglemax (send) |
def | printmeta (send) |
def | setmeta (send, d) |
def | consumemeta (send, name) |
def | vorticity |
def | kepvelocity (f) |
def | kepvorticity () |
def | potvorticity (f, omega=0.) |
def | vortensity (f, omega=0.) |
def | specifictorque (f, omega=0.) |
def | mass (f) |
def | specifictorqueflux (f, csiso=None, omega=0.) |
def | angularmomentum (f) |
def | im (v="/timedisc/density", normalize=False, kwargs) |
def | angularmomentumconservation () |
def | cellaspectratio () |
def | gettemp (f) |
def | temperature () |
def | massspectrum (logscale=True, omega=0.) |
def | toomre (kappa=omega) |
def | kinetic_energy (f, omega=1.) |
def | gravitational_energy (f) |
def | thermal_energy (f) |
def | cartvelocity () |
def | mach () |
def | overR (p, i=0) |
def | getvars (send, l) |
def | L1 (send) |
Variables | |
stdcmap = plt.cm.viridis | |
tqdm = lambda a: a | |
back | |
for Palatino and other serif fonts use: rc('font',**{'family':'serif','serif':['Palatino']}) rc('text', usetex=False) rc('text.latex', preamble=r"\usepackage{wasysym}") rc('text.latex', unicode=True) overwrite some standard keymapings, so they don't collide with our own. More... | |
forward | |
zoom | |
home | |
minmaxmean = lambda d: (np.min(d),np.mean(d),np.max(d)) | |
def | line = lambda v: produce(('/mesh/bary_centers_x',v)) | control(f,fig) | get(f) | plot(f,fig,sub) |
omega = lambda f: f['/timedisc/yvelocity']/f['/mesh/radius'] + f['/config/mesh/omega'] | |
epicyclicfrequency = lambda f: np.sqrt(2.*omega(f)/f['/mesh/radius']*diff(f,f['/mesh/radius']**2*omega(f),0)/f['/mesh/bhx']) | |
def | pvars = lambda: getvars(['/timedisc/%s' % s for s in ['density','xvelocity','yvelocity','pressure']]) |
def | cvars = lambda: getvars(['/timedisc/%s' % s for s in ['density','xmomentum','ymomentum','energy']]) |
parser = argparse.ArgumentParser() | |
group = parser.add_mutually_exclusive_group() | |
help | |
action | |
nargs | |
metavar | |
args = parser.parse_args() | |
d = vars(args) | |
fig = plt.figure() | |
sub = fig.add_subplot(111, projection='3d') | |
p = eval(args.pipe) | |
Function Documentation
◆ abs()
◆ absgrad()
◆ addtitle()
def coplot.addtitle | ( | send, | |
i = 0 , |
|||
label = "" , |
|||
args, | |||
kwargs | |||
) |
◆ angularmomentum()
◆ angularmomentumconservation()
◆ animate()
◆ anisave()
def coplot.anisave | ( | send, | |
filename, | |||
frames, | |||
args, | |||
kwargs | |||
) |
◆ annotate()
def coplot.annotate | ( | send, | |
label, | |||
xy, | |||
xytext, | |||
args, | |||
kwargs | |||
) |
◆ append()
◆ apply()
◆ axvline()
◆ broadcast()
◆ call()
◆ cartvelocity()
◆ cellaspectratio()
◆ clip()
◆ colorbar()
def coplot.colorbar | ( | send, | |
i = 0 , |
|||
label = "" , |
|||
args, | |||
kwargs | |||
) |
◆ connectKey()
◆ consumemeta()
◆ contour()
◆ control()
◆ Convert2Cartesian()
◆ cross()
◆ curl()
◆ customfilter()
◆ cut()
◆ delR()
◆ diff()
◆ diff_backward()
◆ div()
◆ each()
◆ forall()
◆ gaussian_filter()
◆ gaussiankernel_filter()
def coplot.gaussiankernel_filter | ( | send, | |
stddev, | |||
args, | |||
kwargs | |||
) |
◆ generate()
◆ get()
◆ getData()
◆ gettemp()
◆ getval()
◆ getvars()
◆ grad()
◆ gravitational_energy()
◆ im()
def coplot.im | ( | v = "/timedisc/density" , |
|
normalize = False , |
|||
kwargs | |||
) |
◆ imshow()
def coplot.imshow | ( | send, | |
aspect = 1 , |
|||
cmap = stdcmap , |
|||
cax = plt , |
|||
clim = None , |
|||
cscale = None , |
|||
norm = None , |
|||
xscale = None , |
|||
yscale = None , |
|||
xlabel = 'x' , |
|||
ylabel = 'y' , |
|||
clabel = None , |
|||
args, | |||
kwargs | |||
) |
◆ inject()
◆ inner()
◆ irfft()
◆ iterate()
◆ kepvelocity()
◆ kepvorticity()
◆ kinetic_energy()
◆ L1()
◆ load()
◆ loadtxt()
◆ log()
◆ log10()
◆ mach()
◆ makelist()
def coplot.makelist | ( | send, | |
n = lambda f: len(f) , |
|||
l = None |
|||
) |
◆ mass()
◆ massspectrum()
◆ max()
◆ mean()
◆ median_filter()
◆ min()
◆ minmax()
◆ mkgrid()
◆ mkplt()
◆ mksubplots()
def coplot.mksubplots | ( | send, | |
grid = (1,2) , |
|||
args, | |||
kwargs | |||
) |
◆ moviesave()
def coplot.moviesave | ( | send, | |
filename, | |||
fps = 60 , |
|||
ffmpeg_params = ['-preset' , |
|||
slow, | |||
crf, | |||
args, | |||
kwargs | |||
) |
◆ movingaverage()
◆ multiplot()
def coplot.multiplot | ( | send, | |
xlabel = 'x' , |
|||
ylabel = 'y' , |
|||
xlim = (None,None) , |
|||
ylim = (None,None) , |
|||
fmts = () , |
|||
labels = () , |
|||
repeat = 0 , |
|||
xscale = None , |
|||
yscale = None , |
|||
loc = 'best' , |
|||
ncol = 1 , |
|||
ltitle = None , |
|||
rtitle = None , |
|||
color = 'rgbcmykw' , |
|||
marker = None , |
|||
linestyle = '-' , |
|||
kwargs | |||
) |
◆ nextsub()
◆ normalize()
def coplot.normalize | ( | send, | |
i = None , |
|||
norm = lambda d , |
|||
d0 | |||
) |
◆ normalize2()
◆ numexpr()
◆ once()
◆ only()
◆ onlyif()
◆ overR()
◆ pcolorflat()
◆ pcolormesh()
def coplot.pcolormesh | ( | send, | |
cmap = stdcmap , |
|||
clim = None , |
|||
xlabel = 'x' , |
|||
ylabel = 'y' , |
|||
aspect = 'equal' , |
|||
scale = 1. , |
|||
clabel = None , |
|||
xlim = None , |
|||
ylim = None , |
|||
text = None , |
|||
X = None , |
|||
Y = None , |
|||
xscale = None , |
|||
yscale = None , |
|||
cscale = None , |
|||
xticks = None , |
|||
yticks = None , |
|||
norm = None , |
|||
ltitle = None , |
|||
rtitle = None , |
|||
cax = None , |
|||
autoscale = False , |
|||
edgecolors = 'None' , |
|||
linewidth = 0 , |
|||
tcolor = 'k' , |
|||
zoom = None , |
|||
nbins = None , |
|||
args, | |||
kwargs | |||
) |
◆ pipe()
◆ pload()
◆ plot()
def coplot.plot | ( | send, | |
xdata = None , |
|||
xlabel = 'x' , |
|||
ylabel = 'y' , |
|||
fmt = '' , |
|||
xscale = None , |
|||
yscale = None , |
|||
xlim = None , |
|||
ylim = None , |
|||
aspect = None , |
|||
text = lambda f:'n = %i\nt = %.2e' % (f.frame, f['/timedisc/time']) , |
|||
kwargs | |||
) |
◆ pltshow()
◆ potvorticity()
◆ printer()
◆ printmeta()
◆ produce()
◆ psave()
◆ readbin()
◆ readdirs()
◆ repeat()
◆ rfft()
◆ save()
◆ savefig()
◆ saveimg()
◆ savepdf()
◆ savepgf()
◆ savepng()
◆ savetxt()
◆ select()
◆ selectsub()
◆ series()
◆ setmeta()
◆ specifictorque()
◆ specifictorqueflux()
def coplot.specifictorqueflux | ( | f, | |
csiso = None , |
|||
omega = 0. |
|||
) |
◆ split()
◆ streamplot()
◆ streamplot2()
def coplot.streamplot2 | ( | send, | |
res = 50 , |
|||
clabel = None , |
|||
xlim = None , |
|||
ylim = None , |
|||
scale = 1. , |
|||
cmap = stdcmap , |
|||
color = lambda u , |
|||
v | |||
) |
◆ sum()
◆ surface()
def coplot.surface | ( | send, | |
f, | |||
fig, | |||
sub, | |||
aspect = 1 , |
|||
cmap = stdcmap , |
|||
cax = plt , |
|||
clim = None , |
|||
cscale = None , |
|||
norm = None , |
|||
xscale = None , |
|||
yscale = None , |
|||
args, | |||
kwargs | |||
) |
◆ symclip()
◆ temperature()
◆ text()
◆ thermal_energy()
◆ timediff()
◆ timediff2()
◆ timelistgrid()
◆ timeseries()
◆ togglemax()
◆ toomre()
◆ uniform_filter()
◆ vecabs()
◆ vortensity()
◆ vorticity()
◆ waiter()
Variable Documentation
◆ action
◆ args
◆ back
coplot.back |
for Palatino and other serif fonts use: rc('font',**{'family':'serif','serif':['Palatino']}) rc('text', usetex=False) rc('text.latex', preamble=r"\usepackage{wasysym}") rc('text.latex', unicode=True) overwrite some standard keymapings, so they don't collide with our own.
See: http://matplotlib.github.com/users/navigation_toolbar.html
◆ cvars
def coplot.cvars = lambda: getvars(['/timedisc/%s' % s for s in ['density','xmomentum','ymomentum','energy']]) |
◆ d
◆ epicyclicfrequency
◆ fig
◆ forward
◆ group
◆ help
◆ home
◆ line
◆ metavar
◆ minmaxmean
◆ nargs
◆ omega
coplot.omega = lambda f: f['/timedisc/yvelocity']/f['/mesh/radius'] + f['/config/mesh/omega'] |
◆ p
◆ parser
◆ pvars
def coplot.pvars = lambda: getvars(['/timedisc/%s' % s for s in ['density','xvelocity','yvelocity','pressure']]) |