__init__ (
self,
isprintText,
xGridSize,
yGridSize,
titleStr,
xLabelStr,
yLabelStr,
fullFilename,
size='small',
xMinimum=None,
xMaximum=None,
yMinimum=None,
yMaximum=None,
minColormap=None,
maxColormap=None,
colorMap=matplotlib.cm.jet,
maxNumLines=None,
)
__init__ writes a madPcolorScan to a file.
Inputs:
isprintText - a string giving isprint output without headers. First parameter
must be the X axis value, and the second must be the Y axis value.
The third column is the value (intensity). Any
missing data should be written as "missing" or other string that
cannot be converted to a float.
xGridSize - grid size for x data (for example 0.1 for 0.1 degree longitude grid)
yGridSize - grid size for x data (for example 0.1 for 0.1 degree latitude grid)
titleStr - plot title (string) - should describe parameter being plotted
xLabelStr - x label string
yLabelStr - ylabel string
fullFilename - full path of file containing pcolor plot to be saved. Extension must
be jpeg or png, or exception thrown.
size - size of plot to save. Must be "small", "wide", or "large". Defaults to small.
xMinimum = minumum x value. If None (default), uses lowest x value found.
xMaximum = maximum x value. If None (default), uses highest x value found.
yMinimum = minumum y value. If None (default), uses lowest y value found.
yMaximum = maximum y value. If None (default), uses highest y value found.
minColormap - minimum parameter value (defaults to lowest parameter value)
maxColormap - maximum parameter value (defaults to highest parameter value). However, if
both minColormap and maxColormap == None, autoscaling applied.
colorMap - sets colormap. It not given, defaults to matplotlib.cm.jet
maxNumLine - max number of lines in isprintText before truncating. If None, no truncation
Returns: void
Affects: None
Exceptions
|
|
ValueError, 'No valid z data found'
ValueError, 'input text is not parseable'
ValueError, 'size must be "small", "wide", or "large", not %s' %(str( size ) )
|
|