GRASS Programmer's Manual  6.5.svn(2012)-r51648
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Defines
base.BasePlotFrame Class Reference

Abstract PyPlot display frame class. More...

Public Member Functions

def __init__
def InitPlotOpts
 Initialize options for entire plot.
def InitRasterOpts
 Initialize or update raster dictionary for plotting.
def InitRasterPairs
 Initialize or update raster dictionary with raster pairs for bivariate scatterplots.
def SetGraphStyle
 Set plot and text options.
def DrawPlot
 Draw line and point plot from list plot elements.
def DrawPointLabel
 This is the fuction that defines how the pointLabels are plotted dc - DC that will be passed mDataDict - Dictionary of data that you want to use for the pointLabel.
def OnZoom
 Enable zooming and disable dragging.
def OnDrag
 Enable dragging and disable zooming.
def OnRedraw
 Redraw the plot window.
def OnErase
 Erase the plot window.
def SaveToFile
 Save plot to graphics file.
def OnMouseLeftDown
def OnMotion
 Indicate when mouse is outside the plot area.
def PlotOptionsMenu
 Popup menu for plot and text options.
def NotFunctional
 Creates a 'not functional' message dialog.
def OnPlotText
 Custom text settings for histogram plot.
def PlotText
 Set custom text values for profile title and axis labels.
def PlotOptions
 Set various profile options, including: line width, color, style; marker size, color, fill, and style; grid and legend options.
def PrintMenu
 Print options and output menu.
def OnPageSetup
def OnPrintPreview
def OnDoPrint
def OnQuit
def OnCloseWindow
 Close plot window and clean up.

Data Fields

 parent
 mapwin
 Map
 rasterList
 raster
 plottype
 linestyledict
 ptfilldict
 statusbar
 client
 plotlist
 plot
 ptitle
 xlabel
 ylabel
 colorDict
 properties
 zoom
 drag

Detailed Description

Abstract PyPlot display frame class.

Definition at line 47 of file wxplot/base.py.


Constructor & Destructor Documentation

def base.BasePlotFrame.__init__ (   self,
  parent = None,
  id = wx.ID_ANY,
  size = wx.Size(700, 400,
  style = wx.DEFAULT_FRAME_STYLE,
  rasterList = [],
  kwargs 
)

Definition at line 50 of file wxplot/base.py.


Member Function Documentation

def base.BasePlotFrame.DrawPointLabel (   self,
  dc,
  mDataDict 
)

This is the fuction that defines how the pointLabels are plotted dc - DC that will be passed mDataDict - Dictionary of data that you want to use for the pointLabel.

As an example I have decided I want a box at the curve point with some text information about the curve plotted below. Any wxDC method can be used.

Definition at line 340 of file wxplot/base.py.

def base.BasePlotFrame.InitPlotOpts (   self,
  plottype 
)

Initialize options for entire plot.

Definition at line 124 of file wxplot/base.py.

References base.BasePlotFrame.plottype.

def base.BasePlotFrame.InitRasterOpts (   self,
  rasterList,
  plottype 
)

Initialize or update raster dictionary for plotting.

Definition at line 173 of file wxplot/base.py.

References base.BasePlotFrame.colorDict, dialogs.ProfileRasterDialog.colorList, profile.ProfileFrame.colorList, and base.BasePlotFrame.raster.

Referenced by profile.ProfileFrame.OnSelectRaster().

def base.BasePlotFrame.InitRasterPairs (   self,
  rasterList,
  plottype 
)

Initialize or update raster dictionary with raster pairs for bivariate scatterplots.

Definition at line 213 of file wxplot/base.py.

References base.BasePlotFrame.colorDict, dialogs.ProfileRasterDialog.colorList, profile.ProfileFrame.colorList, base.BasePlotFrame.raster, and utils.split().

Creates a 'not functional' message dialog.

Definition at line 441 of file wxplot/base.py.

def base.BasePlotFrame.OnCloseWindow (   self,
  event 
)

Close plot window and clean up.

Definition at line 528 of file wxplot/base.py.

def base.BasePlotFrame.OnDoPrint (   self,
  event 
)

Definition at line 522 of file wxplot/base.py.

Referenced by base.BasePlotFrame.PrintMenu().

def base.BasePlotFrame.OnDrag (   self,
  event 
)

Enable dragging and disable zooming.

Definition at line 370 of file wxplot/base.py.

References base.BasePlotFrame.drag, and base.BasePlotFrame.zoom.

def base.BasePlotFrame.OnErase (   self,
  event 
)

Erase the plot window.

Definition at line 384 of file wxplot/base.py.

def base.BasePlotFrame.OnMotion (   self,
  event 
)

Indicate when mouse is outside the plot area.

Definition at line 403 of file wxplot/base.py.

def base.BasePlotFrame.OnMouseLeftDown (   self,
  event 
)

Definition at line 398 of file wxplot/base.py.

def base.BasePlotFrame.OnPageSetup (   self,
  event 
)

Definition at line 516 of file wxplot/base.py.

Referenced by base.BasePlotFrame.PrintMenu().

def base.BasePlotFrame.OnPrintPreview (   self,
  event 
)

Definition at line 519 of file wxplot/base.py.

Referenced by base.BasePlotFrame.PrintMenu().

def base.BasePlotFrame.OnQuit (   self,
  event 
)

Definition at line 525 of file wxplot/base.py.

def base.BasePlotFrame.OnRedraw (   self,
  event 
)

Redraw the plot window.

Unzoom to original size

Definition at line 378 of file wxplot/base.py.

Referenced by base.BasePlotFrame.OnPlotText().

def base.BasePlotFrame.OnZoom (   self,
  event 
)

Enable zooming and disable dragging.

Definition at line 362 of file wxplot/base.py.

References base.BasePlotFrame.drag, and base.BasePlotFrame.zoom.

def base.BasePlotFrame.PlotOptions (   self,
  event 
)

Set various profile options, including: line width, color, style; marker size, color, fill, and style; grid and legend options.

Calls OptDialog class.

Definition at line 482 of file wxplot/base.py.

References base.BasePlotFrame.plottype, and base.BasePlotFrame.SetGraphStyle().

Referenced by base.BasePlotFrame.PlotOptionsMenu().

def base.BasePlotFrame.PlotOptionsMenu (   self,
  event 
)

Popup menu for plot and text options.

Definition at line 422 of file wxplot/base.py.

References base.BasePlotFrame.PlotOptions(), and base.BasePlotFrame.PlotText().

def base.BasePlotFrame.PlotText (   self,
  event 
)

Set custom text values for profile title and axis labels.

Definition at line 470 of file wxplot/base.py.

References base.BasePlotFrame.OnPlotText(), and base.BasePlotFrame.plottype.

Referenced by base.BasePlotFrame.PlotOptionsMenu().

def base.BasePlotFrame.SaveToFile (   self,
  event 
)

Save plot to graphics file.

Definition at line 393 of file wxplot/base.py.


Field Documentation

Definition at line 85 of file wxplot/base.py.

Definition at line 61 of file wxplot/base.py.

Definition at line 55 of file wxplot/base.py.

Definition at line 54 of file wxplot/base.py.

Definition at line 96 of file wxplot/base.py.

Definition at line 67 of file wxplot/base.py.

Definition at line 78 of file wxplot/base.py.


The documentation for this class was generated from the following file: