Git Product home page Git Product logo

wxmplot's Introduction

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]>

wxmplot's People

Contributors

newville avatar yanikou19 avatar astyl avatar tobiasgehring avatar rbaumert avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.