GRASS Programmer's Manual
6.5.svn(2014)-r66266
|
Abstract PyPlot display frame class. More...
Public Member Functions | |
def | __init__ |
def | InitPlotOpts |
Initialize options for entire plot. More... | |
def | InitRasterOpts |
Initialize or update raster dictionary for plotting. More... | |
def | SetGraphStyle |
Set plot and text options. More... | |
def | DrawPlot |
Draw line and point plot from list plot elements. More... | |
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. More... | |
def | OnZoom |
Enable zooming and disable dragging. More... | |
def | OnDrag |
Enable dragging and disable zooming. More... | |
def | OnRedraw |
Redraw the plot window. More... | |
def | OnErase |
Erase the plot window. More... | |
def | SaveToFile |
Save plot to graphics file. More... | |
def | OnMouseLeftDown |
def | OnMotion |
Indicate when mouse is outside the plot area. More... | |
def | PlotOptionsMenu |
Popup menu for plot and text options. More... | |
def | NotFunctional |
Creates a 'not functional' message dialog. More... | |
def | OnPlotText |
Custom text settings. More... | |
def | PlotText |
Set custom text values for profile title and axis labels. More... | |
def | PlotOptions |
Set various profile options, including: line width, color, style; marker size, color, fill, and style; grid and legend options. More... | |
def | PrintMenu |
Print options and output menu. More... | |
def | OnPageSetup |
def | OnPrintPreview |
def | OnDoPrint |
def | OnQuit |
def | OnCloseWindow |
Close plot window and clean up. More... | |
Data Fields | |
parent | |
mapwin | |
Map | |
rasterList | |
raster | |
plottype | |
linestyledict | |
ptfilldict | |
statusbar | |
client | |
plotlist | |
plot | |
ptitle | |
xlabel | |
ylabel | |
colorDict | |
properties | |
zoom | |
drag | |
Abstract PyPlot display frame class.
Definition at line 47 of file wxplot/base.py.
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.
def base.BasePlotFrame.DrawPlot | ( | self, | |
plotlist | |||
) |
Draw line and point plot from list plot elements.
Definition at line 301 of file wxplot/base.py.
References base.BasePlotFrame.plot, colorrules.RulesPanel.properties, model.Model.properties, base.BasePlotFrame.properties, colorrules.RasterColorTable.properties, colorrules.VectorColorTable.properties, model.ProcessModelFile.properties, model.WriteModelFile.properties, base.BasePlotFrame.ptitle, base.BasePlotFrame.xlabel, and base.BasePlotFrame.ylabel.
Referenced by profile.ProfileFrame.OnCreateProfile(), and profile.ProfileFrame.Update().
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 322 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 178 of file wxplot/base.py.
References base.BasePlotFrame.colorDict, dialogs.ProfileRasterDialog.colorList, profile.ProfileFrame.colorList, base.BasePlotFrame.plottype, colorrules.RulesPanel.properties, model.Model.properties, base.BasePlotFrame.properties, colorrules.RasterColorTable.properties, colorrules.VectorColorTable.properties, model.ProcessModelFile.properties, model.WriteModelFile.properties, and base.BasePlotFrame.raster.
Referenced by profile.ProfileFrame.OnSelectRaster().
def base.BasePlotFrame.NotFunctional | ( | self | ) |
Creates a 'not functional' message dialog.
Definition at line 424 of file wxplot/base.py.
def base.BasePlotFrame.OnCloseWindow | ( | self, | |
event | |||
) |
Close plot window and clean up.
Definition at line 507 of file wxplot/base.py.
def base.BasePlotFrame.OnDoPrint | ( | self, | |
event | |||
) |
Definition at line 501 of file wxplot/base.py.
Referenced by base.BasePlotFrame.PrintMenu().
def base.BasePlotFrame.OnDrag | ( | self, | |
event | |||
) |
Enable dragging and disable zooming.
Definition at line 352 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 366 of file wxplot/base.py.
def base.BasePlotFrame.OnMotion | ( | self, | |
event | |||
) |
Indicate when mouse is outside the plot area.
Definition at line 385 of file wxplot/base.py.
def base.BasePlotFrame.OnMouseLeftDown | ( | self, | |
event | |||
) |
Definition at line 380 of file wxplot/base.py.
def base.BasePlotFrame.OnPageSetup | ( | self, | |
event | |||
) |
Definition at line 495 of file wxplot/base.py.
Referenced by base.BasePlotFrame.PrintMenu().
def base.BasePlotFrame.OnPlotText | ( | self, | |
dlg | |||
) |
Custom text settings.
Definition at line 434 of file wxplot/base.py.
References base.BasePlotFrame.OnRedraw(), base.BasePlotFrame.plot, colorrules.RulesPanel.properties, model.Model.properties, base.BasePlotFrame.properties, colorrules.RasterColorTable.properties, colorrules.VectorColorTable.properties, model.ProcessModelFile.properties, model.WriteModelFile.properties, base.BasePlotFrame.ptitle, base.BasePlotFrame.xlabel, and base.BasePlotFrame.ylabel.
def base.BasePlotFrame.OnPrintPreview | ( | self, | |
event | |||
) |
Definition at line 498 of file wxplot/base.py.
Referenced by base.BasePlotFrame.PrintMenu().
def base.BasePlotFrame.OnQuit | ( | self, | |
event | |||
) |
Definition at line 504 of file wxplot/base.py.
def base.BasePlotFrame.OnRedraw | ( | self, | |
event | |||
) |
Redraw the plot window.
Unzoom to original size
Definition at line 360 of file wxplot/base.py.
Referenced by base.BasePlotFrame.OnPlotText().
def base.BasePlotFrame.OnZoom | ( | self, | |
event | |||
) |
Enable zooming and disable dragging.
Definition at line 344 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 463 of file wxplot/base.py.
References base.BasePlotFrame.plottype.
Referenced by base.BasePlotFrame.PlotOptionsMenu().
def base.BasePlotFrame.PlotOptionsMenu | ( | self, | |
event | |||
) |
Popup menu for plot and text options.
Definition at line 404 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 452 of file wxplot/base.py.
References base.BasePlotFrame.plottype.
Referenced by base.BasePlotFrame.PlotOptionsMenu().
def base.BasePlotFrame.PrintMenu | ( | self, | |
event | |||
) |
Print options and output menu.
Definition at line 478 of file wxplot/base.py.
References gprint.PrintOptions.OnDoPrint(), base.BasePlotFrame.OnDoPrint(), gprint.PrintOptions.OnPageSetup(), frame.PsMapFrame.OnPageSetup(), base.BasePlotFrame.OnPageSetup(), gprint.PrintOptions.OnPrintPreview(), and base.BasePlotFrame.OnPrintPreview().
def base.BasePlotFrame.SaveToFile | ( | self, | |
event | |||
) |
Save plot to graphics file.
Definition at line 375 of file wxplot/base.py.
def base.BasePlotFrame.SetGraphStyle | ( | self | ) |
Set plot and text options.
Definition at line 238 of file wxplot/base.py.
References base.BasePlotFrame.drag, colorrules.RulesPanel.properties, model.Model.properties, base.BasePlotFrame.properties, colorrules.RasterColorTable.properties, colorrules.VectorColorTable.properties, model.ProcessModelFile.properties, model.WriteModelFile.properties, and base.BasePlotFrame.zoom.
Referenced by profile.ProfileFrame.OnCreateProfile(), and profile.ProfileFrame.Update().
base.BasePlotFrame.client |
Definition at line 85 of file wxplot/base.py.
base.BasePlotFrame.colorDict |
Definition at line 116 of file wxplot/base.py.
Referenced by base.BasePlotFrame.InitRasterOpts().
base.BasePlotFrame.drag |
Definition at line 163 of file wxplot/base.py.
Referenced by base.BasePlotFrame.OnDrag(), base.BasePlotFrame.OnZoom(), and base.BasePlotFrame.SetGraphStyle().
base.BasePlotFrame.linestyledict |
Definition at line 61 of file wxplot/base.py.
base.BasePlotFrame.Map |
Definition at line 56 of file wxplot/base.py.
Referenced by frame.MapFrame.AddNviz(), frame.MapFrame.AddToolbar(), and frame.MapFrame.GetMapWindow().
base.BasePlotFrame.mapwin |
Definition at line 55 of file wxplot/base.py.
base.BasePlotFrame.parent |
Definition at line 54 of file wxplot/base.py.
base.BasePlotFrame.plot |
Definition at line 97 of file wxplot/base.py.
Referenced by base.BasePlotFrame.DrawPlot(), and base.BasePlotFrame.OnPlotText().
base.BasePlotFrame.plotlist |
Definition at line 96 of file wxplot/base.py.
base.BasePlotFrame.plottype |
Definition at line 59 of file wxplot/base.py.
Referenced by base.BasePlotFrame.InitPlotOpts(), base.BasePlotFrame.InitRasterOpts(), dialogs.TextDialog.OnSave(), dialogs.OptDialog.OnSave(), profile.ProfileFrame.OnSelectRaster(), base.BasePlotFrame.PlotOptions(), base.BasePlotFrame.PlotText(), and dialogs.OptDialog.UpdateSettings().
base.BasePlotFrame.properties |
Definition at line 129 of file wxplot/base.py.
Referenced by colorrules.ColorTable.CreateColorTable(), base.BasePlotFrame.DrawPlot(), base.BasePlotFrame.InitRasterOpts(), colorrules.ColorTable.LoadTable(), base.BasePlotFrame.OnPlotText(), colorrules.ColorTable.ReadColorTable(), base.BasePlotFrame.SetGraphStyle(), dialogs.TextDialog.UpdateSettings(), and dialogs.OptDialog.UpdateSettings().
base.BasePlotFrame.ptfilldict |
Definition at line 67 of file wxplot/base.py.
base.BasePlotFrame.ptitle |
Definition at line 98 of file wxplot/base.py.
Referenced by base.BasePlotFrame.DrawPlot(), base.BasePlotFrame.OnPlotText(), dialogs.TextDialog.OnTitle(), and profile.ProfileFrame.SetupProfile().
base.BasePlotFrame.raster |
Definition at line 58 of file wxplot/base.py.
Referenced by base.BasePlotFrame.InitRasterOpts(), profile.ProfileFrame.OnSelectRaster(), dialogs.OptDialog.OnSetMap(), profile.ProfileFrame.OnStats(), profile.ProfileFrame.SaveProfileToFile(), profile.ProfileFrame.SetupProfile(), and dialogs.OptDialog.UpdateSettings().
base.BasePlotFrame.rasterList |
Definition at line 57 of file wxplot/base.py.
Referenced by profile.ProfileFrame.OnCreateProfile(), dialogs.ProfileRasterDialog.OnSelection(), profile.ProfileFrame.OnSelectRaster(), dialogs.OptDialog.OnSetMap(), dialogs.OptDialog.OnSetOpt(), profile.ProfileFrame.SaveProfileToFile(), and profile.ProfileFrame.SetupProfile().
base.BasePlotFrame.statusbar |
Definition at line 78 of file wxplot/base.py.
base.BasePlotFrame.xlabel |
Definition at line 99 of file wxplot/base.py.
Referenced by base.BasePlotFrame.DrawPlot(), base.BasePlotFrame.OnPlotText(), and dialogs.TextDialog.OnXLabel().
base.BasePlotFrame.ylabel |
Definition at line 100 of file wxplot/base.py.
Referenced by base.BasePlotFrame.DrawPlot(), base.BasePlotFrame.OnPlotText(), dialogs.TextDialog.OnYLabel(), and profile.ProfileFrame.SetupProfile().
base.BasePlotFrame.zoom |
Definition at line 162 of file wxplot/base.py.
Referenced by base.BasePlotFrame.OnDrag(), base.BasePlotFrame.OnZoom(), and base.BasePlotFrame.SetGraphStyle().