Classes | |
class | PolyPoints |
Base Class for lines and markers
| |
class | PolyLine |
Class to define line type and style
| |
class | PolyMarker |
Class to define marker type and style
| |
class | PlotGraphics |
Container to hold PolyXXX objects and graph labels
| |
class | PlotCanvas |
Subclass of a wx.Window to allow simple general plotting of data with zoom, labels, and automatic axis scaling. More... | |
class | PlotPrintout |
Controls how the plot is made in printing and previewing. More... | |
class | TestFrame |
Functions | |
def | OnPlotDraw5 |
# profile start = _time.clock() for x in range(10): self.client.Draw(drawObj) print "10 plots of Draw4 took: %f sec."%(_time.clock() - start) # profile end | |
def | OnPlotDraw6 |
def | OnPlotRedraw |
def | OnPlotClear |
def | OnPlotScale |
def | OnEnableZoom |
def | OnEnableGrid |
def | OnEnableLegend |
def | OnEnablePointLabel |
def | OnScrUp |
def | OnScrRt |
def | OnReset |
def | OnHelpAbout |
def | resetDefaults |
Just to reset the fonts back to the PlotCanvas defaults. | |
Variables | |
string | msg |
tuple | PPIPrinter = self.GetPPIPrinter() |
print "PPI Printer",self.GetPPIPrinter() print "PPI Screen", self.GetPPIScreen() print "DC GetSize", dc.GetSize() print "GetPageSizePixels", self.GetPageSizePixels() Note PPIScreen does not give the correct number Calulate everything for printer and then scale for preview | |
tuple | dcSize = dc.GetSize() |
tuple | pageSize = self.GetPageSizePixels() |
tuple | clientDcSize = self.graph.GetClientSize() |
list | pixLeft = margLeftSize*PPIPrinter[0] |
list | pixRight = margRightSize*PPIPrinter[0] |
list | pixTop = margTopSize*PPIPrinter[1] |
list | pixBottom = margBottomSize*PPIPrinter[1] |
list | plotAreaW = pageSize[0] |
list | plotAreaH = pageSize[1] |
tuple | ratioW = float(dcSize[0]) |
tuple | ratioH = float(dcSize[1]) |
tuple | aveScale = (ratioW+ratioH) |
def python::plot::OnEnableGrid | ( | self, | ||
event | ||||
) |
def python::plot::OnEnableLegend | ( | self, | ||
event | ||||
) |
def python::plot::OnEnablePointLabel | ( | self, | ||
event | ||||
) |
def python::plot::OnEnableZoom | ( | self, | ||
event | ||||
) |
def python::plot::OnHelpAbout | ( | self, | ||
event | ||||
) |
def python::plot::OnPlotClear | ( | self, | ||
event | ||||
) |
def python::plot::OnPlotDraw5 | ( | self, | ||
event | ||||
) |
# profile start = _time.clock() for x in range(10): self.client.Draw(drawObj) print "10 plots of Draw4 took: %f sec."%(_time.clock() - start) # profile end
def python::plot::OnPlotDraw6 | ( | self, | ||
event | ||||
) |
def python::plot::OnPlotRedraw | ( | self, | ||
event | ||||
) |
def python::plot::OnPlotScale | ( | self, | ||
event | ||||
) |
def python::plot::OnReset | ( | self, | ||
event | ||||
) |
def python::plot::OnScrRt | ( | self, | ||
event | ||||
) |
def python::plot::OnScrUp | ( | self, | ||
event | ||||
) |
def python::plot::resetDefaults | ( | self | ) |
Just to reset the fonts back to the PlotCanvas defaults.
tuple python::plot::aveScale = (ratioW+ratioH) |
tuple python::plot::clientDcSize = self.graph.GetClientSize() |
tuple python::plot::dcSize = dc.GetSize() |
string python::plot::msg |
Initial value:
""" This module requires the numpy or numarray module, which could not be imported. It probably is not installed (it's not part of the standard Python distribution). See the Python site (http://www.python.org) for information on downloading source or binaries."""
tuple python::plot::pageSize = self.GetPageSizePixels() |
list python::plot::pixBottom = margBottomSize*PPIPrinter[1] |
list python::plot::pixLeft = margLeftSize*PPIPrinter[0] |
list python::plot::pixRight = margRightSize*PPIPrinter[0] |
list python::plot::pixTop = margTopSize*PPIPrinter[1] |
list python::plot::plotAreaH = pageSize[1] |
list python::plot::plotAreaW = pageSize[0] |
tuple python::plot::PPIPrinter = self.GetPPIPrinter() |
print "PPI Printer",self.GetPPIPrinter() print "PPI Screen", self.GetPPIScreen() print "DC GetSize", dc.GetSize() print "GetPageSizePixels", self.GetPageSizePixels() Note PPIScreen does not give the correct number Calulate everything for printer and then scale for preview
tuple python::plot::ratioH = float(dcSize[1]) |
tuple python::plot::ratioW = float(dcSize[0]) |