forked from newville/wxmplot
-
Notifications
You must be signed in to change notification settings - Fork 0
simple, rich plotting functions built on top of wx and matplotlib
License
tdbenson/wxmplot
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
The wxmplot python package provides simple, rich plotting widgets for wxPython. These are built on top of the matplotlib library, which provides 2D plots and image display. The wxmplot package does not explicitly expose all of matplotlib's capabilities. Instead, it provides simple widgets (wxPython panels) for the most common use cases of basic 2D plotting and image display that are easy to include in a wxPython program and provide end-users with interactivity and customization of the graphics without knowing all of the details of matplotlib. The principle objects provided by wxmplot are: == PlotPanel: a wx.Panel containing a 2D Plot. == PlotFrame: a wx.Frame containing a PlotPanel For the end-user, these provide the abilities to: 1. display x, y coordinates (left-click) 2. zoom in on a particular region of the plot (left-drag) 3. customize titles, labels, legend, color, linestyle, marker, and whether a grid is shown. A separate frame is used to set these attributes. 4. save high-qualiy plot images (as PNGs), copy to system clipboard, or print. For the programmer, these provide simple plotting methods: plot(x,y): start a new plot, and plot data x,y optional arguments (all keyword/value types): color='Blue' for any X11 color name, (rgb) tuple, or '#RRGGBB' style='solid' 'solid,'dashed','dotted','dot-dash' linewidth=2 integer 0 (no line) to 10 marker='None' any of a wide range of marker symbols markersize=8 integer 0 to 30 xlabel=' ' label for X axis ylabel=' ' label for Y axis title=' ' title for top of PlotFrame grid=True boolean for whether to show grid. oplot(x,y): plot data x,y, on same plot as current data with optional arguments as plot() clear(): clear plot save_figure(): bring up file dialog for saving image of figure == ImagePanel: a wx.Panel containing an image. == ImageFrame: a wx.Frame containing an ImagePanel and widgets for configuring the image. This displays a numpy array as an greyscale or false color image. The end user can zoom in, rotate, or flip the image, and adjust the smoothing of the image and adjust the color table and intensity scale. Programmatically, one can make the same adjustments to an ImagePanel by changing its configuaration attributes and running the redraw() method. ===== last update: 2017-Apr-2 Matt Newville <[email protected]>
About
simple, rich plotting functions built on top of wx and matplotlib
Resources
License
Stars
Watchers
Forks
Packages 0
No packages published
Languages
- Python 99.7%
- Other 0.3%