scitools.easyviz.common

class scitools.easyviz.common.Axis(*args, **kwargs)[source]

Bases: object

Information about the axis in curve, surface, and volume plots.
Keywords for the setp method:
  • ‘ambientcolor’,
  • ‘axiscolor’,
  • ‘bgcolor’,
  • ‘box’,
  • ‘camera’,
  • ‘cameramode’,
  • ‘caxis’,
  • ‘caxismode’,
  • ‘center’,
  • ‘colorbar’,
  • ‘colormap’,
  • ‘colororder’,
  • ‘curcolor’,
  • ‘daspect’,
  • ‘daspectmode’,
  • ‘diffusecolor’,
  • ‘direction’,
  • ‘fgcolor’,
  • ‘fontname’,
  • ‘fontsize’,
  • ‘grid’,
  • ‘hidden’,
  • ‘hold’,
  • ‘lights’,
  • ‘method’,
  • ‘mode’,
  • ‘numberofitems’,
  • ‘plotitems’,
  • ‘pth’,
  • ‘scale’,
  • ‘shading’,
  • ‘speculartcolor’,
  • ‘title’,
  • ‘viewport’,
  • ‘visible’,
  • ‘xlabel’,
  • ‘xlim’,
  • ‘xmax’,
  • ‘xmin’,
  • ‘ylabel’,
  • ‘ylim’,
  • ‘ymax’,
  • ‘ymin’,
  • ‘zlabel’,
  • ‘zlim’,
  • ‘zmax’,
  • ‘zmin’
Legal values for direction keyword:
  • ‘ij’, ‘xy’
Legal values for method keyword:
  • ‘equal’, ‘image’, ‘normal’, ‘square’, ‘vis3d’
Legal values for mode keyword:
  • ‘auto’, ‘fill’, ‘manual’, ‘tight’
Legal values for range keyword:
  • ‘xmax’, ‘xmin’, ‘ymax’, ‘ymin’, ‘zmax’, ‘zmin’
Legal values for shading keyword:
  • ‘faceted’, ‘flat’, ‘interp’
Legal values for legend locations:
  • ‘best’,
  • ‘center’,
  • ‘center left’,
  • ‘center right’,
  • ‘lower center’,
  • ‘lower left’,
  • ‘lower right’,
  • ‘right’,
  • ‘upper center’,
  • ‘upper left’,
  • ‘upper right’

Methods

add(items) Add all items in ‘items’ to this axis.
dump() Dump the parameters of this object.
get_limits() Return axis limits.
get_next_color() Return the next color defined in the ‘colororder’ property.
getp(name) Return parameter with name ‘name’.
reset() Reset axis attributes to default values.
setp(**kwargs)
toggle(name) Toggle axis parameter with name ‘name’.
update() Update axis.
__class__

alias of type

__delattr__

x.__delattr__(‘name’) <==> del x.name

__dict__ = dict_proxy({'__module__': 'scitools.easyviz.common', '_toggle_state': <function _toggle_state at 0x3e2f500>, 'dump': <function dump at 0x3e2f0c8>, '__str__': <function __str__ at 0x3e2f050>, 'update': <function update at 0x3e2f488>, '_update_daspect': <function _update_daspect at 0x3e2f6e0>, '_shadings': ['flat', 'interp', 'faceted'], 'toggle': <function toggle at 0x3e2f410>, '__dict__': <attribute '__dict__' of 'Axis' objects>, '_set_center': <function _set_center at 0x3e2f578>, '__init__': <function __init__ at 0x3ddff50>, 'reset': <function reset at 0x3e2f2a8>, 'get_next_color': <function get_next_color at 0x3e2f230>, '__weakref__': <attribute '__weakref__' of 'Axis' objects>, '_local_prop': {'zmax': None, 'xlim': [None, None], 'diffusecolor': None, 'zmin': None, 'visible': True, 'speculartcolor': None, 'ymin': None, 'fontname': 'Helvetica', 'ymax': None, 'title': '', 'pth': None, 'bgcolor': (1, 1, 1), 'camera': None, 'ylabel': '', 'hidden': True, 'plotitems': [], 'grid': False, 'axiscolor': (0, 0, 0), 'shading': 'faceted', 'hold': False, 'fgcolor': (0, 0, 0), 'viewport': None, 'zlim': [None, None], 'caxis': [None, None], 'colorbar': None, 'xlabel': '', 'mode': 'auto', 'xmax': None, 'colororder': ['r', 'b', 'g', 'c', 'm', 'y'], 'direction': 'xy', 'numberofitems': 0, 'xmin': None, 'ylim': [None, None], 'scale': 'linear', 'lights': [], 'method': 'normal', 'cameramode': 'auto', 'colormap': None, 'zlabel': '', 'caxismode': 'auto', 'ambientcolor': None, 'daspect': [None, None, None], 'box': False, 'center': (0, 0, 0), 'curcolor': 0, 'fontsize': 12, 'daspectmode': 'auto'}, '_check_lim': <function _check_lim at 0x3e2f5f0>, 'get_limits': <function get_limits at 0x3e2f398>, 'add': <function add at 0x3e2f320>, '_methods': ['equal', 'image', 'square', 'normal', 'vis3d'], 'setp': <function setp at 0x3e2f140>, '_update_limits': <function _update_limits at 0x3e2f668>, '_legend_locs': {'right': 5, 'center left': 6, 'upper right': 1, 'lower right': 4, 'best': 0, 'center': 10, 'lower left': 3, 'center right': 7, 'upper left': 2, 'upper center': 9, 'lower center': 8}, 'getp': <function getp at 0x3e2f1b8>, '_directions': ['ij', 'xy'], '__doc__': "\n Information about the axis in curve, surface, and volume plots.\n \nKeywords for the setp method:\n - 'ambientcolor',\n - 'axiscolor',\n - 'bgcolor',\n - 'box',\n - 'camera',\n - 'cameramode',\n - 'caxis',\n - 'caxismode',\n - 'center',\n - 'colorbar',\n - 'colormap',\n - 'colororder',\n - 'curcolor',\n - 'daspect',\n - 'daspectmode',\n - 'diffusecolor',\n - 'direction',\n - 'fgcolor',\n - 'fontname',\n - 'fontsize',\n - 'grid',\n - 'hidden',\n - 'hold',\n - 'lights',\n - 'method',\n - 'mode',\n - 'numberofitems',\n - 'plotitems',\n - 'pth',\n - 'scale',\n - 'shading',\n - 'speculartcolor',\n - 'title',\n - 'viewport',\n - 'visible',\n - 'xlabel',\n - 'xlim',\n - 'xmax',\n - 'xmin',\n - 'ylabel',\n - 'ylim',\n - 'ymax',\n - 'ymin',\n - 'zlabel',\n - 'zlim',\n - 'zmax',\n - 'zmin'\nLegal values for direction keyword:\n - 'ij', 'xy'\nLegal values for method keyword:\n - 'equal', 'image', 'normal', 'square', 'vis3d'\nLegal values for mode keyword:\n - 'auto', 'fill', 'manual', 'tight'\nLegal values for range keyword:\n - 'xmax', 'xmin', 'ymax', 'ymin', 'zmax', 'zmin'\nLegal values for shading keyword:\n - 'faceted', 'flat', 'interp'\nLegal values for legend locations:\n - 'best',\n - 'center',\n - 'center left',\n - 'center right',\n - 'lower center',\n - 'lower left',\n - 'lower right',\n - 'right',\n - 'upper center',\n - 'upper left',\n - 'upper right'", '_ranges': ['xmin', 'xmax', 'ymin', 'ymax', 'zmin', 'zmax'], '_modes': ['auto', 'manual', 'tight', 'fill']})
__format__()

default object formatter

__getattribute__

x.__getattribute__(‘name’) <==> x.name

__hash__() <==> hash(x)
__init__(*args, **kwargs)[source]
__module__ = 'scitools.easyviz.common'
static __new__(S, ...) → a new object with type S, a subtype of T
__reduce__()

helper for pickle

__reduce_ex__()

helper for pickle

__repr__() <==> repr(x)
__setattr__

x.__setattr__(‘name’, value) <==> x.name = value

__sizeof__() → int

size of object in memory, in bytes

__str__()[source]
static __subclasshook__()

Abstract classes can override this to customize issubclass().

This is invoked early on by abc.ABCMeta.__subclasscheck__(). It should return True, False or NotImplemented. If it returns NotImplemented, the normal algorithm is used. Otherwise, it overrides the normal algorithm (and the outcome is cached).

__weakref__

list of weak references to the object (if defined)

add(items)[source]

Add all items in ‘items’ to this axis.

dump()[source]

Dump the parameters of this object.

get_limits()[source]

Return axis limits.

get_next_color()[source]

Return the next color defined in the ‘colororder’ property.

getp(name)[source]

Return parameter with name ‘name’.

reset()[source]

Reset axis attributes to default values.

setp(**kwargs)[source]
toggle(name)[source]

Toggle axis parameter with name ‘name’.

update()[source]

Update axis.

class scitools.easyviz.common.Bars(*args, **kwargs)[source]

Bases: scitools.easyviz.common.PlotProperties

Properties of bars in bar graphs.
Keywords for the setp method:
  • ‘barstepsize’,
  • ‘barticks’,
  • ‘barwidth’,
  • ‘description’,
  • ‘dims’,
  • ‘edgecolor’,
  • ‘facecolor’,
  • ‘function’,
  • ‘indexing’,
  • ‘legend’,
  • ‘linecolor’,
  • ‘linemarker’,
  • ‘linetype’,
  • ‘linewidth’,
  • ‘material’,
  • ‘memoryorder’,
  • ‘numberofpoints’,
  • ‘pointsize’,
  • ‘rotated_barticks’,
  • ‘xdata’,
  • ‘xlim’,
  • ‘ydata’,
  • ‘ylim’,
  • ‘zlim’

Methods

dump() Dump the parameters of this object.
get_limits() Return limits on the x, y, and z axis:
getp([prm_name]) Return the value of the parameter with name prm_name.
setformat(format) Extract the right values for color, linetype, marker, etc.
setp(**kwargs)
__class__

alias of type

__delattr__

x.__delattr__(‘name’) <==> del x.name

__dict__ = dict_proxy({'__module__': 'scitools.easyviz.common', 'setp': <function setp at 0x3ddeb18>, '_set_data': <function _set_data at 0x3ddec08>, '_parseargs': <function _parseargs at 0x3ddeb90>, '_local_prop': {'barwidth': 0.8, 'barticks': None, 'rotated_barticks': False, 'ydata': None, 'xdata': None, 'barstepsize': 1.0}, '__doc__': "\n Properties of bars in bar graphs.\n \nKeywords for the setp method:\n - 'barstepsize',\n - 'barticks',\n - 'barwidth',\n - 'description',\n - 'dims',\n - 'edgecolor',\n - 'facecolor',\n - 'function',\n - 'indexing',\n - 'legend',\n - 'linecolor',\n - 'linemarker',\n - 'linetype',\n - 'linewidth',\n - 'material',\n - 'memoryorder',\n - 'numberofpoints',\n - 'pointsize',\n - 'rotated_barticks',\n - 'xdata',\n - 'xlim',\n - 'ydata',\n - 'ylim',\n - 'zlim'", '__init__': <function __init__ at 0x3ddeaa0>})
__format__()

default object formatter

__getattribute__

x.__getattribute__(‘name’) <==> x.name

__hash__() <==> hash(x)
__init__(*args, **kwargs)[source]
__module__ = 'scitools.easyviz.common'
static __new__(S, ...) → a new object with type S, a subtype of T
__reduce__()

helper for pickle

__reduce_ex__()

helper for pickle

__repr__() <==> repr(x)
__setattr__

x.__setattr__(‘name’, value) <==> x.name = value

__sizeof__() → int

size of object in memory, in bytes

__str__()
static __subclasshook__()

Abstract classes can override this to customize issubclass().

This is invoked early on by abc.ABCMeta.__subclasscheck__(). It should return True, False or NotImplemented. If it returns NotImplemented, the normal algorithm is used. Otherwise, it overrides the normal algorithm (and the outcome is cached).

__weakref__

list of weak references to the object (if defined)

dump()

Dump the parameters of this object.

get_limits()

Return limits on the x, y, and z axis: xmin, xmax, ymin, ymax, zmin, zmax.

getp(prm_name=None)

Return the value of the parameter with name prm_name. If the name is None, the dictionary with all parameters is returned.

setformat(format)

Extract the right values for color, linetype, marker, etc. given a Matlab-like format string for a curve (e.g., ‘r-‘). The extracted values are stored in self._prop (with keys like ‘linecolor’, ‘linetype’, etc.).

Erroneous chars will be ignored. When there are multiple format characters for a property, the last one will count.

setp(**kwargs)[source]
class scitools.easyviz.common.BaseClass[source]

Bases: object

Subclasses implement different backends (GnuplotBackend for Gnuplot, for instance).

This base class saves info about plotting to instances of class Figure, Line, and PlotItem.

List of internal helper functions (for subclasses): ...

List of “Matlab-like” interface functions (for the user):
  • ‘autumn’,
  • ‘axes’,
  • ‘axis’,
  • ‘bone’,
  • ‘box’,
  • ‘brighten’,
  • ‘camdolly’,
  • ‘camlight’,
  • ‘camlookat’,
  • ‘campos’,
  • ‘camproj’,
  • ‘camroll’,
  • ‘camtarget’,
  • ‘camup’,
  • ‘camva’,
  • ‘camzoom’,
  • ‘caxis’,
  • ‘cla’,
  • ‘clabel’,
  • ‘clf’,
  • ‘close’,
  • ‘closefig’,
  • ‘closefigs’,
  • ‘colorbar’,
  • ‘colorcube’,
  • ‘colormap’,
  • ‘coneplot’,
  • ‘contour’,
  • ‘contour3’,
  • ‘contourf’,
  • ‘contourslice’,
  • ‘cool’,
  • ‘copper’,
  • ‘daspect’,
  • ‘figure’,
  • ‘fill’,
  • ‘fill3’,
  • ‘flag’,
  • ‘gca’,
  • ‘gcf’,
  • ‘get’,
  • ‘gray’,
  • ‘grid’,
  • ‘hardcopy’,
  • ‘hidden’,
  • ‘hold’,
  • ‘hot’,
  • ‘hsv’,
  • ‘ishold’,
  • ‘isocaps’,
  • ‘isosurface’,
  • ‘jet’,
  • ‘legend’,
  • ‘light’,
  • ‘lines’,
  • ‘loglog’,
  • ‘material’,
  • ‘mesh’,
  • ‘meshc’,
  • ‘openfig’,
  • ‘pcolor’,
  • ‘pink’,
  • ‘plot’,
  • ‘plot3’,
  • ‘prism’,
  • ‘quiver’,
  • ‘quiver3’,
  • ‘reducevolum’,
  • ‘savefig’,
  • ‘savefig’,
  • ‘semilogx’,
  • ‘semilogy’,
  • ‘set’,
  • ‘shading’,
  • ‘show’,
  • slice_‘,
  • ‘spring’,
  • ‘streamline’,
  • ‘streamribbon’,
  • ‘streamslice’,
  • ‘streamtube’,
  • ‘subplot’,
  • ‘subvolume’,
  • ‘summer’,
  • ‘surf’,
  • ‘surfc’,
  • ‘surfl’,
  • ‘title’,
  • ‘vga’,
  • ‘view’,
  • ‘white’,
  • ‘winter’,
  • ‘xlabel’,
  • ‘ylabel’,
  • ‘zlabel’
Keywords for the setp method:
  • ‘color’, ‘curfig’, ‘interactive’, ‘show’

Methods

autumn([m]) Shades of red and yellow color map.
axes(*args, **kwargs) Create axes in specified positions.
axis(*args, **kwargs) Choose the axis limits and appearance.
bar(*args, **kwargs) Draw a bar graph.
bone([m]) Gray-scale with a tinge of blue color map.
box(*args) Display a box around the boundaries of the current axis.
brighten(*args) Brighten or darken the color map.
camdolly(*args) Dolly camera.
camlight(*args, **kwargs) Create or set position of a light.
camlookat(*args) Move camera and target to view specified objects.
campos(*args) Camera position.
camproj(*args) Camera projection.
camroll(*args) Roll camera.
camtarget(*args) Camera target.
camup(*args) Camera up vector.
camva(*args) Camera view angle.
camzoom(*args) Zoom camera.
caxis(*args) Set the limits for the color axis.
cla(*args) Clear the current axis.
clabel(*args) Control labeling of contours.
clf() Clear the current figure.
close(*args) Close figure.
closefig(arg) Close figure window.
closefigs() Close all figure windows.
colorbar(*args) Display a color bar.
colorcube([m]) Enhanced color-cube color map.
colormap(*args) Specify colormap.
coneplot(*args, **kwargs) Draw a 3D cone plot.
contour(*args, **kwargs) Draw a 2D contour plot.
contour3(*args, **kwargs) Draw 3D contour plot.
contourf(*args, **kwargs) Draw filled contour plot.
contourslice(*args, **kwargs) Draw contour lines in slice planes.
cool([m]) Shades of cyan and magenta color map.
copper([m]) Linear copper-tone color map.
daspect(*args) Change the data aspect ratio.
figure([num]) Create a new figure or switch between figures and return Figure object.
fill(*args, **kwargs) Draw filled 2D polygons.
fill3() Draw filled 3D polygons.
flag([m]) Alternating red, white, blue, and black color map.
gca() Return the current axis in the current figure.
gcf() Return current figure.
getp(*args) Get object properties or an attribute in this backend instance.
gray([m]) Linear gray-scale color map.
grid(*args) Toggle the display of grid lines.
hardcopy(filename, **kwargs) Save a hardcopy of the current figure to file (with the given filename).
hidden(*args) Toggle hidden line removal in the current axis.
hold(*args) Change the hold state of the current axis.
hot([m]) Black-red-yellow-white color map.
hsv([m]) Hue-saturation-value color map.
init() Initialize internal data structures.
ishold() Return the hold state (True if hold is on, and False if it is off).
isocaps(*args, **kwargs) Draw isosurface end caps.
isosurface(*args, **kwargs) Draw isosurfaces from 3D scalar fields.
jet([m]) Variant of hsv.
legend(*args, **kwargs) Add legend(s) to the current plot.
light(**kwargs) Add a light to the current axis.
lines([m]) Color map with the line colors.
loglog(*args, **kwargs) Draw a loglog plot with logarithmic scaling on x- and y-axis.
material(*args) Set the material reflectance mode.
mesh(*args, **kwargs) Draw a 3D mesh surface.
meshc(*args, **kwargs) Draw a mesh with a contour plot beneath.
openfig([filename]) Load figures saved in a file (with the given filename).
pcolor(*args, **kwargs) Draw a 2D pseudocolor plot.
pink([m]) Pastel shades of pink color map.
plot(*args, **kwargs) Draw line and scatter plots.
plot3(*args, **kwargs) Draw lines and points in 3D space.
prism([m]) Prism color map.
quiver(*args, **kwargs) Draw arrows from a 2D vector field.
quiver3(*args, **kwargs) Draw velocity vectors in 3D space.
savefig([filename]) Save all current figures to a file (with the given filename).
semilogx(*args, **kwargs) Draw a semilog plot with logarithmic scaling on x-axis.
semilogy(*args, **kwargs) Draw a semilog plot with logarithmic scaling on y-axis.
setp(*args, **kwargs) Set object properties or attributes in this backend instance.
shading(*args) Control the color shading of surfaces.
show() Redraw the current figure.
slice_(*args, **kwargs) Draw volumetric slice plot.
spring([m]) Shades of magenta and yellow color map.
stem(*args, **kwargs) Draw a stem plot.
streamline(*args, **kwargs) Draw streamlines from 2D or 3D vector data.
streamribbon(*args, **kwargs) Draw stream ribbons from 3D vector data.
streamslice(*args, **kwargs) Draw streamlines in axis aligned slice planes.
streamtube(*args, **kwargs) Draw stream tubes from 3D vector data.
subplot(*args, **kwargs) Create axes in tiled positions.
summer([m]) Shades of green and yellow color map.
surf(*args, **kwargs) Draw a 3D solid surface.
surfc(*args, **kwargs) Draw a solid surface with contours beneath.
surfl(*args, **kwargs) 3D shaded surface with lighting.
title(*args) Add title to the current plot.
vga([m]) Windows colormap for 16 colors.
view(*args) Specify viewpoint.
white([m]) All white color map.
winter([m]) Shades of blue and green color map.
xlabel(*args) Add a label to the x-axis.
xlim(*args) Set or get limits on x axis.
ylabel(*args) Add a label to the y-axis.
ylim(*args) Set or get limits on y axis.
zlabel(*args) Add a label to the z-axis.
zlim(*args) Set or get limits on z axis.
__class__

alias of type

__delattr__

x.__delattr__(‘name’) <==> del x.name

__dict__ = dict_proxy({'summer': <function summer at 0x3e32ed8>, 'xlim': <function xlim at 0x3e30848>, 'show': <function show at 0x3e31c08>, 'savefig': <function savefig at 0x3e30488>, '__str__': <function __str__ at 0x3e2fe60>, 'brighten': <function brighten at 0x3e32500>, 'streamribbon': <function streamribbon at 0x3e31578>, '__dict__': <attribute '__dict__' of 'BaseClass' objects>, 'camlight': <function camlight at 0x3e32230>, 'isosurface': <function isosurface at 0x3e31b90>, 'contourf': <function contourf at 0x3e31320>, 'plot': <function plot at 0x3e30de8>, 'meshc': <function meshc at 0x3e31668>, 'streamtube': <function streamtube at 0x3e31500>, 'surfl': <function surfl at 0x3e317d0>, 'jet': <function jet at 0x3e32c08>, 'title': <function title at 0x3e30c08>, 'surfc': <function surfc at 0x3e31758>, 'slice_': <function slice_ at 0x3e31938>, 'cla': <function cla at 0x3e30758>, 'contourslice': <function contourslice at 0x3e319b0>, 'init': <function init at 0x3e2fde8>, '_check_args': <function _check_args at 0x3e300c8>, '_local_attrs': {'color': False, 'interactive': True, 'curfig': 1, 'show': True}, 'ylabel': <function ylabel at 0x3e30cf8>, 'hidden': <function hidden at 0x3e31c80>, 'pcolor': <function pcolor at 0x3e31398>, 'coneplot': <function coneplot at 0x3e31a28>, '__doc__': '\n Subclasses implement different backends\n (GnuplotBackend for Gnuplot, for instance).\n\n This base class saves info about plotting to instances of class Figure,\n Line, and PlotItem.\n\n List of internal helper functions (for subclasses):\n ...\n\n\n \nList of "Matlab-like" interface functions (for the user):\n - \'autumn\',\n - \'axes\',\n - \'axis\',\n - \'bone\',\n - \'box\',\n - \'brighten\',\n - \'camdolly\',\n - \'camlight\',\n - \'camlookat\',\n - \'campos\',\n - \'camproj\',\n - \'camroll\',\n - \'camtarget\',\n - \'camup\',\n - \'camva\',\n - \'camzoom\',\n - \'caxis\',\n - \'cla\',\n - \'clabel\',\n - \'clf\',\n - \'close\',\n - \'closefig\',\n - \'closefigs\',\n - \'colorbar\',\n - \'colorcube\',\n - \'colormap\',\n - \'coneplot\',\n - \'contour\',\n - \'contour3\',\n - \'contourf\',\n - \'contourslice\',\n - \'cool\',\n - \'copper\',\n - \'daspect\',\n - \'figure\',\n - \'fill\',\n - \'fill3\',\n - \'flag\',\n - \'gca\',\n - \'gcf\',\n - \'get\',\n - \'gray\',\n - \'grid\',\n - \'hardcopy\',\n - \'hidden\',\n - \'hold\',\n - \'hot\',\n - \'hsv\',\n - \'ishold\',\n - \'isocaps\',\n - \'isosurface\',\n - \'jet\',\n - \'legend\',\n - \'light\',\n - \'lines\',\n - \'loglog\',\n - \'material\',\n - \'mesh\',\n - \'meshc\',\n - \'openfig\',\n - \'pcolor\',\n - \'pink\',\n - \'plot\',\n - \'plot3\',\n - \'prism\',\n - \'quiver\',\n - \'quiver3\',\n - \'reducevolum\',\n - \'savefig\',\n - \'savefig\',\n - \'semilogx\',\n - \'semilogy\',\n - \'set\',\n - \'shading\',\n - \'show\',\n - \'slice_\',\n - \'spring\',\n - \'streamline\',\n - \'streamribbon\',\n - \'streamslice\',\n - \'streamtube\',\n - \'subplot\',\n - \'subvolume\',\n - \'summer\',\n - \'surf\',\n - \'surfc\',\n - \'surfl\',\n - \'title\',\n - \'vga\',\n - \'view\',\n - \'white\',\n - \'winter\',\n - \'xlabel\',\n - \'ylabel\',\n - \'zlabel\'\nKeywords for the setp method:\n - \'color\', \'curfig\', \'interactive\', \'show\'', 'camtarget': <function camtarget at 0x3e321b8>, 'subplot': <function subplot at 0x3e30320>, 'camup': <function camup at 0x3e31ed8>, 'isocaps': <function isocaps at 0x3e31b18>, 'flag': <function flag at 0x3e32a28>, 'campos': <function campos at 0x3e32140>, 'grid': <function grid at 0x3e30b18>, '_matlab_like_cmds': ['autumn', 'axes', 'axis', 'bone', 'box', 'brighten', 'camdolly', 'camlight', 'camlookat', 'campos', 'camproj', 'camroll', 'camtarget', 'camup', 'camva', 'camzoom', 'caxis', 'cla', 'clabel', 'clf', 'close', 'closefig', 'closefigs', 'coneplot', 'colorbar', 'colorcube', 'colormap', 'contour', 'contour3', 'contourf', 'contourslice', 'cool', 'copper', 'daspect', 'figure', 'fill', 'fill3', 'flag', 'gca', 'gcf', 'get', 'gray', 'grid', 'hardcopy', 'hidden', 'hold', 'hot', 'hsv', 'ishold', 'isocaps', 'isosurface', 'jet', 'legend', 'light', 'lines', 'loglog', 'material', 'mesh', 'meshc', 'openfig', 'savefig', 'pcolor', 'pink', 'plot', 'plot3', 'prism', 'quiver', 'quiver3', 'reducevolum', 'semilogx', 'semilogy', 'set', 'shading', 'show', 'slice_', 'spring', 'streamline', 'streamribbon', 'streamslice', 'streamtube', 'savefig', 'subplot', 'subvolume', 'summer', 'surf', 'surfc', 'surfl', 'title', 'vga', 'view', 'white', 'winter', 'xlabel', 'ylabel', 'zlabel'], 'shading': <function shading at 0x3e32488>, 'hold': <function hold at 0x3e30578>, 'white': <function white at 0x3e329b0>, 'cool': <function cool at 0x3e32cf8>, 'gray': <function gray at 0x3e327d0>, 'bar': <function bar at 0x3e311b8>, 'vga': <function vga at 0x3e32b90>, 'caxis': <function caxis at 0x3e32398>, 'clabel': <function clabel at 0x3e32578>, 'colorbar': <function colorbar at 0x3e32410>, 'camlookat': <function camlookat at 0x3e31de8>, 'xlabel': <function xlabel at 0x3e30c80>, 'contour3': <function contour3 at 0x3e318c0>, '_attrs_type': {'color': <function <lambda> at 0x3e2fcf8>, 'interactive': <function <lambda> at 0x3e2fc80>, 'curfig': <function <lambda> at 0x3e2fb90>, 'show': <function <lambda> at 0x3e2fc08>}, 'lines': <function lines at 0x3e32aa0>, 'bone': <function bone at 0x3e32848>, 'view': <function view at 0x3e31cf8>, '__module__': 'scitools.easyviz.common', 'quiver': <function quiver at 0x3e31230>, 'figure': <function figure at 0x3e30668>, 'fill': <function fill at 0x3e310c8>, 'openfig': <function openfig at 0x3e30410>, 'light': <function light at 0x3e322a8>, 'autumn': <function autumn at 0x3e32d70>, 'ishold': <function ishold at 0x3e305f0>, 'camroll': <function camroll at 0x3e31f50>, 'close': <function close at 0x3e309b0>, 'plot3': <function plot3 at 0x3e31050>, '_replot': <function _replot at 0x3e30050>, 'contour': <function contour at 0x3e312a8>, '__init__': <function __init__ at 0x3e2fd70>, 'camva': <function camva at 0x3e32050>, 'gca': <function gca at 0x3e30230>, 'camproj': <function camproj at 0x3e31e60>, 'winter': <function winter at 0x3e32e60>, 'gcf': <function gcf at 0x3e301b8>, '__weakref__': <attribute '__weakref__' of 'BaseClass' objects>, 'axes': <function axes at 0x3e302a8>, 'streamslice': <function streamslice at 0x3e31aa0>, 'ylim': <function ylim at 0x3e308c0>, 'prism': <function prism at 0x3e32c80>, '_cmpPlotProperties': <function _cmpPlotProperties at 0x3e30140>, 'getp': <function getp at 0x3e2ff50>, 'closefigs': <function closefigs at 0x3e30aa0>, 'axis': <function axis at 0x3e307d0>, 'copper': <function copper at 0x3e328c0>, 'zlabel': <function zlabel at 0x3e30d70>, 'loglog': <function loglog at 0x3e30e60>, 'surf': <function surf at 0x3e316e0>, 'pink': <function pink at 0x3e32938>, 'material': <function material at 0x3e32668>, 'colormap': <function colormap at 0x3e32320>, 'spring': <function spring at 0x3e32de8>, 'quiver3': <function quiver3 at 0x3e31848>, 'hardcopy': <function hardcopy at 0x3e30500>, 'stem': <function stem at 0x3e31140>, 'closefig': <function closefig at 0x3e30a28>, 'mesh': <function mesh at 0x3e315f0>, 'streamline': <function streamline at 0x3e31488>, 'camdolly': <function camdolly at 0x3e31d70>, 'legend': <function legend at 0x3e30b90>, 'box': <function box at 0x3e325f0>, 'camzoom': <function camzoom at 0x3e320c8>, 'zlim': <function zlim at 0x3e30938>, 'fill3': <function fill3 at 0x3e31410>, 'semilogx': <function semilogx at 0x3e30ed8>, 'semilogy': <function semilogy at 0x3e30f50>, 'hot': <function hot at 0x3e32758>, 'daspect': <function daspect at 0x3e30398>, 'setp': <function setp at 0x3e2fed8>, 'colorcube': <function colorcube at 0x3e32b18>, 'hsv': <function hsv at 0x3e326e0>, 'clf': <function clf at 0x3e306e0>})
__format__()

default object formatter

__getattribute__

x.__getattribute__(‘name’) <==> x.name

__hash__() <==> hash(x)
__init__()[source]
__module__ = 'scitools.easyviz.common'
static __new__(S, ...) → a new object with type S, a subtype of T
__reduce__()

helper for pickle

__reduce_ex__()

helper for pickle

__repr__() <==> repr(x)
__setattr__

x.__setattr__(‘name’, value) <==> x.name = value

__sizeof__() → int

size of object in memory, in bytes

__str__()[source]
static __subclasshook__()

Abstract classes can override this to customize issubclass().

This is invoked early on by abc.ABCMeta.__subclasscheck__(). It should return True, False or NotImplemented. If it returns NotImplemented, the normal algorithm is used. Otherwise, it overrides the normal algorithm (and the outcome is cached).

__weakref__

list of weak references to the object (if defined)

autumn(m=None)[source]

Shades of red and yellow color map.

axes(*args, **kwargs)[source]

Create axes in specified positions.

Calling:

axes()

returns a default Axis instance.

Calling:

axes(ax)

sets the axis in the Axis instance ax as the current axis.

Calling:

axes(viewport=RECT)

returns a axis at the position given in RECT. RECT is normally a list [left,bottom,width,height], where the four parameters (values between 0 and 1) specifies the location and size of the axis box ((0,0) is the lower-left corner and (1,1) is the upper-right corner). However, this is backend-dependent.

axis(*args, **kwargs)[source]

Choose the axis limits and appearance.

Calling:

axis([xmin, xmax, ymin, ymax[, zmin, zmax]])

sets the limits on the x-, y-, and z-axes in the current plot.

Calling:

axis(xmin, xmax, ymin, ymax[, zmin, zmax])

gives the same result as above.

Calling:

axis()

returns the limits on the x-, y-, and z-axes for the current plot. If the view in the current plot is a 2D view, only the limits on the x- and y-axis are returned.

Calling:

axis(mode)

sets axis scaling to mode, where mode can be

  • ‘auto’ - autoscaling is used
  • ‘manual’ - freeze the scaling at the current limits
  • ‘tight’ - sets the axis limits to the range of the data
  • ‘fill’ - has currently no affect

Calling:

axis(method)

sets the appearance of the current axis as specified by method.

Legal values for method are:
  • ‘equal’, ‘image’, ‘normal’, ‘square’, ‘vis3d’

Calling:

axis(direction)

sets the direction of the increasing values on the axes.

  • ‘ij’ - reverse y-axis
  • ‘xy’ - restore y-axis

Calling:

axis('off')

turns off the visibility of the axis.

Calling:

axis('on')

turns the visibility of the axis back on.

Calling:

axis(ax, ...)

affects the Axis object ax instead of the current axis.

bar(*args, **kwargs)[source]

Draw a bar graph.

Calling:

bar(data)

where data is a dictionary on the form

data = {‘method1’: {‘thing1’: value, ‘thing2’: value},
‘method2’: {‘thing1’: value, ‘thing2’: value}, ‘method3’: {‘thing1’: value, ‘thing2’: value},}

will draw m bars for every name (key in data), one for each key in data[name], where the height indicates the value. The name is placed beneath each of the bar groups on the x axis.

Calling:

bar(Y)

will draw a bar for each of the elements in the vector/matrix Y. If Y is a matrix, a group of bars from the elements of each row of Y will be created.

Calling:

bar(x,Y)

is the same as above only that the values on the x axis is defined by the vector x.

Calling:

bar(..., width)

uses the specified width on the bars. The default width is 0.8, while a width of 1.0 should make the bars just touch each other (might vary in the different backends).

Calling:

bar(..., color)

uses the given color for all the bars.

Calling:

bar(ax, ...)

uses the Axis object ax instead of the current axis.

@return: A Bars object.

Examples:

>>> from numpy.random import rand
>>> bar(rand(4))
>>> figure()
>>> bar(rand(4,3))
bone(m=None)[source]

Gray-scale with a tinge of blue color map.

box(*args)[source]

Display a box around the boundaries of the current axis.

Calling:

box('on')

displays a box at the boundaries of the current axis.

Calling:

box('off')

turns off the box.

Calling:

box()

toggles the display of a box in the current axis.

Calling:

box(ax, ...)

uses the Axis object ax instead of the current axis.

Note: box(True) and box(False) is the same as box(‘on’) and box(‘off’), respectively.

brighten(*args)[source]

Brighten or darken the color map.

camdolly(*args)[source]

Dolly camera.

Calling:

camdolly(dx, dy, dz)

moves the camera position along the direction of projection.

Calling:

camdolly(ax, ...)

uses the Axis object ax instead of the current axis.

camlight(*args, **kwargs)[source]

Create or set position of a light.

Calling:

camlight('headlight')

creates a light in the current axis at the position of the camera.

Calling:

camlight('right')

creates a light right and up from the camera in the current axis.

Calling:

camlight('left')

creates a light left and up from the camera.

Calling:

camlight()

is the same as camlight(‘right’).

Calling:

camlight(azimuth, elevation)

creates a light at azimuth, elevation (both given in degrees) from the camera.

Calling:

camlight(..., style)

sets the style of the light, where style can be either ‘local’ (default) or ‘inifinite’.

Calling:

camlight(l, ...)

places Light object l at the specified position.

@return: A Light object.

camlookat(*args)[source]

Move camera and target to view specified objects.

Calling:

camlookat(obj)

views the PlotProperties object obj.

Calling:

camlookat(ax)

views the objects in the Axis object ax.

Calling:

camlookat()

views the objects in the current axes.

campos(*args)[source]

Camera position.

Calling:

campos()

returns the position of the camera in the current axis.

Calling:

campos([x,y,z])

sets the camera position.

Calling:

campos(x,y,z)

is the same as above.

Calling:

campos(ax, ...)

sets or gets the position of the camera in the Axis object ax instead of the current axis.

camproj(*args)[source]

Camera projection.

Calling:

camproj()

returns the camera projection of the current axis.

Calling:

camproj(projeciton)

sets the projection of the camera to projection, where projection can be either ‘orthographic’ (default) or ‘perspective’.

Calling:

camproj(ax, ...)

sets or gets the camera projection of the Axis object ax instead of the current axis.

camroll(*args)[source]

Roll camera.

Calling:

camroll(angle)

rotates the camera about the direction of projection.

Calling:

camroll(ax, ...)

rotates the camera in the Axis object ax instead of the current axis.

camtarget(*args)[source]

Camera target.

Calling:

camtarget()

returns the camera target of the current axis.

Calling:

camtarget([x,y,z])

sets the target for the camera.

Calling:

camtarget(x,y,z)

is the same as above.

Calling:

camtarget(ax, ...)

sets or gets the camera target in the Axis object ax instead of the current axis..

camup(*args)[source]

Camera up vector.

Calling:

camup()

returns the up vector of the camera in the current axis.

Calling:

camup([x, y, z])

sets the camera up vector.

Calling:

camup(x, y, z)

is the same as the above.

Calling:

camup(ax, ...)

sets or gets the up vector for the camera in the Axis object ax instead of the current axis.

camva(*args)[source]

Camera view angle.

Calling:

camva()

returns the camera view angle of the current axis.

Calling:

camva(angle)

sets the camera view angle.

Calling:

camva(ax, ...)

sets or gets the camera view angle in the Axis object ax instead of the current axis.

camzoom(*args)[source]

Zoom camera.

Calling:

camzoom(factor)

zooms the camera the specified factor. A value greater than 1 is a zoom-in, while a value less than 1 is a zoom-out.

Calling:

camzoom(ax, ...)

zooms the camera in the Axis object ax instead of the current axis.

caxis(*args)[source]

Set the limits for the color axis.

Calling:

caxis([cmin, cmax])

changes the limits for the color axis to range from cmin to cmax.

Calling:

caxis(cmin, cmax)

gives the same result as above.

Calling:

caxis('manual')

freezes the limits at the current range.

Calling:

caxis('auto')

uses autoranging for the color axis limits (default).

Calling:

cmin, cmax = caxis()

returns the current color axis limits.

Calling:

caxis(ax, ...)

uses the Axis object ax instead of the current axis.

cla(*args)[source]

Clear the current axis.

Calling:

cla()

clears the current axis.

Calling:

cla(ax)

clears the Axis object ax instead of the current axis.

clabel(*args)[source]

Control labeling of contours.

Calling:

clabel(obj, 'on')

adds height labels to a contour plot (obj must be a Contours object).

Calling:

clabel(obj, 'off')

removes the labeling of the contour lines (default).

clf()[source]

Clear the current figure.

close(*args)[source]

Close figure.

Calling:

close()

closes the current figure.

Calling:

close(num)

closes the figure with number num.

Calling:

close(fig)

closes the Figure object fig.

Calling:

close('all')

closes all figures.

closefig(arg)[source]

Close figure window.

closefigs()[source]

Close all figure windows.

colorbar(*args)[source]

Display a color bar.

Calling:

colorbar()

displays a colorbar in the current axis.

Calling:

colorbar('off')

removes the colorbar from the current axis.

Calling:

colorbar(loc)

displays a colorbar in the current axis at the location specified by loc, where loc may be any of the following:

  • ‘North’ - inside plot box near top
  • ‘South’ - inside bottom
  • ‘East’ - inside right
  • ‘West’ - inside left
  • ‘NorthOutside’ - outside plot box near top
  • ‘SouthOutside’ - outside bottom
  • ‘EastOutside’ - outside right
  • ‘WestOutside’ - outside left

Calling:

colorbar(ax, ...)

uses the Axis object ax instead of the current axis.

@return: A Colorbar object.

colorcube(m=None)[source]

Enhanced color-cube color map.

colormap(*args)[source]

Specify colormap.

Calling:

colormap(map)

uses the colormap in map as the current colormap (map is dependent on the current backend).

Calling:

colormap('default')

sets the colormap to the default colormap, i.e., jet.

Calling:

map = colormap()

returns the current colormap.

Calling:

colormap(ax, ...)

uses the figure corresponding to the Axis object ax instead of the current figure.

coneplot(*args, **kwargs)[source]

Draw a 3D cone plot.

Calling:

coneplot(X,Y,Z,U,V,W,Cx,Cy,Cz)

draws velocity vectors as cones from the 3D vector field defined by U, V, and W at the points given in the arrays Cx, Cy, and Cz. The arrays X, Y, and Z defines the grid coordinates for vector field. The shape of U, V, and W is assumed to be the same, while the grid components must either have the same shape as U or fulfill the requirement len(X)==n, len(Y)==m, and len(Z)==p, where m,n,p=shape(U).

Calling:

coneplot(U,V,W,Cx,Cy,Cz)

is the same as above, but it is assumed that X,Y,Z = meshgrid(range(n),range(m),range(p)), where m,n,p = shape(U).

Calling:

coneplot(..., scale)

will automatically scale the cones by the factor scale (default is 1). To turn of automatic scaling, use a scale value of 0.

Calling:

coneplot(..., C)

uses the colors in the array C to color the cones (C must have the same shape as U).

Calling:

coneplot(..., 'quiver')

will plot arrows instead of cones.

Calling:

coneplot(ax, ...)

uses the Axis object ax instead of the current axis.

@return: A Streams object.

Examples:

FIXME: Add conplot example.

contour(*args, **kwargs)[source]

Draw a 2D contour plot.

Calling:

contour(X, Y, Z)

displays a contour plot where the values in the scalar field Z are treated as heights above a plane. The grid components X and Y must either have the same shape as Z or fulfill the requirement len(X)==n and len(Y)==m, where m,n=shape(Z).

Calling:

contour(Z)

is the same as calling contour(range(n),range(m),Z), where m,n=shape(Z).

Calling:

contour(..., n)

displays a contour plot with n contour lines (default is 8 lines).

Calling:

contour(..., v)

displays contours at levels given in the array v.

Calling:

contour(..., fmt)

uses the color and line style as given in the format string fmt to draw the contour lines (see the plot command for further details on format strings). This overrides the default behavior of using the current colormap to color the contour lines.

Calling:

contours(ax, ...)

plots into the Axis object ax instead of the current axis.

Calling:

contour(...,clabels='on')

is the same as calling h=contour(...) followed by clabel(h,’on’).

Examples:

>>> # draw a contour plot of the peaks function:
>>> x = y = linspace(-3, 3, 13)
>>> xv, yv = meshgrid(x, y)
>>> values = peaks(xv, yv)
>>> contour(xv, yv, values)

Draw 10 red contour lines with double line width: >>> contour(xv, yv, values, 10, ‘r’, linewidth=2)

Draw contour lines at -2, 0, 2, and 5: >>> contour(xv, yv, values, [-2,0,2,5])

contour3(*args, **kwargs)[source]

Draw 3D contour plot.

Calling:

contour3(...)

is the same as calling contour(...), except that the contours are drawn at their coresponding height level.

Examples:

>>> contour3(peaks())
contourf(*args, **kwargs)[source]

Draw filled contour plot.

Calling:

contourf(...)

is the same as calling contour(...) with the exception that the space between the contour lines is filled with colors.

Examples:

>>> contourf(peaks(), clabel='on', colorbar='on')
contourslice(*args, **kwargs)[source]

Draw contour lines in slice planes.

Calling:

contourslice(X,Y,Z,V,Sx,Sy,Sz)

will draw contour lines in planes aligned with the coordinate axes at the points in the arrays Sx, Sy, and Sz. The arrays X, Y, and Z defines the grid coordinates for the volume V and they must either have the same shape as V or fulfill the requirement len(X)==n, len(Y)==m, and len(Z)==p, where m,n,p = shape(V).

Calling:

contourslice(V,Sx,Sy,Sz)

is the same as above, but it is assumed that X,Y,Z = meshgrid(range(n),range(m),range(p)), where m,n,p = shape(V).

Calling:

contourslice(X,Y,Z,V,XI,YI,ZI)

will draw contour lines through the volume V along the surface given in the arrays XI, YI, and ZI.

Calling:

contourslice(V,XI,YI,ZI)

is the same as above, but it is assumed that X,Y,Z = meshgrid(range(n),range(m),range(p)), where m,n,p = shape(V).

Calling:

contourslice(..., n)

will draw n contour lines per plane instead of the default of five contour lines.

Calling:

contourslice(..., v)

will draw contour lines at the levels given in the array v.

Calling:

contourslice(ax, ...)

uses the Axis object ax instead of the current axis.

@return: A Volume object.

Example: >>> xx, yy, zz = meshgrid(linspace(-2,2,21), linspace(-2,2,17), ... linspace(-2,2,25)) >>> vv = xx*exp(-xx**2-yy**2-zz**2) >>> contourslice(xx, yy, zz, vv, [-.7,.7], [], [0], view=3)

cool(m=None)[source]

Shades of cyan and magenta color map.

copper(m=None)[source]

Linear copper-tone color map.

daspect(*args)[source]

Change the data aspect ratio.

Calling:

daspect([x,y,z])

sets the data aspect ratio for the x, y, and z axis (e.g., daspect([1,2,4]) means that one unit in x direction is equal in length to two units in y direction and four units in z direction). For example, daspect([r,1,1]) makes the physical size of the y axis in the plot r times the x axis.

The size of the axes must be explicitly in order for the daspect command to work properly. Note that setting the aspect ratio is not supported by all backends.

Calling:

daspect()

returns the data aspect ratio for the current axis.

Calling:

daspect(mode)

sets the data aspect ratio mode, where mode can be ‘auto’, ‘equal’, or ‘manual’. By specifying the mode to ‘auto’ (default), the data aspect ratio will be automatically computed so that each axis spans the available space in the figure window. In the ‘manual’ mode the user sets the aspect ratio, while ‘equal’ means that the the same units are used in both axes (for example, if the x axis goes from 0 to 10 and the y axis from 0 to 1, and we want the x axis ten times as long as the y axis, the manual aspect ratio er 0.1, and ‘equal’ will automatically set the ratio to 0.1).

Calling:

daspect('mode')

returns the data aspect ratio mode.

Calling:

daspect(r)

sets the data aspect ratio to r. This is for backends that do not support setting individual aspect ratios for the x, y, and z axis (like the Gnuplot backend). If the backend do support individual aspect ratios, the aspect ratio is set to r for all three axes.

Calling:

daspect(ax, ...)

uses the the Axis object ax instead of the current axis.

>>> surf(peaks(21))
<scitools.easyviz.common.Surface object at 0xb7d7950c>
>>> daspect()
(1.0, 1.0, 0.71549553759291729)
>>> figure()
>>> surf(peaks(21))
<scitools.easyviz.common.Surface object at 0xb58ff70c>
>>> daspect([1,1,1])
>>>
figure(num=None, **kwargs)[source]

Create a new figure or switch between figures and return Figure object. num is the figure number of the new or existing figure.

fill(*args, **kwargs)[source]

Draw filled 2D polygons.

fill3()[source]

Draw filled 3D polygons.

flag(m=None)[source]

Alternating red, white, blue, and black color map.

gca()[source]

Return the current axis in the current figure.

gcf()[source]

Return current figure.

getp(*args)[source]

Get object properties or an attribute in this backend instance.

Calling:

getp('name')

returns the attribute with name ‘name’ in this backend instance.

Calling:

getp(obj, 'name')

returns the property with name ‘name’ of the object given in obj. This object must have a get method (like Figure, Axis, or PlotProperties objects).

Calling:

getp(obj)

displays all property names and values for the object given in obj.

gray(m=None)[source]

Linear gray-scale color map.

grid(*args)[source]

Toggle the display of grid lines.

Calling:

grid('on')

displays grid lines in the current axis.

Calling:

grid('off')

removes the grid lines from the current axis.

Calling:

grid()

toggles the display of grid lines in the current axis.

Calling:

grid(ax, ...)

uses Axis object ax instead of the current axis.

Note that calling grid(True) and grid(False) is the same as calling grid(‘on’) and grid(‘off’), respectively.

hardcopy(filename, **kwargs)[source]

Save a hardcopy of the current figure to file (with the given filename). The file format (image type) is determined from the extension of the filename. If any changes have been made by working directly on the backend instance, set the keyword argument replot to False to stop Easyviz from replotting the current figure and destroying those changes.

hidden(*args)[source]

Toggle hidden line removal in the current axis.

Calling:

hidden(state)

turns hidden line removal on if state is ‘on’ (or True) and off if state is ‘off’ (or False). Hidden line removal is turned on by default.

Calling:

hidden()

toggles the hidden state.

Note: Some backends has no support for hidden line removal (e.g., VTK).

hold(*args)[source]

Change the hold state of the current axis.

Calling:

hold('on')

makes every subsequent plotting commands be added to the current plot.

Calling:

hold('off')

clears the previous plot before the new plot is drawn. This is the default behavior.

Calling:

hold()

toggles the hold state in the current axis.

Calling:

hold(ax, ...)

affects the Axis object ax instead of the current axis.

Note that one can use hold(True) and hold(False) instead of hold(‘on’) and hold(‘off’), respectively.

hot(m=None)[source]

Black-red-yellow-white color map.

hsv(m=None)[source]

Hue-saturation-value color map.

init()[source]

Initialize internal data structures.

ishold()[source]

Return the hold state (True if hold is on, and False if it is off).

isocaps(*args, **kwargs)[source]

Draw isosurface end caps.

isosurface(*args, **kwargs)[source]

Draw isosurfaces from 3D scalar fields.

Calling:

isosurface(X,Y,Z,V,isovalue)

creates an isosurface for the volume V at the iso value given by isovalue. The arrays X, Y, and Z defines the grid for the volume V and they must either have the same shape as V or fulfill the requirement len(X)==n, len(Y)==m, and len(Z)==p, where m,n,p = shape(V).

Calling:

isosurface(V,isovalue)

is the same as above, but it is assumed that X,Y,Z = meshgrid(range(n),range(m),range(p)), where m,n,p = shape(V).

Calling:

isosurface(..., C)

uses the colors in the array C instead of the colors in the scalar field V (C and V must have the same shape).

@return: A Volume object.

Examples:

>>> x, y, z, v = flow()
>>> isosurface(x, y, z, v, -3, daspect=[1,1,1])
jet(m=None)[source]

Variant of hsv.

legend(*args, **kwargs)[source]

Add legend(s) to the current plot.

Calling:

legend(string1, string2, string3,...)
or
legend([string1, string2, string3,...])

adds legends to the current plot using the given strings as labels. Note that the number of strings should match the number of items in the current axis (i.e., getp(gca(), ‘numberofitems’)), but a less legends than curve items are allowed.xo

Calling:

legend(string)

adds the given string as a legend to the last item added to the current axis.

Calling:

legend(ax, ...)

affects the Axis object ax instead of the current axis.

The keyword arguments (**kwargs) are ignored, but makes it possible to seemlessly switch between easyviz and matplotlib.

light(**kwargs)[source]

Add a light to the current axis.

Calling:

light()

will add a light to the current axis with default values for all light properties.

Calling:

light(prop1=value1, prop2=value2, ...)

adds a light with properties as given in the keyword arguments.

@return: A Light object.

lines(m=None)[source]

Color map with the line colors.

loglog(*args, **kwargs)[source]

Draw a loglog plot with logarithmic scaling on x- and y-axis.

Calling:

loglog(...)

is the same as calling plot(...) with the exception that a logarithmic (base 10) scale is used for both x- and y-axes.

material(*args)[source]

Set the material reflectance mode.

Calling:

material([ka, kd, ks[, n[, sc]]])

changes the ambient/diffuse/specular strength, specular exponent, and specular color reflectance of objects.

Calling:

material(ka, kd, ks[, n[, sc]])

is the same as above.

Calling:

material(mode)

sets the material mode, where mode can be one of the following strings:

  • ‘shiny’ - shiny objects
  • ‘dull’, - dull objects
  • ‘metal’ - metallic objects
  • ‘default’ - default material properties
mesh(*args, **kwargs)[source]

Draw a 3D mesh surface.

Calling:

mesh(X, Y, Z[, C])

plots the colored mesh defined by scalar field Z defined on the grid given by X and Y. The grid components X and Y must either have the same shape as Z or fulfill the requirement len(X)==n and len(Y)==m, where m,n=shape(Z). The color is determined by the array C which must have the same shape as Z. If the color array C is not given, Z is used as the color array (i.e., C=Z).

Calling:

mesh(Z[, C])

is the same as calling mesh(range(n), range(m), Z[, C]), where m,n = shape(Z).

Calling:

mesh(ax, ...)

plots into the Axis object ax instead of the current axis.

@return: A Surface object.

Examples:

>>> x = y = linspace(-2, 2, 21)
>>> xx, yy = meshgrid(x, y)
>>> zz = exp(-xx**2)*exp(-yy**2)
>>> mesh(xx, yy, zz)
meshc(*args, **kwargs)[source]

Draw a mesh with a contour plot beneath.

Calling:

meshc(...)

is the same as calling mesh(...) only that a contour plot is drawn beneath the mesh.

Examples:

Draw a mesh with contour lines: >>> x = linspace(-2, 2, 21) >>> xx, yy = meshgrid(x) >>> zz = peaks(xx, yy) >>> meshc(xx, yy, zz)

Draw a mesh with 20 contour lines: >>> meshc(xx, yy, zz, clevels=20)

Draw a mesh with contour lines at height -0.2, -0.5, 0.2, 0.5: >>> meshc(xx, yy, zz, cvector=[-0.2,-0.5,0.2,0.5])

Draw a mesh with contours and label the contours: >>> meshc(xx, yy, zz, clabels=’on’)

openfig(filename='figspickle.txt')[source]

Load figures saved in a file (with the given filename). The format of this file is currently standard Python pickle format. All figures in a previous session were dumped to the file, and all these figures are by this method reloaded and added to the current set of figures.

pcolor(*args, **kwargs)[source]

Draw a 2D pseudocolor plot.

Calling:

pcolor(C)

draw a pseudocolor plot of the 2D array C.

Calling:

pcolor(X,Y,C)

same as above, only that the grid is specified by the X and Y arrays. These arrays must either have the same shape as C or fulfill the requirement len(X)==n and len(Y)==m, where m,n=shape(C).

Calling:

pcolor(ax, ...)

uses the Axis object ax instead of the current axis.

Examples:

Simple pseudocolor plot: >>> pcolor(peaks(31))

Draw a pseudocolor plot with interpolated shading: >>> pcolor(peaks(), shading=’interp’, ... colorbar=’on’, colormap=hot())

pink(m=None)[source]

Pastel shades of pink color map.

plot(*args, **kwargs)[source]

Draw line and scatter plots.

Calling:

plot(x, y)

plots y against x, i.e., if x and y are vectors of length n, then this will plot all the points (x[i], y[i]) for 0<=i<n.

Calling:

plot(y)

plots values in y on y-axis (same as plot(range(len(y)),y)).

Calling:

plot(y, fmt)

plots values in y on y-axis formated like fmt (see below).

Calling:

plot(x1,y1,fmt1, x2,y2,fmt2, ...)

same as hold(‘on’) followed by multiple plot(x,y,fmt).

Calling:

plot(x1,y1,x2,y2,...)

like above, but automatically chooses different colors.

Calling:

plot(y1,y2,...,x=x)

uses x as the x values for all the supplied curves. x=’auto’ has the same effect as x=range(len(y1)).

Calling:

plot(...,log=mode)

uses logarithmic (base 10) scales on either the x- or y-axes (or both). mode can be

  • ‘x’ - logarithmic scale on x-axis
  • ‘y’ - logarithmic scale on y-axis
  • ‘xy’ - logarithmic scales on both x- and y-axes.

Calling:

plot(ax, ...)

plots into the Axis object ax instead of the current axis.

The plot command returns a list a of all Line objects created.

The following format specifiers exist:

y yellow . point - solid m magenta o circle : dotted c cyan x x-mark -. dashdot r red + plus – dashed g green * star b blue s square w white d diamond k black v triangle (down)

^ triangle (up) < triangle (left) > triangle (right) p pentagram h hexagram

Examples:

Draw a line from a Python list: >>> plot([1,2,3])

Draw three red crosses: >>> plot([1,2,3], ‘rx’)

A somewhat more complex example: >>> x = linspace(0, 15, 76) # 0, 0.2, 0.4, ..., 15 >>> y1 = sin(x)*x >>> y2 = sin(x)*sqrt(x) >>> plot(x, y1, ‘b-‘, x, y2, ‘ro’, ... legend=(‘x*sin(x)’, ‘sqrt(x)*sin(x)’))

Note: loglog, semilogy, and semilogx are like plot(...,log=’xy’), plot(...,log=’y’), and plot(...,log=’x’), respectively.

plot3(*args, **kwargs)[source]

Draw lines and points in 3D space.

Calling:

plot3(x, y, z)

plots z against x and y, i.e., if x, y, and z are vectors of length n, then this will plot all the points (x[i], y[i], z[i]) for 0<=i<n.

Calling:

plot3(z)

plots values in z on the z-axis (same as plot3(range(len(z)), range(len(z)), z)).

Calling:

plot3(z, fmt)

plots values in z on z-axis formated like fmt (see the plot command).

Calling:

plot3(x1,y1,z1,fmt1,x2,y2,z2,fmt2,...)

same as hold(‘on’) followed by multiple plot3(x,y,z,fmt).

Calling:

plot3(x1,y1,z1,x2,y2,z2,...)

like above, but automatically chooses different colors.

Calling:

plot3(z1,z2,...,x=x,y=y)

uses x as the values on the x-axis and y as the values on the y-axis for all the supplied curves (assuming that all have the same length). By setting x=’auto’ and y=’auto’ has the same effect as x=range(len(z1)) and y=range(len(z1)), respectively.

Calling:

plot3(ax, ...)

plots into the Axis object ax instead of the current axis.

The plot3 command returns a list containing all the created Line objects.

Examples:

>>> t = linspace(0,10*pi,301)
>>> plot3(sin(t), cos(t), t, title='A helix', grid='on')
prism(m=None)[source]

Prism color map.

quiver(*args, **kwargs)[source]

Draw arrows from a 2D vector field.

Calling:

quiver(X, Y, U, V)

displays vectors as arrows with components U and V at the grid defined by X and Y. The arrays U and V must both have the same shape and the grid components X and Y must either have the same shape as U or fulfill the requirement len(X)==n and len(y)==m, where m,n=shape(u).

Calling:

quiver(U, V)

is the same as calling quiver(range(n),range(m),U,V), where m,n=shape(u)).

Calling:

quiver(..., 'filled')

draw filled arrows.

Calling:

quiver(..., fmt)

sets the line specification as given in the format string fmt. See the plot command for further details on specifying the format string.

Examples:

Plot the gradient field of the function z = x**2 + y**2: >>> x = y = linspace(-2, 2, 21) >>> xv, yv = meshgrid(x,y) >>> values = xv**2 + yv**2 >>> contour(xv, yv, values, 10, hold=’on’) <scitools.easyviz.common.Contours object at 0xb45f374c> >>> uv, vv = gradient(values, 0.2) >>> quiver(xv, yv, uv, vv) <scitools.easyviz.common.VelocityVectors object at 0xb45435cc> >>> hold(‘off’)

Another example: >>> x = linspace(0,3,80) >>> y = sin(2*pi*x) >>> theta = 2*pi*x+pi/2 >>> u = sin(theta)/10 >>> v = cos(theta)/10 >>> quiver(x,y,u,v,0.04,’b’,hold=’on’) <scitools.easyviz.common.VelocityVectors object at 0xb768e1cc> >>> plot(x,y,’r’) [<scitools.easyviz.common.Line object at 0xb768e36c>] >>> hold(‘off’)

quiver3(*args, **kwargs)[source]

Draw velocity vectors in 3D space.

Calling:

quiver3(X, Y, Z, U, V, W)

plots arrows from the 3D vector field with components U,V,W at the grid defined by X,Y,Z. The shape of the three vector components is assumed to be the same, while the grid components must either have the same shape as U or fulfill the requirements len(X)==n, len(Y)==m, and len(Z)==p, where m,n,p=shape(U).

Calling:

quiver3(Z,U,V,W)

gives the same result as above, but it is assumed that X,Y = meshgrid(range(n),range(m)), where m,n=shape(Z).

Calling:

quiver3(..., s)

scales the arrows by the scale factor given in s. The default is s=1, while a value of s=0 turns off automatic scaling.

Calling:

quiver3(..., 'filled')

fills the arrows.

Calling:

quiver3(..., fmt)

sets the specification on the arrows as given in the format string fmt (see the plot command for further information on format strings).

Calling:

quiver3(ax, ...)

plots the vectors in the Axis object ax instead of the current axis.

@return: A VelocityVectors object.

Examples:

Draw the “radius vector field” v = (x,y,z): >>> x = y = linspace(-3,3,4) >>> xv, yv, zv = meshgrid(x, y, sparse=False) >>> yv, vv, wv = xv, yv, zv >>> quiver3(xv, yv, zv, uv, uv, wv, ‘filled’, ‘r’, ... axis=[-7,7,-7,7,-7,7])

Draw the path of a projectile as a function of time: FIXME: This example is taken from ... >>> vz = 10 # Velocity >>> a = -32 # Acceleration >>> t = linspace(0,1,11) >>> z = vz*t + 1./2*a*t**2 >>> vx = 2 >>> x = vx*t >>> vy = 3 >>> y = vy*t >>> u = gradient(x) >>> v = gradient(y) >>> w = gradient(z) >>> scale = 0 >>> quiver3(x,y,z,u,v,w,0,view=[70,18],grid=’on’, ... axis=[0,3.5,0,3,-10,2])

savefig(filename='figspickle.txt')[source]

Save all current figures to a file (with the given filename). The file has standard Python pickle format (dict of Figure instances). The figures can later be reloaded by the openfig method.

semilogx(*args, **kwargs)[source]

Draw a semilog plot with logarithmic scaling on x-axis.

Calling:

semilogx(...)

is the same as calling plot(...) with the exception that a logarithmic (base 10) scale is used for the x-axis.

semilogy(*args, **kwargs)[source]

Draw a semilog plot with logarithmic scaling on y-axis.

Calling:

semilogy(...)

is the same as calling plot(...) with the exception that a logarithmic (base 10) scale is used for the y-axis.

setp(*args, **kwargs)[source]

Set object properties or attributes in this backend instance.

Calling:

setp([obj,] prop1=value1, prop2=value2, ...)

will set the attributes as given in this backend instance. If the optional positional argument obj is a given object with a set method (like Figure, Axis, and PlotProperties objects), the (relevant) properties and values are also set in this object. This also works on a list with objects.

shading(*args)[source]

Control the color shading of surfaces.

Calling:

shading(mode)

changes the shading mode in the current axis to the one specified by by mode. Valid modes are ‘flat’, ‘interp’ (interpolated or Gouraud) and ‘faceted’ (default).

Calling:

shading(ax, ...)

uses the Axis object ax instead of the current axis.

show()[source]

Redraw the current figure.

slice_(*args, **kwargs)[source]

Draw volumetric slice plot.

Calling:

slice_(X,Y,Z,V,Sx,Sy,Sz)

draws orthogonal slice planes through the volumetric data set V defined on the grid with components X, Y, and Z. The grid components must either have the same shape as V or fulfill the requirement len(X)==n, len(Y)==m, and len(Z)==p, where m,n,p=shape(V). The Sx, Sy, and Sz arrays defines the slice planes in the x, y, and z direction, respectively.

Calling:

slice_(V,Sx,Sy,Sz)

is the same as calling slice_(range(n),range(m),range(p),V,Sx,Sy,Sz), where m,n,p = shape(V).

Calling:

slice_(X,Y,Z,V,XI,YI,ZI)

draws slices through the volumetric data set V along the surface defined by the arrays XI,YI,ZI.

Calling:

slice_(V,XI,YI,ZI)

is the same as calling slice_(range(n),range(m),range(p)),V,XI,YI,ZI), where m,n,p = shape(V).

Calling:

slice_(..., method)

sets which interpolation method to be used, where method can be either ‘linear’ (default), ‘cubic’, or ‘nearest’.

Calling:

slice(ax, ...)

plots into the Axis object ax instead of the current axis.

@return: A Volume object.

Examples:

Visualize the function x*exp(-x**2-y**2-z**2) over the range -2 > x,y,z < 2: >>> xx, yy, zz = meshgrid(linspace(-2,2,21), linspace(-2,2,17), ... linspace(-2,2,25)) >>> vv = x*exp(-xx**2-yy**2-zz**2) >>> slice_(xx, yy, zz, vv, [-1.2,.8,2], 2, [-2,-.2])

spring(m=None)[source]

Shades of magenta and yellow color map.

stem(*args, **kwargs)[source]

Draw a stem plot.

streamline(*args, **kwargs)[source]

Draw streamlines from 2D or 3D vector data.

Calling:

streamline(X,Y,Z,U,V,W,startx,starty,startz)

will draw streamlines from the 3D vector field with components U,V,W defined on the grid given by X,Y,Z. The arrays U,V,W should all have the same shape and the grid components X,Y,Z must either have the same shape as U or fulfill the requirement len(X)==n, len(Y)==m, and len(Z)==p, where m,n,p=shape(U). The starting positions for the streamlines are defined in the arrays startx, starty, and startz.

Calling:

streamline(U,V,W,startx,starty,startz)

is the same as above, except that it is assumed that X,Y,Z = meshgrid(range(n),range(m),range(p)), where m,n,p=shape(U).

Calling:

streamline(X,Y,U,V,startx,starty)

will draw streamlines from the 2D vector field with components U,V defined on the grid given by X,Y. The arrays U,V should have the same shape and the grid componetns X,Y mist either have the same shape as U or fulfill the requirement len(X)==n and len(Y)==m, where m,n=shape(u). The starting positions for the streamlines are defined in the arrays startx and starty.

Calling:

streamline(U,V,startx,starty)

is the same as above, except that it is assumed that X,Y = meshgrid(range(n),range(m)), where m,n=shape(U).

Calling:

streamline(..., stepsize)

uses the given step size instead of the default step size of 0.1.

Calling:

streamline(ax, ...)

uses the Axis object ax instead of the current axis.

The streamline command returns a Streams object.

Examples:

FIXME: Add streamline example.

streamribbon(*args, **kwargs)[source]

Draw stream ribbons from 3D vector data.

Calling:

streamribbon(...)

is the same as calling streamlines(...), except that only 3D vector fields are supported by the streamribbon command. The optional positional argument stepsize is not supported either.

Calling:

streamribbon(..., width)

specifies the width of the ribbons.

Examples:

FIXME: Add streamribbon example.

streamslice(*args, **kwargs)[source]

Draw streamlines in axis aligned slice planes.

Calling:

streamslice(X,Y,Z,U,V,W,startx,starty,startz)

will draw streamlines (with direction arrows) from the 3D vector field with components U, V, and W in planes aligned with the coordinate axes at the points given in the arrays startx, starty, and startz. The arrays U, V, and W must all have the same shape and the grid coordinates given in the arrays X, Y, and Z must either have the same shape as U or fulfill the requirement len(X)==n, len(Y)==m, and len(Z)==p, where m,n,p=shape(U).

Calling:

streamslice(U,V,W,startx,starty,startz)

is the same as above, except that it is assumed that X,Y,Z = meshgrid(range(n),range(m),range(p)), where m,n,p=shape(U).

Calling:

streamslice(X,Y,U,V)

will draw streamlines from the 2D vector field with components U and V. The vector components must have equal shape and the arrays X and Y should either have the same shape as U or fulfill the requirement len(X)==n and len(Y)==m, where m,n=shape(U).

Calling:

streamslice(U,V)

is the same as above, except that it is assumed that X,Y = meshgrid(range(n),range(m)), where m,n=shape(U).

Calling:

streamslice(..., 'arrows')

will display direction arrows (default).

Calling:

streamslice(..., 'noarrows')

will not display direction arrows.

Calling:

streamslice(ax, ...)

uses the Axis object ax instead of the current axis.

@return: A ??? object.

Examples:

>>> import scipy
>>> wind = scipy.io.loadmat('wind.mat')
>>> x = wind['x']
>>> y = wind['y']
>>> z = wind['z']
>>> u = wind['u']
>>> v = wind['v']
>>> w = wind['w']
>>> streamslice(x,y,z,u,v,w,[],[],[4],daspect=[1,1,1])
streamtube(*args, **kwargs)[source]

Draw stream tubes from 3D vector data.

Calling:

streamtube(...)

is the same as calling streamlines(...), except that only 3D vector fields are supported by the streamtube command. The optional positional argument stepsize is not supported either.

Calling:

streamtube(..., [scale, n])

will scale the width of the tubes according to scale (default is 1), while the variable n sets the number of points along the circumference of the tube (default is 20).

Examples:

FIXME: Add streamtube example.

subplot(*args, **kwargs)[source]

Create axes in tiled positions.

Calling:

subplot(m,n,p)

splits the Figure window into m rows and n columns of small axes. The p-th axis is then selected for the current plot and the Axis object is returned.

Calling:

subplot(mnp)

is the same as calling subplot(m,n,p) as long as m<=n<=p<10.

Example:

>>> x = linspace(-5,5,101)
>>> subplot(2,1,1)
>>> plot(x,x-cos(x**2))
>>> x = logspace(-1,2)
>>> subplot(2,1,2)
>>> loglog(x,exp(x),'b-s')
summer(m=None)[source]

Shades of green and yellow color map.

surf(*args, **kwargs)[source]

Draw a 3D solid surface.

Calling:

surf(...)

is the same as calling mesh(...), except that a solid colored surface is drawn instead of a wireframe mesh.

Examples:

>>> x = linspace(-2, 2, 21)
>>> xx, yy = meshgrid(x)
>>> zz = xx**2 + yy**2
>>> surf(xx, yy, zz)
surfc(*args, **kwargs)[source]

Draw a solid surface with contours beneath.

Calling:

surfc(...)

is the same as calling surf(...) only that a contour plot is drawn beneath the surface.

surfl(*args, **kwargs)[source]

3D shaded surface with lighting.

title(*args)[source]

Add title to the current plot.

Calling:

title(s)

adds the text given in s at the top of the current axis.

Calling:

title(ax, ...)

adds a title to the Axis object ax instead of the current axis.

vga(m=None)[source]

Windows colormap for 16 colors.

view(*args)[source]

Specify viewpoint.

Calling:

view(azimuth, elevation)

sets the viewpoint according to azimuth (horizontal rotation) and elevation (vertical). Both azimuth and elevation should be given in degrees.

Calling:

view([azimuth, elevation])

is the same as above.

Calling:

view(2)

changes the view to the default 2D view.

Calling:

view(3)

changes the view to the default 3D view.

Calling:

view(ax, ...)

uses the Axis object ax instead of the current axis.

Examples:

>>> surf(peaks())
>>> view(2)      # the default 2D view
>>> view(40,65)  # azimuth=40 and elevation=65
>>> view(3)      # back to the default 3D view
>>> surf(peaks(),view=[35,75])  # as a keyword argument
white(m=None)[source]

All white color map.

winter(m=None)[source]

Shades of blue and green color map.

xlabel(*args)[source]

Add a label to the x-axis.

Calling:

xlabel(s)

adds the text given in s beside the x-axis on the current axis.

Calling:

xlabel(ax, ...)

adds the label to the Axis object ax instead of the current axis.

xlim(*args)[source]

Set or get limits on x axis.

Calling:

xlim([xmin,xmax])

sets the x limits on the current axis.

Calling:

xlim(xmin,xmax)

gives the same results as above.

Calling:

xmin, xmax = xlim()

returns the x limits for the current axis.

Calling:

xlim(ax, ...)

affects the Axis object ax instead of the current axis.

ylabel(*args)[source]

Add a label to the y-axis.

Calling:

ylabel(s)

adds the text given in s beside the y-axis on the current axis.

Calling:

ylabel(ax, ...)

adds the label to the Axis object ax instead of the current axis.

ylim(*args)[source]

Set or get limits on y axis.

Calling:

ylim([ymin,ymax])

sets the y limits on the current axis.

Calling:

ylim(ymin,ymax)

gives the same results as above.

Calling:

ymin, ymax = ylim()

returns the y limits for the current axis.

Calling:

ylim(ax, ...)

affects the Axis object ax instead of the current axis.

zlabel(*args)[source]

Add a label to the z-axis.

Calling:

zlabel(s)

adds the text given in s beside the z-axis on the current axis.

Calling:

zlabel(ax, ...)

adds the zlabel to the Axis object ax instead of the current axis.

zlim(*args)[source]

Set or get limits on z axis.

Calling:

zlim([zmin,zmax])

sets the z limits on the current axis.

Calling:

zlim(zmin,zmax)

gives the same results as above.

Calling:

zmin, zmax = zlim()

returns the z limits for the current axis.

Calling:

zlim(ax, ...)

affects the Axis object ax instead of the current axis.

class scitools.easyviz.common.Camera(axis, **kwargs)[source]

Bases: object

Information about the camera in a visualization.
Keywords for the setp method:
  • ‘azimuth’,
  • ‘camdolly’,
  • ‘cammode’,
  • ‘campos’,
  • ‘camproj’,
  • ‘camroll’,
  • ‘camtarget’,
  • ‘camup’,
  • ‘camva’,
  • ‘camzoom’,
  • ‘elevation’,
  • ‘view’
Legal values for the mode keyword:
  • ‘auto’, ‘manual’
Legal values for the camproj keyword:
  • ‘orthographic’, ‘perspective’

Methods

getp(name)
reset() Reset camera to defaults.
setp(**kwargs)
__class__

alias of type

__delattr__

x.__delattr__(‘name’) <==> del x.name

__dict__ = dict_proxy({'reset': <function reset at 0x3ddfe60>, '_set_default_view': <function _set_default_view at 0x3ddfed8>, '__module__': 'scitools.easyviz.common', '_camprojs': ['orthographic', 'perspective'], '__str__': <function __str__ at 0x3ddfcf8>, '_local_prop': {'elevation': None, 'camup': (0, 1, 0), 'cammode': 'auto', 'campos': (0, 0, 0), 'camroll': None, 'camdolly': (0, 0, 0), 'camva': None, 'camproj': 'orthographic', 'camzoom': 1, 'azimuth': None, 'camtarget': (0, 0, 0), 'view': 2}, '__dict__': <attribute '__dict__' of 'Camera' objects>, 'setp': <function setp at 0x3ddfd70>, 'getp': <function getp at 0x3ddfde8>, '__weakref__': <attribute '__weakref__' of 'Camera' objects>, '__doc__': "\n Information about the camera in a visualization.\n \nKeywords for the setp method:\n - 'azimuth',\n - 'camdolly',\n - 'cammode',\n - 'campos',\n - 'camproj',\n - 'camroll',\n - 'camtarget',\n - 'camup',\n - 'camva',\n - 'camzoom',\n - 'elevation',\n - 'view'\nLegal values for the mode keyword:\n - 'auto', 'manual'\nLegal values for the camproj keyword:\n - 'orthographic', 'perspective'", '__init__': <function __init__ at 0x3ddfc80>, '_modes': ['auto', 'manual']})
__format__()

default object formatter

__getattribute__

x.__getattribute__(‘name’) <==> x.name

__hash__() <==> hash(x)
__init__(axis, **kwargs)[source]
__module__ = 'scitools.easyviz.common'
static __new__(S, ...) → a new object with type S, a subtype of T
__reduce__()

helper for pickle

__reduce_ex__()

helper for pickle

__repr__() <==> repr(x)
__setattr__

x.__setattr__(‘name’, value) <==> x.name = value

__sizeof__() → int

size of object in memory, in bytes

__str__()[source]
static __subclasshook__()

Abstract classes can override this to customize issubclass().

This is invoked early on by abc.ABCMeta.__subclasscheck__(). It should return True, False or NotImplemented. If it returns NotImplemented, the normal algorithm is used. Otherwise, it overrides the normal algorithm (and the outcome is cached).

__weakref__

list of weak references to the object (if defined)

getp(name)[source]
reset()[source]

Reset camera to defaults.

setp(**kwargs)[source]
class scitools.easyviz.common.Colorbar(**kwargs)[source]

Bases: object

Information about color bars in color plots.
Keywords for the setp method:
  • ‘cblocation’, ‘cbtitle’, ‘visible’
Legal values for color bar location:
  • ‘East’,
  • ‘EastOutside’,
  • ‘North’,
  • ‘NorthOutside’,
  • ‘South’,
  • ‘SouthOutside’,
  • ‘West’,
  • ‘WestOutside’

Methods

getp(prm_name)
reset()
setp(**kwargs)
__class__

alias of type

__delattr__

x.__delattr__(‘name’) <==> del x.name

__dict__ = dict_proxy({'reset': <function reset at 0x3ddf9b0>, '__module__': 'scitools.easyviz.common', '_locations': ['North', 'South', 'East', 'West', 'NorthOutside', 'SouthOutside', 'EastOutside', 'WestOutside'], '__str__': <function __str__ at 0x3ddf848>, '_local_prop': {'cbtitle': '', 'visible': False, 'cblocation': 'EastOutside'}, '__dict__': <attribute '__dict__' of 'Colorbar' objects>, 'setp': <function setp at 0x3ddf8c0>, 'getp': <function getp at 0x3ddf938>, '__weakref__': <attribute '__weakref__' of 'Colorbar' objects>, '__doc__': "\n Information about color bars in color plots.\n \nKeywords for the setp method:\n - 'cblocation', 'cbtitle', 'visible'\nLegal values for color bar location:\n - 'East',\n - 'EastOutside',\n - 'North',\n - 'NorthOutside',\n - 'South',\n - 'SouthOutside',\n - 'West',\n - 'WestOutside'", '__init__': <function __init__ at 0x3ddf7d0>})
__format__()

default object formatter

__getattribute__

x.__getattribute__(‘name’) <==> x.name

__hash__() <==> hash(x)
__init__(**kwargs)[source]
__module__ = 'scitools.easyviz.common'
static __new__(S, ...) → a new object with type S, a subtype of T
__reduce__()

helper for pickle

__reduce_ex__()

helper for pickle

__repr__() <==> repr(x)
__setattr__

x.__setattr__(‘name’, value) <==> x.name = value

__sizeof__() → int

size of object in memory, in bytes

__str__()[source]
static __subclasshook__()

Abstract classes can override this to customize issubclass().

This is invoked early on by abc.ABCMeta.__subclasscheck__(). It should return True, False or NotImplemented. If it returns NotImplemented, the normal algorithm is used. Otherwise, it overrides the normal algorithm (and the outcome is cached).

__weakref__

list of weak references to the object (if defined)

getp(prm_name)[source]
reset()[source]
setp(**kwargs)[source]
class scitools.easyviz.common.Contours(*args, **kwargs)[source]

Bases: scitools.easyviz.common.PlotProperties

Information about contours for plot of scalar fields.
Keywords for the setp method:
  • ‘clabels’,
  • ‘clevels’,
  • ‘clocation’,
  • ‘cvector’,
  • ‘description’,
  • ‘dims’,
  • ‘edgecolor’,
  • ‘facecolor’,
  • ‘filled’,
  • ‘function’,
  • ‘indexing’,
  • ‘legend’,
  • ‘linecolor’,
  • ‘linemarker’,
  • ‘linetype’,
  • ‘linewidth’,
  • ‘material’,
  • ‘memoryorder’,
  • ‘numberofpoints’,
  • ‘pointsize’,
  • ‘xdata’,
  • ‘xlim’,
  • ‘ydata’,
  • ‘ylim’,
  • ‘zdata’,
  • ‘zlim’

Methods

dump() Dump the parameters of this object.
get_limits() Return limits on the x, y, and z axis:
getp([prm_name]) Return the value of the parameter with name prm_name.
setformat(format) Extract the right values for color, linetype, marker, etc.
setp(**kwargs)
__class__

alias of type

__delattr__

x.__delattr__(‘name’) <==> del x.name

__dict__ = dict_proxy({'__module__': 'scitools.easyviz.common', 'setp': <function setp at 0x3ddeed8>, '_set_data': <function _set_data at 0x3ddf050>, '_parseargs': <function _parseargs at 0x3ddef50>, '_local_prop': {'xdata': None, 'ydata': None, 'cvector': None, 'zdata': None, 'clocation': 'base', 'clabels': False, 'filled': False, 'clevels': 8}, '__doc__': "\n Information about contours for plot of scalar fields.\n \nKeywords for the setp method:\n - 'clabels',\n - 'clevels',\n - 'clocation',\n - 'cvector',\n - 'description',\n - 'dims',\n - 'edgecolor',\n - 'facecolor',\n - 'filled',\n - 'function',\n - 'indexing',\n - 'legend',\n - 'linecolor',\n - 'linemarker',\n - 'linetype',\n - 'linewidth',\n - 'material',\n - 'memoryorder',\n - 'numberofpoints',\n - 'pointsize',\n - 'xdata',\n - 'xlim',\n - 'ydata',\n - 'ylim',\n - 'zdata',\n - 'zlim'", '__init__': <function __init__ at 0x3ddee60>})
__format__()

default object formatter

__getattribute__

x.__getattribute__(‘name’) <==> x.name

__hash__() <==> hash(x)
__init__(*args, **kwargs)[source]
__module__ = 'scitools.easyviz.common'
static __new__(S, ...) → a new object with type S, a subtype of T
__reduce__()

helper for pickle

__reduce_ex__()

helper for pickle

__repr__() <==> repr(x)
__setattr__

x.__setattr__(‘name’, value) <==> x.name = value

__sizeof__() → int

size of object in memory, in bytes

__str__()
static __subclasshook__()

Abstract classes can override this to customize issubclass().

This is invoked early on by abc.ABCMeta.__subclasscheck__(). It should return True, False or NotImplemented. If it returns NotImplemented, the normal algorithm is used. Otherwise, it overrides the normal algorithm (and the outcome is cached).

__weakref__

list of weak references to the object (if defined)

dump()

Dump the parameters of this object.

get_limits()

Return limits on the x, y, and z axis: xmin, xmax, ymin, ymax, zmin, zmax.

getp(prm_name=None)

Return the value of the parameter with name prm_name. If the name is None, the dictionary with all parameters is returned.

setformat(format)

Extract the right values for color, linetype, marker, etc. given a Matlab-like format string for a curve (e.g., ‘r-‘). The extracted values are stored in self._prop (with keys like ‘linecolor’, ‘linetype’, etc.).

Erroneous chars will be ignored. When there are multiple format characters for a property, the last one will count.

setp(**kwargs)[source]
class scitools.easyviz.common.Figure(**kwargs)[source]

Bases: object

Hold figure attributtes like axes, size, .... Keywords for the setp method:

  • ‘axes’, ‘axshape’, ‘curax’, ‘number’, ‘size’

Methods

dump() Dump the contents of the figure (all axes).
gca() Return current axis.
getp(prm_name)
reset() Reset figure attributes and backend to defaults.
setp(**kwargs)
__class__

alias of type

__delattr__

x.__delattr__(‘name’) <==> del x.name

__dict__ = dict_proxy({'gca': <function gca at 0x3e2f8c0>, 'reset': <function reset at 0x3e2f938>, '__module__': 'scitools.easyviz.common', 'dump': <function dump at 0x3e2f848>, '__weakref__': <attribute '__weakref__' of 'Figure' objects>, '__str__': <function __str__ at 0x3e2f758>, '_local_prop': {'axshape': (1, 1), 'axes': None, 'curax': 1, 'number': 1, 'size': [None, None]}, '__dict__': <attribute '__dict__' of 'Figure' objects>, 'setp': <function setp at 0x3e2f9b0>, 'getp': <function getp at 0x3e2fa28>, '_set_current_axis_old': <function _set_current_axis_old at 0x3e2faa0>, '_set_current_axis': <function _set_current_axis at 0x3e2fb18>, '__doc__': "Hold figure attributtes like axes, size, ....\nKeywords for the setp method:\n - 'axes', 'axshape', 'curax', 'number', 'size'", '__init__': <function __init__ at 0x3e2f7d0>})
__format__()

default object formatter

__getattribute__

x.__getattribute__(‘name’) <==> x.name

__hash__() <==> hash(x)
__init__(**kwargs)[source]
__module__ = 'scitools.easyviz.common'
static __new__(S, ...) → a new object with type S, a subtype of T
__reduce__()

helper for pickle

__reduce_ex__()

helper for pickle

__repr__() <==> repr(x)
__setattr__

x.__setattr__(‘name’, value) <==> x.name = value

__sizeof__() → int

size of object in memory, in bytes

__str__()[source]
static __subclasshook__()

Abstract classes can override this to customize issubclass().

This is invoked early on by abc.ABCMeta.__subclasscheck__(). It should return True, False or NotImplemented. If it returns NotImplemented, the normal algorithm is used. Otherwise, it overrides the normal algorithm (and the outcome is cached).

__weakref__

list of weak references to the object (if defined)

dump()[source]

Dump the contents of the figure (all axes).

gca()[source]

Return current axis.

getp(prm_name)[source]
reset()[source]

Reset figure attributes and backend to defaults.

setp(**kwargs)[source]
class scitools.easyviz.common.Light(**kwargs)[source]

Bases: object

Information about light in a visualization.
Keywords for the setp method:
  • ‘intensity’, ‘lightcolor’, ‘lightpos’, ‘lighttarget’, ‘visible’

Methods

getp(name)
reset()
setp(**kwargs)
__class__

alias of type

__delattr__

x.__delattr__(‘name’) <==> del x.name

__dict__ = dict_proxy({'reset': <function reset at 0x3ddfc08>, '__module__': 'scitools.easyviz.common', '__str__': <function __str__ at 0x3ddfaa0>, '_local_prop': {'visible': True, 'lightpos': (1, 0, 1), 'lightcolor': (1, 1, 1), 'lighttarget': (0, 0, 0), 'intensity': 1}, '__dict__': <attribute '__dict__' of 'Light' objects>, 'setp': <function setp at 0x3ddfb18>, 'getp': <function getp at 0x3ddfb90>, '__weakref__': <attribute '__weakref__' of 'Light' objects>, '__doc__': "\n Information about light in a visualization.\n \nKeywords for the setp method:\n - 'intensity', 'lightcolor', 'lightpos', 'lighttarget', 'visible'", '__init__': <function __init__ at 0x3ddfa28>})
__format__()

default object formatter

__getattribute__

x.__getattribute__(‘name’) <==> x.name

__hash__() <==> hash(x)
__init__(**kwargs)[source]
__module__ = 'scitools.easyviz.common'
static __new__(S, ...) → a new object with type S, a subtype of T
__reduce__()

helper for pickle

__reduce_ex__()

helper for pickle

__repr__() <==> repr(x)
__setattr__

x.__setattr__(‘name’, value) <==> x.name = value

__sizeof__() → int

size of object in memory, in bytes

__str__()[source]
static __subclasshook__()

Abstract classes can override this to customize issubclass().

This is invoked early on by abc.ABCMeta.__subclasscheck__(). It should return True, False or NotImplemented. If it returns NotImplemented, the normal algorithm is used. Otherwise, it overrides the normal algorithm (and the outcome is cached).

__weakref__

list of weak references to the object (if defined)

getp(name)[source]
reset()[source]
setp(**kwargs)[source]
class scitools.easyviz.common.Line(*args, **kwargs)[source]

Bases: scitools.easyviz.common.PlotProperties

Storage of information about lines in curve plots.
Keywords for the setp method:
  • ‘description’,
  • ‘dims’,
  • ‘edgecolor’,
  • ‘facecolor’,
  • ‘function’,
  • ‘indexing’,
  • ‘legend’,
  • ‘linecolor’,
  • ‘linemarker’,
  • ‘linetype’,
  • ‘linewidth’,
  • ‘material’,
  • ‘memoryorder’,
  • ‘numberofpoints’,
  • ‘pointsize’,
  • ‘xdata’,
  • ‘xlim’,
  • ‘ydata’,
  • ‘ylim’,
  • ‘zdata’,
  • ‘zlim’

Methods

dump() Dump the parameters of this object.
get_limits() Return limits on the x, y, and z axis:
getp([prm_name]) Return the value of the parameter with name prm_name.
setformat(format) Extract the right values for color, linetype, marker, etc.
setp(**kwargs) Set line properties.
__class__

alias of type

__delattr__

x.__delattr__(‘name’) <==> del x.name

__dict__ = dict_proxy({'__module__': 'scitools.easyviz.common', 'setp': <function setp at 0x3dde9b0>, '_set_data': <function _set_data at 0x3ddea28>, '_local_prop': {'ydata': None, 'xdata': None, 'zdata': None}, '__doc__': "\n Storage of information about lines in curve plots.\n \nKeywords for the setp method:\n - 'description',\n - 'dims',\n - 'edgecolor',\n - 'facecolor',\n - 'function',\n - 'indexing',\n - 'legend',\n - 'linecolor',\n - 'linemarker',\n - 'linetype',\n - 'linewidth',\n - 'material',\n - 'memoryorder',\n - 'numberofpoints',\n - 'pointsize',\n - 'xdata',\n - 'xlim',\n - 'ydata',\n - 'ylim',\n - 'zdata',\n - 'zlim'", '__init__': <function __init__ at 0x3dde938>})
__format__()

default object formatter

__getattribute__

x.__getattribute__(‘name’) <==> x.name

__hash__() <==> hash(x)
__init__(*args, **kwargs)[source]
__module__ = 'scitools.easyviz.common'
static __new__(S, ...) → a new object with type S, a subtype of T
__reduce__()

helper for pickle

__reduce_ex__()

helper for pickle

__repr__() <==> repr(x)
__setattr__

x.__setattr__(‘name’, value) <==> x.name = value

__sizeof__() → int

size of object in memory, in bytes

__str__()
static __subclasshook__()

Abstract classes can override this to customize issubclass().

This is invoked early on by abc.ABCMeta.__subclasscheck__(). It should return True, False or NotImplemented. If it returns NotImplemented, the normal algorithm is used. Otherwise, it overrides the normal algorithm (and the outcome is cached).

__weakref__

list of weak references to the object (if defined)

dump()

Dump the parameters of this object.

get_limits()

Return limits on the x, y, and z axis: xmin, xmax, ymin, ymax, zmin, zmax.

getp(prm_name=None)

Return the value of the parameter with name prm_name. If the name is None, the dictionary with all parameters is returned.

setformat(format)

Extract the right values for color, linetype, marker, etc. given a Matlab-like format string for a curve (e.g., ‘r-‘). The extracted values are stored in self._prop (with keys like ‘linecolor’, ‘linetype’, etc.).

Erroneous chars will be ignored. When there are multiple format characters for a property, the last one will count.

setp(**kwargs)[source]

Set line properties. Legal keyword arguments: x, y, format. The x and y arguments hold the x and y points of a curve. The format string is just passed on to setformat, which parses the contents and sets the format information.

class scitools.easyviz.common.MaterialProperties(**kwargs)[source]

Bases: object

Storage of various properties for a material on a PlotProperties object.
Keywords for the setp method:
  • ‘ambient’, ‘diffuse’, ‘opacity’, ‘specular’, ‘specularpower’

Methods

getp(name)
setp(**kwargs)
__class__

alias of type

__delattr__

x.__delattr__(‘name’) <==> del x.name

__dict__ = dict_proxy({'__dict__': <attribute '__dict__' of 'MaterialProperties' objects>, '__module__': 'scitools.easyviz.common', 'setp': <function setp at 0x3dde488>, 'getp': <function getp at 0x3dde500>, '__str__': <function __str__ at 0x3dde410>, '_local_prop': {'opacity': None, 'specularpower': None, 'specular': None, 'diffuse': None, 'ambient': None}, '__weakref__': <attribute '__weakref__' of 'MaterialProperties' objects>, '__doc__': "\n Storage of various properties for a material on a PlotProperties object.\n \nKeywords for the setp method:\n - 'ambient', 'diffuse', 'opacity', 'specular', 'specularpower'", '__init__': <function __init__ at 0x3dde398>})
__format__()

default object formatter

__getattribute__

x.__getattribute__(‘name’) <==> x.name

__hash__() <==> hash(x)
__init__(**kwargs)[source]
__module__ = 'scitools.easyviz.common'
static __new__(S, ...) → a new object with type S, a subtype of T
__reduce__()

helper for pickle

__reduce_ex__()

helper for pickle

__repr__() <==> repr(x)
__setattr__

x.__setattr__(‘name’, value) <==> x.name = value

__sizeof__() → int

size of object in memory, in bytes

__str__()[source]
static __subclasshook__()

Abstract classes can override this to customize issubclass().

This is invoked early on by abc.ABCMeta.__subclasscheck__(). It should return True, False or NotImplemented. If it returns NotImplemented, the normal algorithm is used. Otherwise, it overrides the normal algorithm (and the outcome is cached).

__weakref__

list of weak references to the object (if defined)

getp(name)[source]
setp(**kwargs)[source]
class scitools.easyviz.common.PlotProperties(**kwargs)[source]

Bases: object

Storage of various properties needed for plotting, such as line types, surface features, contour values, etc. Different subclasses (Line, Surface, Contours) are specialized for different kinds of plots.

All properties are stored in the dictionary self._prop.

Valid symbols::
  • Colors: [‘b’, ‘g’, ‘r’, ‘m’, ‘c’, ‘y’, ‘k’, ‘w’]
  • Markers: [‘o’, ‘+’, ‘x’, ‘*’, ‘s’, ‘d’, ‘v’, ‘^’, ‘<’, ‘>’, ‘p’, ‘h’, ‘.’]
  • Linestyles: [‘:’, ‘-.’, ‘–’, ‘-‘]
  • Sizes: [‘1’, ‘2’, ‘3’, ‘4’, ‘5’, ‘6’, ‘7’, ‘8’, ‘9’]
  • Styles:
‘*’: ‘star’,
‘+’: ‘plus’, ‘-‘: ‘solid’, ‘–’: ‘dashed’, ‘-.’: ‘dashdot’, ‘.’: ‘point’, ‘:’: ‘dotted’, ‘<’: ‘triangle (left)’, ‘>’: ‘triangle (right)’, ‘^’: ‘triangle (up)’, ‘b’: ‘blue’, ‘c’: ‘cyan’, ‘d’: ‘diamond’, ‘g’: ‘green’, ‘h’: ‘hexagram’, ‘k’: ‘black’, ‘m’: ‘magenta’, ‘o’: ‘circle’, ‘p’: ‘pentagram’, ‘r’: ‘red’, ‘s’: ‘square’, ‘v’: ‘triangle (down)’, ‘w’: ‘white’, ‘x’: ‘x-mark’, ‘y’: ‘yellow’
Keywords for the setp method:
  • ‘description’,
  • ‘dims’,
  • ‘edgecolor’,
  • ‘facecolor’,
  • ‘function’,
  • ‘indexing’,
  • ‘legend’,
  • ‘linecolor’,
  • ‘linemarker’,
  • ‘linetype’,
  • ‘linewidth’,
  • ‘material’,
  • ‘memoryorder’,
  • ‘numberofpoints’,
  • ‘pointsize’,
  • ‘xlim’,
  • ‘ylim’,
  • ‘zlim’

Methods

dump() Dump the parameters of this object.
get_limits() Return limits on the x, y, and z axis:
getp([prm_name]) Return the value of the parameter with name prm_name.
setformat(format) Extract the right values for color, linetype, marker, etc.
setp(**kwargs) Set plot properties.
__class__

alias of type

__delattr__

x.__delattr__(‘name’) <==> del x.name

__dict__ = dict_proxy({'__module__': 'scitools.easyviz.common', 'dump': <function dump at 0x3dde668>, '_linestyles': [':', '-.', '--', '-'], '__str__': <function __str__ at 0x3dde5f0>, '_set_lim': <function _set_lim at 0x3dde8c0>, 'setformat': <function setformat at 0x3dde7d0>, '__dict__': <attribute '__dict__' of 'PlotProperties' objects>, '__weakref__': <attribute '__weakref__' of 'PlotProperties' objects>, '__init__': <function __init__ at 0x3dde578>, '_sizes': ['1', '2', '3', '4', '5', '6', '7', '8', '9'], '_colors': ['b', 'g', 'r', 'm', 'c', 'y', 'k', 'w'], '_styledoc': {'+': 'plus', '*': 'star', '-': 'solid', '.': 'point', ':': 'dotted', '<': 'triangle (left)', '>': 'triangle (right)', '^': 'triangle (up)', 'c': 'cyan', 'b': 'blue', 'd': 'diamond', 'g': 'green', '--': 'dashed', 'h': 'hexagram', 'k': 'black', '-.': 'dashdot', 'm': 'magenta', 'o': 'circle', 'p': 'pentagram', 's': 'square', 'r': 'red', 'w': 'white', 'v': 'triangle (down)', 'y': 'yellow', 'x': 'x-mark'}, '_local_prop': {'function': '', 'edgecolor': '', 'zlim': (0, 0), 'description': '', 'xlim': (0, 0), 'indexing': 'ij', 'material': None, 'memoryorder': 'yxz', 'ylim': (0, 0), 'linetype': '', 'dims': (0, 0, 0), 'linecolor': '', 'numberofpoints': 0, 'pointsize': 1.0, 'linemarker': '', 'linewidth': '', 'legend': '', 'facecolor': ''}, 'get_limits': <function get_limits at 0x3dde848>, '_markers': ['o', '+', 'x', '*', 's', 'd', 'v', '^', '<', '>', 'p', 'h', '.'], 'getp': <function getp at 0x3dde758>, 'setp': <function setp at 0x3dde6e0>, '__doc__': "\n Storage of various properties needed for plotting, such as line types,\n surface features, contour values, etc.\n Different subclasses (Line, Surface, Contours) are specialized\n for different kinds of plots.\n\n All properties are stored in the dictionary self._prop.\n\n Valid symbols::\n - Colors: ['b', 'g', 'r', 'm', 'c', 'y', 'k', 'w']\n - Markers: ['o', '+', 'x', '*', 's', 'd', 'v', '^', '<', '>', 'p', 'h', '.']\n - Linestyles: [':', '-.', '--', '-']\n - Sizes: ['1', '2', '3', '4', '5', '6', '7', '8', '9']\n - Styles:\n'*': 'star',\n '+': 'plus',\n '-': 'solid',\n '--': 'dashed',\n '-.': 'dashdot',\n '.': 'point',\n ':': 'dotted',\n '<': 'triangle (left)',\n '>': 'triangle (right)',\n '^': 'triangle (up)',\n 'b': 'blue',\n 'c': 'cyan',\n 'd': 'diamond',\n 'g': 'green',\n 'h': 'hexagram',\n 'k': 'black',\n 'm': 'magenta',\n 'o': 'circle',\n 'p': 'pentagram',\n 'r': 'red',\n 's': 'square',\n 'v': 'triangle (down)',\n 'w': 'white',\n 'x': 'x-mark',\n 'y': 'yellow'\nKeywords for the setp method:\n - 'description',\n - 'dims',\n - 'edgecolor',\n - 'facecolor',\n - 'function',\n - 'indexing',\n - 'legend',\n - 'linecolor',\n - 'linemarker',\n - 'linetype',\n - 'linewidth',\n - 'material',\n - 'memoryorder',\n - 'numberofpoints',\n - 'pointsize',\n - 'xlim',\n - 'ylim',\n - 'zlim'"})
__format__()

default object formatter

__getattribute__

x.__getattribute__(‘name’) <==> x.name

__hash__() <==> hash(x)
__init__(**kwargs)[source]
__module__ = 'scitools.easyviz.common'
static __new__(S, ...) → a new object with type S, a subtype of T
__reduce__()

helper for pickle

__reduce_ex__()

helper for pickle

__repr__() <==> repr(x)
__setattr__

x.__setattr__(‘name’, value) <==> x.name = value

__sizeof__() → int

size of object in memory, in bytes

__str__()[source]
static __subclasshook__()

Abstract classes can override this to customize issubclass().

This is invoked early on by abc.ABCMeta.__subclasscheck__(). It should return True, False or NotImplemented. If it returns NotImplemented, the normal algorithm is used. Otherwise, it overrides the normal algorithm (and the outcome is cached).

__weakref__

list of weak references to the object (if defined)

dump()[source]

Dump the parameters of this object.

get_limits()[source]

Return limits on the x, y, and z axis: xmin, xmax, ymin, ymax, zmin, zmax.

getp(prm_name=None)[source]

Return the value of the parameter with name prm_name. If the name is None, the dictionary with all parameters is returned.

setformat(format)[source]

Extract the right values for color, linetype, marker, etc. given a Matlab-like format string for a curve (e.g., ‘r-‘). The extracted values are stored in self._prop (with keys like ‘linecolor’, ‘linetype’, etc.).

Erroneous chars will be ignored. When there are multiple format characters for a property, the last one will count.

setp(**kwargs)[source]

Set plot properties.

The method adds the argument value to the self._prop (if the value is legal).

class scitools.easyviz.common.Streams(*args, **kwargs)[source]

Bases: scitools.easyviz.common.PlotProperties

Information about stream lines, stream tubes, and similar vector field visualization techniques.
Keywords for the setp method:
  • ‘description’,
  • ‘dims’,
  • ‘edgecolor’,
  • ‘facecolor’,
  • ‘function’,
  • ‘indexing’,
  • ‘legend’,
  • ‘linecolor’,
  • ‘linemarker’,
  • ‘linetype’,
  • ‘linewidth’,
  • ‘material’,
  • ‘memoryorder’,
  • ‘n’,
  • ‘numberofpoints’,
  • ‘numberofstreams’,
  • ‘pointsize’,
  • ‘ribbons’,
  • ‘ribbonwidth’,
  • ‘startx’,
  • ‘starty’,
  • ‘startz’,
  • ‘stepsize’,
  • ‘tubes’,
  • ‘tubescale’,
  • ‘udata’,
  • ‘vdata’,
  • ‘wdata’,
  • ‘xdata’,
  • ‘xlim’,
  • ‘ydata’,
  • ‘ylim’,
  • ‘zdata’,
  • ‘zlim’

Methods

dump() Dump the parameters of this object.
get_limits() Return limits on the x, y, and z axis:
getp([prm_name]) Return the value of the parameter with name prm_name.
setformat(format) Extract the right values for color, linetype, marker, etc.
setp(**kwargs)
__class__

alias of type

__delattr__

x.__delattr__(‘name’) <==> del x.name

__dict__ = dict_proxy({'__module__': 'scitools.easyviz.common', 'setp': <function setp at 0x3ddf398>, '_set_data': <function _set_data at 0x3ddf488>, '_parseargs': <function _parseargs at 0x3ddf410>, '_local_prop': {'numberofstreams': 0, 'startz': None, 'startx': None, 'vdata': None, 'udata': None, 'ribbons': False, 'n': 20, 'stepsize': 0.1, 'wdata': None, 'starty': None, 'ydata': None, 'xdata': None, 'ribbonwidth': 0.5, 'tubescale': 1.0, 'tubes': False, 'zdata': None}, '__doc__': "\n Information about stream lines, stream tubes, and similar\n vector field visualization techniques.\n \nKeywords for the setp method:\n - 'description',\n - 'dims',\n - 'edgecolor',\n - 'facecolor',\n - 'function',\n - 'indexing',\n - 'legend',\n - 'linecolor',\n - 'linemarker',\n - 'linetype',\n - 'linewidth',\n - 'material',\n - 'memoryorder',\n - 'n',\n - 'numberofpoints',\n - 'numberofstreams',\n - 'pointsize',\n - 'ribbons',\n - 'ribbonwidth',\n - 'startx',\n - 'starty',\n - 'startz',\n - 'stepsize',\n - 'tubes',\n - 'tubescale',\n - 'udata',\n - 'vdata',\n - 'wdata',\n - 'xdata',\n - 'xlim',\n - 'ydata',\n - 'ylim',\n - 'zdata',\n - 'zlim'", '__init__': <function __init__ at 0x3ddf320>})
__format__()

default object formatter

__getattribute__

x.__getattribute__(‘name’) <==> x.name

__hash__() <==> hash(x)
__init__(*args, **kwargs)[source]
__module__ = 'scitools.easyviz.common'
static __new__(S, ...) → a new object with type S, a subtype of T
__reduce__()

helper for pickle

__reduce_ex__()

helper for pickle

__repr__() <==> repr(x)
__setattr__

x.__setattr__(‘name’, value) <==> x.name = value

__sizeof__() → int

size of object in memory, in bytes

__str__()
static __subclasshook__()

Abstract classes can override this to customize issubclass().

This is invoked early on by abc.ABCMeta.__subclasscheck__(). It should return True, False or NotImplemented. If it returns NotImplemented, the normal algorithm is used. Otherwise, it overrides the normal algorithm (and the outcome is cached).

__weakref__

list of weak references to the object (if defined)

dump()

Dump the parameters of this object.

get_limits()

Return limits on the x, y, and z axis: xmin, xmax, ymin, ymax, zmin, zmax.

getp(prm_name=None)

Return the value of the parameter with name prm_name. If the name is None, the dictionary with all parameters is returned.

setformat(format)

Extract the right values for color, linetype, marker, etc. given a Matlab-like format string for a curve (e.g., ‘r-‘). The extracted values are stored in self._prop (with keys like ‘linecolor’, ‘linetype’, etc.).

Erroneous chars will be ignored. When there are multiple format characters for a property, the last one will count.

setp(**kwargs)[source]
class scitools.easyviz.common.Surface(*args, **kwargs)[source]

Bases: scitools.easyviz.common.PlotProperties

Properties of surfaces in scalar field plots.
Keywords for the setp method:
  • ‘cdata’,
  • ‘contours’,
  • ‘description’,
  • ‘dims’,
  • ‘edgecolor’,
  • ‘facecolor’,
  • ‘function’,
  • ‘indexing’,
  • ‘legend’,
  • ‘linecolor’,
  • ‘linemarker’,
  • ‘linetype’,
  • ‘linewidth’,
  • ‘material’,
  • ‘memoryorder’,
  • ‘numberofpoints’,
  • ‘pointsize’,
  • ‘wireframe’,
  • ‘xdata’,
  • ‘xlim’,
  • ‘ydata’,
  • ‘ylim’,
  • ‘zdata’,
  • ‘zlim’

Methods

dump() Dump the parameters of this object.
get_limits() Return limits on the x, y, and z axis:
getp([prm_name]) Return the value of the parameter with name prm_name.
setformat(format) Extract the right values for color, linetype, marker, etc.
setp(**kwargs)
__class__

alias of type

__delattr__

x.__delattr__(‘name’) <==> del x.name

__dict__ = dict_proxy({'__module__': 'scitools.easyviz.common', 'setp': <function setp at 0x3ddecf8>, '_set_data': <function _set_data at 0x3ddede8>, '_parseargs': <function _parseargs at 0x3dded70>, '_local_prop': {'wireframe': True, 'xdata': None, 'ydata': None, 'contours': None, 'cdata': None, 'zdata': None}, '__doc__': "\n Properties of surfaces in scalar field plots.\n \nKeywords for the setp method:\n - 'cdata',\n - 'contours',\n - 'description',\n - 'dims',\n - 'edgecolor',\n - 'facecolor',\n - 'function',\n - 'indexing',\n - 'legend',\n - 'linecolor',\n - 'linemarker',\n - 'linetype',\n - 'linewidth',\n - 'material',\n - 'memoryorder',\n - 'numberofpoints',\n - 'pointsize',\n - 'wireframe',\n - 'xdata',\n - 'xlim',\n - 'ydata',\n - 'ylim',\n - 'zdata',\n - 'zlim'", '__init__': <function __init__ at 0x3ddec80>})
__format__()

default object formatter

__getattribute__

x.__getattribute__(‘name’) <==> x.name

__hash__() <==> hash(x)
__init__(*args, **kwargs)[source]
__module__ = 'scitools.easyviz.common'
static __new__(S, ...) → a new object with type S, a subtype of T
__reduce__()

helper for pickle

__reduce_ex__()

helper for pickle

__repr__() <==> repr(x)
__setattr__

x.__setattr__(‘name’, value) <==> x.name = value

__sizeof__() → int

size of object in memory, in bytes

__str__()
static __subclasshook__()

Abstract classes can override this to customize issubclass().

This is invoked early on by abc.ABCMeta.__subclasscheck__(). It should return True, False or NotImplemented. If it returns NotImplemented, the normal algorithm is used. Otherwise, it overrides the normal algorithm (and the outcome is cached).

__weakref__

list of weak references to the object (if defined)

dump()

Dump the parameters of this object.

get_limits()

Return limits on the x, y, and z axis: xmin, xmax, ymin, ymax, zmin, zmax.

getp(prm_name=None)

Return the value of the parameter with name prm_name. If the name is None, the dictionary with all parameters is returned.

setformat(format)

Extract the right values for color, linetype, marker, etc. given a Matlab-like format string for a curve (e.g., ‘r-‘). The extracted values are stored in self._prop (with keys like ‘linecolor’, ‘linetype’, etc.).

Erroneous chars will be ignored. When there are multiple format characters for a property, the last one will count.

setp(**kwargs)[source]
class scitools.easyviz.common.VelocityVectors(*args, **kwargs)[source]

Bases: scitools.easyviz.common.PlotProperties

Information about velocity vectors in a vector plot.
Keywords for the setp method:
  • ‘arrowscale’,
  • ‘description’,
  • ‘dims’,
  • ‘edgecolor’,
  • ‘facecolor’,
  • ‘filledarrows’,
  • ‘function’,
  • ‘indexing’,
  • ‘legend’,
  • ‘linecolor’,
  • ‘linemarker’,
  • ‘linetype’,
  • ‘linewidth’,
  • ‘material’,
  • ‘memoryorder’,
  • ‘numberofpoints’,
  • ‘pointsize’,
  • ‘udata’,
  • ‘vdata’,
  • ‘wdata’,
  • ‘xdata’,
  • ‘xlim’,
  • ‘ydata’,
  • ‘ylim’,
  • ‘zdata’,
  • ‘zlim’

Methods

dump() Dump the parameters of this object.
get_limits() Return limits on the x, y, and z axis:
getp([prm_name]) Return the value of the parameter with name prm_name.
scale_vectors()
setformat(format) Extract the right values for color, linetype, marker, etc.
setp(**kwargs)
__class__

alias of type

__delattr__

x.__delattr__(‘name’) <==> del x.name

__dict__ = dict_proxy({'__module__': 'scitools.easyviz.common', '_set_data': <function _set_data at 0x3ddf2a8>, '_local_prop': {'wdata': None, 'vdata': None, 'ydata': None, 'arrowscale': 1.0, 'udata': None, 'zdata': None, 'filledarrows': False, 'xdata': None}, 'setp': <function setp at 0x3ddf140>, '_parseargs': <function _parseargs at 0x3ddf1b8>, 'scale_vectors': <function scale_vectors at 0x3ddf230>, '__doc__': "\n Information about velocity vectors in a vector plot.\n \nKeywords for the setp method:\n - 'arrowscale',\n - 'description',\n - 'dims',\n - 'edgecolor',\n - 'facecolor',\n - 'filledarrows',\n - 'function',\n - 'indexing',\n - 'legend',\n - 'linecolor',\n - 'linemarker',\n - 'linetype',\n - 'linewidth',\n - 'material',\n - 'memoryorder',\n - 'numberofpoints',\n - 'pointsize',\n - 'udata',\n - 'vdata',\n - 'wdata',\n - 'xdata',\n - 'xlim',\n - 'ydata',\n - 'ylim',\n - 'zdata',\n - 'zlim'", '__init__': <function __init__ at 0x3ddf0c8>})
__format__()

default object formatter

__getattribute__

x.__getattribute__(‘name’) <==> x.name

__hash__() <==> hash(x)
__init__(*args, **kwargs)[source]
__module__ = 'scitools.easyviz.common'
static __new__(S, ...) → a new object with type S, a subtype of T
__reduce__()

helper for pickle

__reduce_ex__()

helper for pickle

__repr__() <==> repr(x)
__setattr__

x.__setattr__(‘name’, value) <==> x.name = value

__sizeof__() → int

size of object in memory, in bytes

__str__()
static __subclasshook__()

Abstract classes can override this to customize issubclass().

This is invoked early on by abc.ABCMeta.__subclasscheck__(). It should return True, False or NotImplemented. If it returns NotImplemented, the normal algorithm is used. Otherwise, it overrides the normal algorithm (and the outcome is cached).

__weakref__

list of weak references to the object (if defined)

dump()

Dump the parameters of this object.

get_limits()

Return limits on the x, y, and z axis: xmin, xmax, ymin, ymax, zmin, zmax.

getp(prm_name=None)

Return the value of the parameter with name prm_name. If the name is None, the dictionary with all parameters is returned.

scale_vectors()[source]
setformat(format)

Extract the right values for color, linetype, marker, etc. given a Matlab-like format string for a curve (e.g., ‘r-‘). The extracted values are stored in self._prop (with keys like ‘linecolor’, ‘linetype’, etc.).

Erroneous chars will be ignored. When there are multiple format characters for a property, the last one will count.

setp(**kwargs)[source]
class scitools.easyviz.common.Volume(*args, **kwargs)[source]

Bases: scitools.easyviz.common.PlotProperties

Information about volume visualization techniques.
Keywords for the setp method:
  • ‘cdata’,
  • ‘clevels’,
  • ‘cvector’,
  • ‘description’,
  • ‘dims’,
  • ‘edgecolor’,
  • ‘facecolor’,
  • ‘function’,
  • ‘indexing’,
  • ‘isovalue’,
  • ‘legend’,
  • ‘linecolor’,
  • ‘linemarker’,
  • ‘linetype’,
  • ‘linewidth’,
  • ‘material’,
  • ‘memoryorder’,
  • ‘numberofpoints’,
  • ‘pointsize’,
  • ‘slices’,
  • ‘vdata’,
  • ‘xdata’,
  • ‘xlim’,
  • ‘ydata’,
  • ‘ylim’,
  • ‘zdata’,
  • ‘zlim’

Methods

dump() Dump the parameters of this object.
get_limits() Return limits on the x, y, and z axis:
getp([prm_name]) Return the value of the parameter with name prm_name.
setformat(format) Extract the right values for color, linetype, marker, etc.
setp(**kwargs)
__class__

alias of type

__delattr__

x.__delattr__(‘name’) <==> del x.name

__dict__ = dict_proxy({'__module__': 'scitools.easyviz.common', '_set_data': <function _set_data at 0x3ddf758>, '_parseargs_isosurface': <function _parseargs_isosurface at 0x3ddf6e0>, '_local_prop': {'vdata': None, 'ydata': None, 'clevels': 8, 'isovalue': None, 'slices': None, 'zdata': None, 'cdata': None, 'xdata': None, 'cvector': None}, 'setp': <function setp at 0x3ddf578>, '_parseargs_slice_': <function _parseargs_slice_ at 0x3ddf668>, '_parseargs': <function _parseargs at 0x3ddf5f0>, '__doc__': "\n Information about volume visualization techniques.\n \nKeywords for the setp method:\n - 'cdata',\n - 'clevels',\n - 'cvector',\n - 'description',\n - 'dims',\n - 'edgecolor',\n - 'facecolor',\n - 'function',\n - 'indexing',\n - 'isovalue',\n - 'legend',\n - 'linecolor',\n - 'linemarker',\n - 'linetype',\n - 'linewidth',\n - 'material',\n - 'memoryorder',\n - 'numberofpoints',\n - 'pointsize',\n - 'slices',\n - 'vdata',\n - 'xdata',\n - 'xlim',\n - 'ydata',\n - 'ylim',\n - 'zdata',\n - 'zlim'", '__init__': <function __init__ at 0x3ddf500>})
__format__()

default object formatter

__getattribute__

x.__getattribute__(‘name’) <==> x.name

__hash__() <==> hash(x)
__init__(*args, **kwargs)[source]
__module__ = 'scitools.easyviz.common'
static __new__(S, ...) → a new object with type S, a subtype of T
__reduce__()

helper for pickle

__reduce_ex__()

helper for pickle

__repr__() <==> repr(x)
__setattr__

x.__setattr__(‘name’, value) <==> x.name = value

__sizeof__() → int

size of object in memory, in bytes

__str__()
static __subclasshook__()

Abstract classes can override this to customize issubclass().

This is invoked early on by abc.ABCMeta.__subclasscheck__(). It should return True, False or NotImplemented. If it returns NotImplemented, the normal algorithm is used. Otherwise, it overrides the normal algorithm (and the outcome is cached).

__weakref__

list of weak references to the object (if defined)

dump()

Dump the parameters of this object.

get_limits()

Return limits on the x, y, and z axis: xmin, xmax, ymin, ymax, zmin, zmax.

getp(prm_name=None)

Return the value of the parameter with name prm_name. If the name is None, the dictionary with all parameters is returned.

setformat(format)

Extract the right values for color, linetype, marker, etc. given a Matlab-like format string for a curve (e.g., ‘r-‘). The extracted values are stored in self._prop (with keys like ‘linecolor’, ‘linetype’, etc.).

Erroneous chars will be ignored. When there are multiple format characters for a property, the last one will count.

setp(**kwargs)[source]
scitools.easyviz.common.debug(plt, level=10)[source]
scitools.easyviz.common.docadd(comment, *lists, **kwargs)[source]

Format a string, intended to be appended to or inserted in a doc string, containing a comment and a nicely formatted sequence of lists. Typically used for adding lists of options to a doc string, where the lists of options are available as static list data in a class.

Example on usage: # add to the class doc string: __doc__ += docadd(‘Keywords for the setp method’, _local_attrs.keys())

# add to a method (get) doc string: get.__doc__ += docadd(‘Keywords for the setp method’,

BaseClass._local_attrs.keys(), SomeSubClass._local_attrs.keys())
turn_off_plotting(namespace={'ndgrid': <function ndgrid at 0x3c56c80>, 'arrmin': <function arrmin at 0x3dd7ed8>, 'MaterialProperties': <class 'scitools.easyviz.common.MaterialProperties'>, '_check_type': <function _check_type at 0x3db15f0>, 'seq': <function seq at 0x3db1230>, 'docadd': <function docadd at 0x3dde2a8>, 'Contours': <class 'scitools.easyviz.common.Contours'>, 'PlotProperties': <class 'scitools.easyviz.common.PlotProperties'>, 'BaseClass': <class 'scitools.easyviz.common.BaseClass'>, 'rank': <function rank at 0x2d0dde8>, 'shape': <function shape at 0x2d0d578>, 'Camera': <class 'scitools.easyviz.common.Camera'>, '_update_from_config_file': <function _update_from_config_file at 0x3db1500>, '_check_xyzv': <function _check_xyzv at 0x3dd9b90>, 'operator': <module 'operator' (built-in)>, 'size': <function size at 0x2d0de60>, 'use': <function use at 0x3e32f50>, 'asarray': <function asarray at 0x2cf0938>, 'reshape': <function reshape at 0x2cfccf8>, 'turn_off_plotting': <function turn_off_plotting at 0x3dde320>, 'pprint': <module 'pprint' from '/usr/lib/python2.7/pprint.pyc'>, 'sqrt': <ufunc 'sqrt'>, '__package__': 'scitools.easyviz', 'Volume': <class 'scitools.easyviz.common.Volume'>, '_check_xyz': <function _check_xyz at 0x3dd9c08>, 'zeros': <built-in function zeros>, 'Line': <class 'scitools.easyviz.common.Line'>, 'backend': 'gnuplot', 'VelocityVectors': <class 'scitools.easyviz.common.VelocityVectors'>, 'ravel': <function ravel at 0x2d0d488>, '_check_size': <function _check_size at 0x3dd9b18>, 'iseq': <function iseq at 0x3db12a8>, '_toggle_state': <function _toggle_state at 0x3db1578>, '__builtins__': {'bytearray': <type 'bytearray'>, 'IndexError': <type 'exceptions.IndexError'>, 'all': <built-in function all>, 'help': Type help() for interactive help, or help(object) for help about object., 'vars': <built-in function vars>, 'SyntaxError': <type 'exceptions.SyntaxError'>, 'unicode': <type 'unicode'>, 'UnicodeDecodeError': <type 'exceptions.UnicodeDecodeError'>, 'memoryview': <type 'memoryview'>, 'isinstance': <built-in function isinstance>, 'copyright': Copyright (c) 2001-2012 Python Software Foundation.
All Rights Reserved.
Copyright (c) 2000 BeOpen.com.
All Rights Reserved.
Copyright (c) 1995-2001 Corporation for National Research Initiatives.
All Rights Reserved.
Copyright (c) 1991-1995 Stichting Mathematisch Centrum, Amsterdam.
All Rights Reserved., 'NameError': <type 'exceptions.NameError'>, 'BytesWarning': <type 'exceptions.BytesWarning'>, 'dict': <type 'dict'>, 'input': <built-in function input>, 'oct': <built-in function oct>, 'bin': <built-in function bin>, 'SystemExit': <type 'exceptions.SystemExit'>, 'StandardError': <type 'exceptions.StandardError'>, 'format': <built-in function format>, 'repr': <built-in function repr>, 'sorted': <built-in function sorted>, 'False': False, 'RuntimeWarning': <type 'exceptions.RuntimeWarning'>, 'list': <type 'list'>, 'iter': <built-in function iter>, 'reload': <built-in function reload>, 'Warning': <type 'exceptions.Warning'>, '__package__': None, 'round': <built-in function round>, 'dir': <built-in function dir>, 'cmp': <built-in function cmp>, 'set': <type 'set'>, 'bytes': <type 'str'>, 'reduce': <built-in function reduce>, 'intern': <built-in function intern>, 'issubclass': <built-in function issubclass>, 'Ellipsis': Ellipsis, 'EOFError': <type 'exceptions.EOFError'>, 'locals': <built-in function locals>, 'BufferError': <type 'exceptions.BufferError'>, 'slice': <type 'slice'>, 'FloatingPointError': <type 'exceptions.FloatingPointError'>, 'sum': <built-in function sum>, 'getattr': <built-in function getattr>, 'abs': <built-in function abs>, 'exit': Use exit() or Ctrl-D (i.e. EOF) to exit, 'print': <built-in function print>, 'True': True, 'FutureWarning': <type 'exceptions.FutureWarning'>, 'ImportWarning': <type 'exceptions.ImportWarning'>, 'None': None, 'hash': <built-in function hash>, 'ReferenceError': <type 'exceptions.ReferenceError'>, 'len': <built-in function len>, 'credits': Thanks to CWI, CNRI, BeOpen.com, Zope Corporation and a cast of thousands
for supporting Python development. See www.python.org for more information., 'frozenset': <type 'frozenset'>, '__name__': '__builtin__', 'ord': <built-in function ord>, 'super': <type 'super'>, 'TypeError': <type 'exceptions.TypeError'>, 'license': Type license() to see the full license text, 'KeyboardInterrupt': <type 'exceptions.KeyboardInterrupt'>, 'UserWarning': <type 'exceptions.UserWarning'>, 'filter': <built-in function filter>, 'range': <built-in function range>, 'staticmethod': <type 'staticmethod'>, 'SystemError': <type 'exceptions.SystemError'>, 'BaseException': <type 'exceptions.BaseException'>, 'pow': <built-in function pow>, 'RuntimeError': <type 'exceptions.RuntimeError'>, 'float': <type 'float'>, 'MemoryError': <type 'exceptions.MemoryError'>, 'StopIteration': <type 'exceptions.StopIteration'>, 'globals': <built-in function globals>, 'divmod': <built-in function divmod>, 'enumerate': <type 'enumerate'>, 'apply': <built-in function apply>, 'LookupError': <type 'exceptions.LookupError'>, 'open': <built-in function open>, 'quit': Use quit() or Ctrl-D (i.e. EOF) to exit, 'basestring': <type 'basestring'>, 'UnicodeError': <type 'exceptions.UnicodeError'>, 'zip': <built-in function zip>, 'hex': <built-in function hex>, 'long': <type 'long'>, 'next': <built-in function next>, 'ImportError': <type 'exceptions.ImportError'>, 'chr': <built-in function chr>, 'xrange': <type 'xrange'>, 'type': <type 'type'>, '__doc__': "Built-in functions, exceptions, and other objects.\n\nNoteworthy: None is the `nil' object; Ellipsis represents `...' in slices.", 'Exception': <type 'exceptions.Exception'>, 'tuple': <type 'tuple'>, 'UnicodeTranslateError': <type 'exceptions.UnicodeTranslateError'>, 'reversed': <type 'reversed'>, 'UnicodeEncodeError': <type 'exceptions.UnicodeEncodeError'>, 'IOError': <type 'exceptions.IOError'>, 'hasattr': <built-in function hasattr>, 'delattr': <built-in function delattr>, 'setattr': <built-in function setattr>, 'raw_input': <built-in function raw_input>, 'SyntaxWarning': <type 'exceptions.SyntaxWarning'>, 'compile': <built-in function compile>, 'ArithmeticError': <type 'exceptions.ArithmeticError'>, 'str': <type 'str'>, 'property': <type 'property'>, 'GeneratorExit': <type 'exceptions.GeneratorExit'>, 'int': <type 'int'>, '__import__': <built-in function __import__>, 'KeyError': <type 'exceptions.KeyError'>, 'coerce': <built-in function coerce>, 'PendingDeprecationWarning': <type 'exceptions.PendingDeprecationWarning'>, 'file': <type 'file'>, 'EnvironmentError': <type 'exceptions.EnvironmentError'>, 'unichr': <built-in function unichr>, 'id': <built-in function id>, 'OSError': <type 'exceptions.OSError'>, 'DeprecationWarning': <type 'exceptions.DeprecationWarning'>, 'min': <built-in function min>, 'UnicodeWarning': <type 'exceptions.UnicodeWarning'>, 'execfile': <built-in function execfile>, 'any': <built-in function any>, 'complex': <type 'complex'>, 'bool': <type 'bool'>, 'ValueError': <type 'exceptions.ValueError'>, 'NotImplemented': NotImplemented, 'map': <built-in function map>, 'buffer': <type 'buffer'>, 'max': <built-in function max>, 'object': <type 'object'>, 'TabError': <type 'exceptions.TabError'>, 'callable': <built-in function callable>, 'ZeroDivisionError': <type 'exceptions.ZeroDivisionError'>, 'eval': <built-in function eval>, '__debug__': True, 'IndentationError': <type 'exceptions.IndentationError'>, 'AssertionError': <type 'exceptions.AssertionError'>, 'classmethod': <type 'classmethod'>, 'UnboundLocalError': <type 'exceptions.UnboundLocalError'>, 'NotImplementedError': <type 'exceptions.NotImplementedError'>, 'AttributeError': <type 'exceptions.AttributeError'>, 'OverflowError': <type 'exceptions.OverflowError'>}, 'Light': <class 'scitools.easyviz.common.Light'>, '__file__': '/usr/local/lib/python2.7/dist-packages/scitools/easyviz/common.pyc', 'warn': <built-in function warn>, 'ones': <function ones at 0x2cf07d0>, 'Streams': <class 'scitools.easyviz.common.Streams'>, '__name__': 'scitools.easyviz.common', 'NumPyArray': <type 'numpy.ndarray'>, 'squeeze': <function squeeze at 0x2d0d320>, '_check_xyuv': <function _check_xyuv at 0x3dd9c80>, 'Colorbar': <class 'scitools.easyviz.common.Colorbar'>, 'Bars': <class 'scitools.easyviz.common.Bars'>, 'Figure': <class 'scitools.easyviz.common.Figure'>, 'pickle': <module 'pickle' from '/usr/lib/python2.7/pickle.pyc'>, 'Surface': <class 'scitools.easyviz.common.Surface'>, '__doc__': None, 'meshgrid': <function meshgrid at 0x3c56c08>, 'debug': <function debug at 0x3e33050>, 'Axis': <class 'scitools.easyviz.common.Axis'>, 'os': <module 'os' from '/usr/lib/python2.7/os.pyc'>, '_check_xyzuvw': <function _check_xyzuvw at 0x3dd9cf8>, 'arrmax': <function arrmax at 0x3dd7e60>})

Call turn_off_plotting(globals()) to turn off all plotting.

use(plt, namespace={'ndgrid': <function ndgrid at 0x3c56c80>, 'arrmin': <function arrmin at 0x3dd7ed8>, 'MaterialProperties': <class 'scitools.easyviz.common.MaterialProperties'>, '_check_type': <function _check_type at 0x3db15f0>, 'seq': <function seq at 0x3db1230>, 'docadd': <function docadd at 0x3dde2a8>, 'Contours': <class 'scitools.easyviz.common.Contours'>, 'PlotProperties': <class 'scitools.easyviz.common.PlotProperties'>, 'BaseClass': <class 'scitools.easyviz.common.BaseClass'>, 'rank': <function rank at 0x2d0dde8>, 'shape': <function shape at 0x2d0d578>, 'Camera': <class 'scitools.easyviz.common.Camera'>, '_update_from_config_file': <function _update_from_config_file at 0x3db1500>, '_check_xyzv': <function _check_xyzv at 0x3dd9b90>, 'operator': <module 'operator' (built-in)>, 'size': <function size at 0x2d0de60>, 'use': <function use at 0x3e32f50>, 'asarray': <function asarray at 0x2cf0938>, 'reshape': <function reshape at 0x2cfccf8>, 'turn_off_plotting': <function turn_off_plotting at 0x3dde320>, 'pprint': <module 'pprint' from '/usr/lib/python2.7/pprint.pyc'>, 'sqrt': <ufunc 'sqrt'>, '__package__': 'scitools.easyviz', 'Volume': <class 'scitools.easyviz.common.Volume'>, '_check_xyz': <function _check_xyz at 0x3dd9c08>, 'zeros': <built-in function zeros>, 'Line': <class 'scitools.easyviz.common.Line'>, 'backend': 'gnuplot', 'VelocityVectors': <class 'scitools.easyviz.common.VelocityVectors'>, 'ravel': <function ravel at 0x2d0d488>, '_check_size': <function _check_size at 0x3dd9b18>, 'iseq': <function iseq at 0x3db12a8>, '_toggle_state': <function _toggle_state at 0x3db1578>, '__builtins__': {'bytearray': <type 'bytearray'>, 'IndexError': <type 'exceptions.IndexError'>, 'all': <built-in function all>, 'help': Type help() for interactive help, or help(object) for help about object., 'vars': <built-in function vars>, 'SyntaxError': <type 'exceptions.SyntaxError'>, 'unicode': <type 'unicode'>, 'UnicodeDecodeError': <type 'exceptions.UnicodeDecodeError'>, 'memoryview': <type 'memoryview'>, 'isinstance': <built-in function isinstance>, 'copyright': Copyright (c) 2001-2012 Python Software Foundation.
All Rights Reserved.
Copyright (c) 2000 BeOpen.com.
All Rights Reserved.
Copyright (c) 1995-2001 Corporation for National Research Initiatives.
All Rights Reserved.
Copyright (c) 1991-1995 Stichting Mathematisch Centrum, Amsterdam.
All Rights Reserved., 'NameError': <type 'exceptions.NameError'>, 'BytesWarning': <type 'exceptions.BytesWarning'>, 'dict': <type 'dict'>, 'input': <built-in function input>, 'oct': <built-in function oct>, 'bin': <built-in function bin>, 'SystemExit': <type 'exceptions.SystemExit'>, 'StandardError': <type 'exceptions.StandardError'>, 'format': <built-in function format>, 'repr': <built-in function repr>, 'sorted': <built-in function sorted>, 'False': False, 'RuntimeWarning': <type 'exceptions.RuntimeWarning'>, 'list': <type 'list'>, 'iter': <built-in function iter>, 'reload': <built-in function reload>, 'Warning': <type 'exceptions.Warning'>, '__package__': None, 'round': <built-in function round>, 'dir': <built-in function dir>, 'cmp': <built-in function cmp>, 'set': <type 'set'>, 'bytes': <type 'str'>, 'reduce': <built-in function reduce>, 'intern': <built-in function intern>, 'issubclass': <built-in function issubclass>, 'Ellipsis': Ellipsis, 'EOFError': <type 'exceptions.EOFError'>, 'locals': <built-in function locals>, 'BufferError': <type 'exceptions.BufferError'>, 'slice': <type 'slice'>, 'FloatingPointError': <type 'exceptions.FloatingPointError'>, 'sum': <built-in function sum>, 'getattr': <built-in function getattr>, 'abs': <built-in function abs>, 'exit': Use exit() or Ctrl-D (i.e. EOF) to exit, 'print': <built-in function print>, 'True': True, 'FutureWarning': <type 'exceptions.FutureWarning'>, 'ImportWarning': <type 'exceptions.ImportWarning'>, 'None': None, 'hash': <built-in function hash>, 'ReferenceError': <type 'exceptions.ReferenceError'>, 'len': <built-in function len>, 'credits': Thanks to CWI, CNRI, BeOpen.com, Zope Corporation and a cast of thousands
for supporting Python development. See www.python.org for more information., 'frozenset': <type 'frozenset'>, '__name__': '__builtin__', 'ord': <built-in function ord>, 'super': <type 'super'>, 'TypeError': <type 'exceptions.TypeError'>, 'license': Type license() to see the full license text, 'KeyboardInterrupt': <type 'exceptions.KeyboardInterrupt'>, 'UserWarning': <type 'exceptions.UserWarning'>, 'filter': <built-in function filter>, 'range': <built-in function range>, 'staticmethod': <type 'staticmethod'>, 'SystemError': <type 'exceptions.SystemError'>, 'BaseException': <type 'exceptions.BaseException'>, 'pow': <built-in function pow>, 'RuntimeError': <type 'exceptions.RuntimeError'>, 'float': <type 'float'>, 'MemoryError': <type 'exceptions.MemoryError'>, 'StopIteration': <type 'exceptions.StopIteration'>, 'globals': <built-in function globals>, 'divmod': <built-in function divmod>, 'enumerate': <type 'enumerate'>, 'apply': <built-in function apply>, 'LookupError': <type 'exceptions.LookupError'>, 'open': <built-in function open>, 'quit': Use quit() or Ctrl-D (i.e. EOF) to exit, 'basestring': <type 'basestring'>, 'UnicodeError': <type 'exceptions.UnicodeError'>, 'zip': <built-in function zip>, 'hex': <built-in function hex>, 'long': <type 'long'>, 'next': <built-in function next>, 'ImportError': <type 'exceptions.ImportError'>, 'chr': <built-in function chr>, 'xrange': <type 'xrange'>, 'type': <type 'type'>, '__doc__': "Built-in functions, exceptions, and other objects.\n\nNoteworthy: None is the `nil' object; Ellipsis represents `...' in slices.", 'Exception': <type 'exceptions.Exception'>, 'tuple': <type 'tuple'>, 'UnicodeTranslateError': <type 'exceptions.UnicodeTranslateError'>, 'reversed': <type 'reversed'>, 'UnicodeEncodeError': <type 'exceptions.UnicodeEncodeError'>, 'IOError': <type 'exceptions.IOError'>, 'hasattr': <built-in function hasattr>, 'delattr': <built-in function delattr>, 'setattr': <built-in function setattr>, 'raw_input': <built-in function raw_input>, 'SyntaxWarning': <type 'exceptions.SyntaxWarning'>, 'compile': <built-in function compile>, 'ArithmeticError': <type 'exceptions.ArithmeticError'>, 'str': <type 'str'>, 'property': <type 'property'>, 'GeneratorExit': <type 'exceptions.GeneratorExit'>, 'int': <type 'int'>, '__import__': <built-in function __import__>, 'KeyError': <type 'exceptions.KeyError'>, 'coerce': <built-in function coerce>, 'PendingDeprecationWarning': <type 'exceptions.PendingDeprecationWarning'>, 'file': <type 'file'>, 'EnvironmentError': <type 'exceptions.EnvironmentError'>, 'unichr': <built-in function unichr>, 'id': <built-in function id>, 'OSError': <type 'exceptions.OSError'>, 'DeprecationWarning': <type 'exceptions.DeprecationWarning'>, 'min': <built-in function min>, 'UnicodeWarning': <type 'exceptions.UnicodeWarning'>, 'execfile': <built-in function execfile>, 'any': <built-in function any>, 'complex': <type 'complex'>, 'bool': <type 'bool'>, 'ValueError': <type 'exceptions.ValueError'>, 'NotImplemented': NotImplemented, 'map': <built-in function map>, 'buffer': <type 'buffer'>, 'max': <built-in function max>, 'object': <type 'object'>, 'TabError': <type 'exceptions.TabError'>, 'callable': <built-in function callable>, 'ZeroDivisionError': <type 'exceptions.ZeroDivisionError'>, 'eval': <built-in function eval>, '__debug__': True, 'IndentationError': <type 'exceptions.IndentationError'>, 'AssertionError': <type 'exceptions.AssertionError'>, 'classmethod': <type 'classmethod'>, 'UnboundLocalError': <type 'exceptions.UnboundLocalError'>, 'NotImplementedError': <type 'exceptions.NotImplementedError'>, 'AttributeError': <type 'exceptions.AttributeError'>, 'OverflowError': <type 'exceptions.OverflowError'>}, 'Light': <class 'scitools.easyviz.common.Light'>, '__file__': '/usr/local/lib/python2.7/dist-packages/scitools/easyviz/common.pyc', 'warn': <built-in function warn>, 'ones': <function ones at 0x2cf07d0>, 'Streams': <class 'scitools.easyviz.common.Streams'>, '__name__': 'scitools.easyviz.common', 'NumPyArray': <type 'numpy.ndarray'>, 'squeeze': <function squeeze at 0x2d0d320>, '_check_xyuv': <function _check_xyuv at 0x3dd9c80>, 'Colorbar': <class 'scitools.easyviz.common.Colorbar'>, 'Bars': <class 'scitools.easyviz.common.Bars'>, 'Figure': <class 'scitools.easyviz.common.Figure'>, 'pickle': <module 'pickle' from '/usr/lib/python2.7/pickle.pyc'>, 'Surface': <class 'scitools.easyviz.common.Surface'>, '__doc__': None, 'meshgrid': <function meshgrid at 0x3c56c08>, 'debug': <function debug at 0x3e33050>, 'Axis': <class 'scitools.easyviz.common.Axis'>, 'os': <module 'os' from '/usr/lib/python2.7/os.pyc'>, '_check_xyzuvw': <function _check_xyzuvw at 0x3dd9cf8>, 'arrmax': <function arrmax at 0x3dd7e60>}, neutralize=False)

Export the namespace of backend instance to namespace. If neutralize is True, the plt object will be replaced by a scitools.misc.DoNothing object so that no plotting command will do anything. This can be used to efficiently turn off all plotting in a program. Just call turn_off_plotting(globals()) before the first plot command in your program.

This Page