Package esys :: Package pyvisi :: Module plot :: Class LinePlot
[show private | hide private]
[frames | no frames]

Type LinePlot

object --+        
         |        
      Item --+    
             |    
          Plot --+
                 |
                LinePlot


Line plot

This is the abstract base class of all LinePlot objects. Renderer modules must inherit and override the methods defined here.
Method Summary
  __init__(self, scene)
Initialisation of LinePlot class
  getLineStyle(self)
Gets the current linestyle of the LinePlot
  render(self)
Does LinePlot object specific (pre) rendering stuff
  setData(self, *dataList)
Sets the data to the given plot object.
  setLineStyle(self, linestyle)
Sets the linestyle of the LinePlot
    Inherited from Plot
  setLabel(self, axis, label)
Set the label of a given axis
  setTitle(self, title)
Set the plot title
  setXLabel(self, label)
Set the label of the x-axis
  setYLabel(self, label)
Set the label of the y-axis
  setZLabel(self, label)
Set the label of the z-axis
    Inherited from object
  __delattr__(...)
x.__delattr__('name') <==> del x.name
  __getattribute__(...)
x.__getattribute__('name') <==> x.name
  __hash__(x)
x.__hash__() <==> hash(x)
  __new__(T, S, ...)
T.__new__(S, ...) -> a new object with type S, a subtype of T
  __reduce__(...)
helper for pickle
  __reduce_ex__(...)
helper for pickle
  __repr__(x)
x.__repr__() <==> repr(x)
  __setattr__(...)
x.__setattr__('name', value) <==> x.name = value
  __str__(x)
x.__str__() <==> str(x)

Method Details

__init__(self, scene)
(Constructor)

Initialisation of LinePlot class
Parameters:
scene - the scene with which to associate the LinePlot
           (type=Scene object)
Overrides:
esys.pyvisi.plot.Plot.__init__

getLineStyle(self)

Gets the current linestyle of the LinePlot
Returns:
the linestyle as a string

render(self)

Does LinePlot object specific (pre) rendering stuff
Overrides:
esys.pyvisi.item.Item.render

setData(self, *dataList)

Sets the data to the given plot object.
Parameters:
dataList - list of data objects to plot
           (type=tuple)
Overrides:
esys.pyvisi.plot.Plot.setData

setLineStyle(self, linestyle)

Sets the linestyle of the LinePlot

Linestyles may be either a word in the Gnuplot style, or a symbol shortcut in the Matlab style. Some of the options do not have a Matlab equivalent but do have a Gnuplot equivalent, or vice versa.

What this method does, is take the linestyles possible as defined by PyVisi, and then does some conversion as best it can to get the relevant output from (in this case) gnuplot.

Possible linestyles are:
  1. lines ('-')
  2. points ('o')
  3. linespoints ('-o')
  4. dots ('.')
  5. dotted (':')
  6. dashes ('--')
  7. dotdashes ('-.')
Parameters:
linestyle - the style to use for the lines
           (type=string)

Generated by Epydoc 2.1 on Thu Apr 27 11:16:27 2006 http://epydoc.sf.net