Subclass of a wx.Panel which holds two scrollbars and the actual plotting canvas (self.canvas). It allows for simple general plotting of data with zoom, labels, and automatic axis scaling.
__init__ | Constructs a panel, which can be a child of a frame or |
Clear | Erase the window. |
Draw | Wrapper around _Draw, which handles log axes |
GetClosestPoint | Returns list with |
GetClosestPoints | Returns list with |
GetEnableAntiAliasing | |
GetEnableCenterLines | True if grid enabled. |
GetEnableDiagonals | True if grid enabled. |
GetEnableDrag | |
GetEnableGrid | True if grid enabled. |
GetEnableHiRes | |
GetEnableLegend | True if Legend enabled. |
GetEnablePointLabel | True if pointLabel enabled. |
GetEnableTitle | True if title enabled. |
GetEnableZoom | True if zooming enabled. |
GetFontSizeAxis | Get current tick and axis label font size in points |
GetFontSizeLegend | Get current Legend font size in points |
GetFontSizeTitle | Get current Title font size in points |
GetGridColour | |
getLogScale | |
GetPointLabelFunc | Returns pointLabel Drawing Function |
GetShowScrollbars | Set True to show scrollbars |
GetUseScientificNotation | |
GetXCurrentRange | |
GetXMaxRange | |
GetXSpec | Returns current XSpec for axis |
GetXY | Wrapper around _getXY, which handles log scales |
GetYCurrentRange | |
GetYMaxRange | |
GetYSpec | Returns current YSpec for axis |
OnLeave | Used to erase pointLabel when mouse outside window |
OnMotion | |
OnMouseDoubleClick | |
OnMouseLeftDown | |
OnMouseLeftUp | |
OnMouseRightDown | |
OnPaint | |
OnScroll | |
OnSize | |
PageSetup | Brings up the page setup dialog |
PositionScreenToUser | Converts Screen position to User Coordinates |
PositionUserToScreen | Converts User position to Screen Coordinates |
Printout | Print current plot. |
PrintPreview | Print-preview current plot. |
Redraw | Redraw the existing plot. |
Reset | Unzoom the plot. |
SaveFile | Saves the file to the type specified in the extension. If no file |
ScrollRight | Move view right number of axis units. |
ScrollUp | Move view up number of axis units. |
SetCursor | |
SetEnableAntiAliasing | Set True to enable anti-aliasing. |
SetEnableCenterLines | Set True, ‘Horizontal’ or ‘Vertical’ to enable center line(s). |
SetEnableDiagonals | Set True, ‘Bottomleft-Topright’ or ‘Bottomright-Topleft’ to enable |
SetEnableDrag | Set True to enable drag. |
SetEnableGrid | Set True, ‘Horizontal’ or ‘Vertical’ to enable grid. |
SetEnableHiRes | Set True to enable high-resolution mode when using anti-aliasing. |
SetEnableLegend | Set True to enable legend. |
SetEnablePointLabel | Set True to enable pointLabel. |
SetEnableTitle | Set True to enable title. |
SetEnableZoom | Set True to enable zooming. |
SetFontSizeAxis | Set the tick and axis label font size (default is 10 point) |
SetFontSizeLegend | Set Legend font size (default is 7 point) |
SetFontSizeTitle | Set Title font size (default is 15 point) |
SetGridColour | |
setLogScale | |
SetPointLabelFunc | Sets the function with custom code for pointLabel drawing |
SetShowScrollbars | Set True to show scrollbars |
SetUseScientificNotation | |
SetXSpec | xSpec- defines x axis type. Can be ‘none’, ‘min’ or ‘auto’ |
SetYSpec | ySpec- defines x axis type. Can be ‘none’, ‘min’ or ‘auto’ |
UpdatePointLabel | Updates the pointLabel point on screen with data contained in |
Zoom | Zoom on the plot |
Subclass of a wx.Panel which holds two scrollbars and the actual plotting canvas (self.canvas). It allows for simple general plotting of data with zoom, labels, and automatic axis scaling.
Constructs a panel, which can be a child of a frame or any other non-control window
Erase the window.
Wrapper around _Draw, which handles log axes
Returns list with [curveNumber, legend, index of closest point, pointXY, scaledXY, distance] list for only the closest curve. Returns [] if no curves are being plotted.
x, y in user coords if pointScaled == True based on screen coords if pointScaled == False based on user coords
Returns list with [curveNumber, legend, index of closest point, pointXY, scaledXY, distance] list for each curve. Returns [] if no curves are being plotted.
x, y in user coords if pointScaled == True based on screen coords if pointScaled == False based on user coords
True if grid enabled.
True if grid enabled.
True if grid enabled.
True if Legend enabled.
True if pointLabel enabled.
True if title enabled.
True if zooming enabled.
Get current tick and axis label font size in points
Get current Legend font size in points
Get current Title font size in points
Returns pointLabel Drawing Function
Set True to show scrollbars
Returns current XSpec for axis
Wrapper around _getXY, which handles log scales
Returns current YSpec for axis
Used to erase pointLabel when mouse outside window
Brings up the page setup dialog
Converts Screen position to User Coordinates
Converts User position to Screen Coordinates
Print current plot.
Print-preview current plot.
Redraw the existing plot.
Unzoom the plot.
Saves the file to the type specified in the extension. If no file name is specified a dialog box is provided. Returns True if sucessful, otherwise False.
.bmp Save a Windows bitmap file. .xbm Save an X bitmap file. .xpm Save an XPM bitmap file. .png Save a Portable Network Graphics file. .jpg Save a Joint Photographic Experts Group file.
Move view right number of axis units.
Move view up number of axis units.
Set True to enable anti-aliasing.
Set True, ‘Horizontal’ or ‘Vertical’ to enable center line(s).
Set True, ‘Bottomleft-Topright’ or ‘Bottomright-Topleft’ to enable center line(s).
Set True to enable drag.
Set True, ‘Horizontal’ or ‘Vertical’ to enable grid.
Set True to enable high-resolution mode when using anti-aliasing.
Set True to enable legend.
Set True to enable pointLabel.
Set True to enable title.
Set True to enable zooming.
Set the tick and axis label font size (default is 10 point)
Set Legend font size (default is 7 point)
Set Title font size (default is 15 point)
Sets the function with custom code for pointLabel drawing **** more info needed ***********
Set True to show scrollbars
xSpec- defines x axis type. Can be ‘none’, ‘min’ or ‘auto’ where:
ySpec- defines x axis type. Can be ‘none’, ‘min’ or ‘auto’ where:
Updates the pointLabel point on screen with data contained in mDataDict.
mDataDict will be passed to your function set by SetPointLabelFunc. It can contain anything you want to display on the screen at the scaledXY point you specify.
This function can be called from parent window with onClick, onMotion events etc.
Zoom on the plot Centers on the X,Y coords given in Center Zooms by the Ratio = (Xratio, Yratio) given
See pageSetupData
See print_data