|
GRASS Programmer's Manual
6.5.svn(2012)-r51648
|
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 | |
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 319 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 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().
| def base.BasePlotFrame.NotFunctional | ( | self | ) |
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.OnPlotText | ( | self, | |
| dlg | |||
| ) |
Custom text settings for histogram plot.
Definition at line 451 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.
Referenced by base.BasePlotFrame.PlotText().
| 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.PrintMenu | ( | self, | |
| event | |||
| ) |
Print options and output menu.
Definition at line 499 of file wxplot/base.py.
References gprint.PrintOptions.OnDoPrint(), base.BasePlotFrame.OnDoPrint(), gprint.PrintOptions.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 393 of file wxplot/base.py.
| def base.BasePlotFrame.SetGraphStyle | ( | self | ) |
Set plot and text options.
Definition at line 262 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(), base.BasePlotFrame.PlotOptions(), and profile.ProfileFrame.Update().
Definition at line 85 of file wxplot/base.py.
Definition at line 116 of file wxplot/base.py.
Referenced by base.BasePlotFrame.InitRasterOpts(), and base.BasePlotFrame.InitRasterPairs().
Definition at line 158 of file wxplot/base.py.
Referenced by base.BasePlotFrame.OnDrag(), base.BasePlotFrame.OnZoom(), and base.BasePlotFrame.SetGraphStyle().
Definition at line 61 of file wxplot/base.py.
Definition at line 56 of file wxplot/base.py.
Referenced by frame.MapFrame.AddNviz(), frame.MapFrame.AddToolbar(), and frame.MapFrame.GetMapWindow().
Definition at line 55 of file wxplot/base.py.
Definition at line 54 of file wxplot/base.py.
Definition at line 97 of file wxplot/base.py.
Referenced by base.BasePlotFrame.DrawPlot(), and base.BasePlotFrame.OnPlotText().
Definition at line 96 of file wxplot/base.py.
Definition at line 59 of file wxplot/base.py.
Referenced by base.BasePlotFrame.InitPlotOpts(), profile.ProfileFrame.OnSelectRaster(), base.BasePlotFrame.PlotOptions(), and base.BasePlotFrame.PlotText().
Definition at line 130 of file wxplot/base.py.
Referenced by colorrules.ColorTable.CreateColorTable(), base.BasePlotFrame.DrawPlot(), colorrules.ColorTable.LoadTable(), base.BasePlotFrame.OnPlotText(), colorrules.ColorTable.ReadColorTable(), base.BasePlotFrame.SetGraphStyle(), dialogs.TextDialog.UpdateSettings(), and dialogs.OptDialog.UpdateSettings().
Definition at line 67 of file wxplot/base.py.
Definition at line 98 of file wxplot/base.py.
Referenced by base.BasePlotFrame.DrawPlot(), base.BasePlotFrame.OnPlotText(), dialogs.TextDialog.OnTitle(), and profile.ProfileFrame.SetupProfile().
Definition at line 58 of file wxplot/base.py.
Referenced by base.BasePlotFrame.InitRasterOpts(), base.BasePlotFrame.InitRasterPairs(), profile.ProfileFrame.OnSelectRaster(), profile.ProfileFrame.OnStats(), profile.ProfileFrame.SaveProfileToFile(), and profile.ProfileFrame.SetupProfile().
Definition at line 57 of file wxplot/base.py.
Referenced by profile.ProfileFrame.OnCreateProfile(), dialogs.ProfileRasterDialog.OnSelection(), profile.ProfileFrame.OnSelectRaster(), profile.ProfileFrame.SaveProfileToFile(), and profile.ProfileFrame.SetupProfile().
Definition at line 78 of file wxplot/base.py.
Definition at line 99 of file wxplot/base.py.
Referenced by base.BasePlotFrame.DrawPlot(), base.BasePlotFrame.OnPlotText(), and dialogs.TextDialog.OnXLabel().
Definition at line 100 of file wxplot/base.py.
Referenced by base.BasePlotFrame.DrawPlot(), base.BasePlotFrame.OnPlotText(), dialogs.TextDialog.OnYLabel(), and profile.ProfileFrame.SetupProfile().
Definition at line 157 of file wxplot/base.py.
Referenced by base.BasePlotFrame.OnDrag(), base.BasePlotFrame.OnZoom(), and base.BasePlotFrame.SetGraphStyle().