BHAC Python tools
|
Simple 2D plotter class using matplotlib, plots every cell in one patch. More...
Public Member Functions | |
def | __init__ (self, value, data, nlevels=256, grid=None, blocks=None, blockWidth=8, blockHeight=8, nlevel1=0, cmap='jet', min=None, max=None, xrange=None, yrange=None, orientation='vertical', right=True, fixzoom=None, fixrange=None, fig=None, axis=None, filenameout=None, clear=True, edgecolor='k', smooth=0, swap=0, kwargs) |
def | setValue (self, value, min=None, max=None) |
Sets the min and max values of the data to saturate the display. More... | |
def | update (self, var=None, data=None, min=None, max=None, reset=None, fixrange=None, filenameout=None) |
Prepare to re-draw the window, check if data was updated. More... | |
def | info (self) |
Print info to the console. More... | |
def | show (self, var=None, data=None, min=None, max=None, reset=None, fixrange=None, filenameout=None) |
Draw the plotting-window. More... | |
def | colorbar (self, cax=None) |
Draw the colorbar. More... | |
def | save (self, filenameout=None) |
Save the figure. More... | |
def | onkey (self, event) |
Simple 2D plotter class using matplotlib, plots every cell in one patch.
Definition at line 26 of file amrplot.py.
def amrplot.polyplot.__init__ | ( | self, | |
value, | |||
data, | |||
nlevels = 256 , |
|||
grid = None , |
|||
blocks = None , |
|||
blockWidth = 8 , |
|||
blockHeight = 8 , |
|||
nlevel1 = 0 , |
|||
cmap = 'jet' , |
|||
min = None , |
|||
max = None , |
|||
xrange = None , |
|||
yrange = None , |
|||
orientation = 'vertical' , |
|||
right = True , |
|||
fixzoom = None , |
|||
fixrange = None , |
|||
fig = None , |
|||
axis = None , |
|||
filenameout = None , |
|||
clear = True , |
|||
edgecolor = 'k' , |
|||
smooth = 0 , |
|||
swap = 0 , |
|||
kwargs | |||
) |
Definition at line 33 of file amrplot.py.
def amrplot.polyplot.colorbar | ( | self, | |
cax = None |
|||
) |
def amrplot.polyplot.info | ( | self | ) |
Print info to the console.
Definition at line 135 of file amrplot.py.
def amrplot.polyplot.onkey | ( | self, | |
event | |||
) |
Definition at line 300 of file amrplot.py.
def amrplot.polyplot.save | ( | self, | |
filenameout = None |
|||
) |
Save the figure.
Definition at line 287 of file amrplot.py.
def amrplot.polyplot.setValue | ( | self, | |
value, | |||
min = None , |
|||
max = None |
|||
) |
Sets the min and max values of the data to saturate the display.
Definition at line 90 of file amrplot.py.
def amrplot.polyplot.show | ( | self, | |
var = None , |
|||
data = None , |
|||
min = None , |
|||
max = None , |
|||
reset = None , |
|||
fixrange = None , |
|||
filenameout = None |
|||
) |
Draw the plotting-window.
Definition at line 155 of file amrplot.py.
def amrplot.polyplot.update | ( | self, | |
var = None , |
|||
data = None , |
|||
min = None , |
|||
max = None , |
|||
reset = None , |
|||
fixrange = None , |
|||
filenameout = None |
|||
) |
Prepare to re-draw the window, check if data was updated.
Definition at line 100 of file amrplot.py.
amrplot.polyplot.ax |
Definition at line 80 of file amrplot.py.
amrplot.polyplot.blockHeight |
Definition at line 40 of file amrplot.py.
amrplot.polyplot.blocks |
Definition at line 38 of file amrplot.py.
amrplot.polyplot.blockWidth |
Definition at line 39 of file amrplot.py.
amrplot.polyplot.cax |
Definition at line 261 of file amrplot.py.
amrplot.polyplot.cbar |
Definition at line 270 of file amrplot.py.
amrplot.polyplot.cbarpad |
Definition at line 46 of file amrplot.py.
amrplot.polyplot.cbarticks |
Definition at line 58 of file amrplot.py.
amrplot.polyplot.cbarwidth |
Definition at line 45 of file amrplot.py.
amrplot.polyplot.clear |
Definition at line 50 of file amrplot.py.
amrplot.polyplot.cmap |
Definition at line 42 of file amrplot.py.
amrplot.polyplot.data |
Definition at line 114 of file amrplot.py.
amrplot.polyplot.dpi |
Definition at line 55 of file amrplot.py.
amrplot.polyplot.edgecolor |
Definition at line 59 of file amrplot.py.
amrplot.polyplot.fig_h |
Definition at line 54 of file amrplot.py.
amrplot.polyplot.fig_w |
Definition at line 53 of file amrplot.py.
amrplot.polyplot.figure |
Definition at line 74 of file amrplot.py.
amrplot.polyplot.filenameout |
Definition at line 49 of file amrplot.py.
amrplot.polyplot.fixrange |
Definition at line 48 of file amrplot.py.
amrplot.polyplot.fixzoom |
Definition at line 47 of file amrplot.py.
amrplot.polyplot.fontsize |
Definition at line 52 of file amrplot.py.
amrplot.polyplot.grid |
Definition at line 37 of file amrplot.py.
amrplot.polyplot.max |
Definition at line 93 of file amrplot.py.
amrplot.polyplot.maxXticks |
Definition at line 56 of file amrplot.py.
amrplot.polyplot.maxYticks |
Definition at line 57 of file amrplot.py.
amrplot.polyplot.min |
Definition at line 92 of file amrplot.py.
amrplot.polyplot.nlevel1 |
Definition at line 41 of file amrplot.py.
amrplot.polyplot.nlevels |
Definition at line 36 of file amrplot.py.
amrplot.polyplot.orientation |
Definition at line 43 of file amrplot.py.
amrplot.polyplot.right |
Definition at line 44 of file amrplot.py.
amrplot.polyplot.selection |
Definition at line 323 of file amrplot.py.
amrplot.polyplot.smooth |
Definition at line 60 of file amrplot.py.
amrplot.polyplot.swap |
Definition at line 35 of file amrplot.py.
amrplot.polyplot.value |
Definition at line 91 of file amrplot.py.
amrplot.polyplot.valueClip |
Definition at line 171 of file amrplot.py.
amrplot.polyplot.viewXrange |
Definition at line 130 of file amrplot.py.
amrplot.polyplot.viewYrange |
Definition at line 131 of file amrplot.py.
amrplot.polyplot.xlist |
Definition at line 179 of file amrplot.py.
amrplot.polyplot.xlistspecial |
Definition at line 183 of file amrplot.py.
amrplot.polyplot.xrange |
Definition at line 62 of file amrplot.py.
amrplot.polyplot.ylist |
Definition at line 180 of file amrplot.py.
amrplot.polyplot.ylistspecial |
Definition at line 184 of file amrplot.py.
amrplot.polyplot.yrange |
Definition at line 63 of file amrplot.py.