File tree Expand file tree Collapse file tree 3 files changed +49
-0
lines changed
Filter options
Expand file tree Collapse file tree 3 files changed +49
-0
lines changed
Original file line number Diff line number Diff line change
1
+ These examples use the matplotlib api rather than the pylab/pyplot
2
+ procedural state machine. For robust, production level scripts, or
3
+ for applications or web application servers, we recommend you use the
4
+ matplotlib API directly as it gives you the maximum control over your
5
+ figures, axes and plottng commands. There are a few documentation
6
+ resources for the API
7
+
8
+ - the matplotlib artist tutorial :
9
+ http://matplotlib.sourceforge.net/pycon/artist_api_tut.pdf
10
+
11
+ - the "leftwich tutorial" -
12
+ http://matplotlib.sourceforge.net/leftwich_tut.txt
13
+
14
+ The example agg_oo.py is the simplest example of using the Agg
15
+ backend which is readily ported to other output formats. This
16
+ example is a good starting point if your are a web application
17
+ developer. Many of the other examples in this directory use
18
+ matplotlib.pyplot just to create the figure and show calls, and use
19
+ the API for everything else. This is a good solution for production
20
+ quality scripts. For full fledged GUI applications, see the
21
+ user_interfaces examples.
Original file line number Diff line number Diff line change
1
+ matplotlib supports event handling with a GUI neutral event model. So
2
+ you can connect to matplotlib events w/o knowledge of what user
3
+ interface matplotlib will ultimately be plugged in to. This has two
4
+ advantages: the code you write will be more portable, and matplotlib
5
+ events are aware of things like data coordinate space and whih axes
6
+ the event occurs in so you don't have to mess with low level
7
+ transformation details to go from canvas space to data space. Object
8
+ picking examples are also included.
9
+
10
+ There is an event handling tutorial at
11
+ http://matplotlib.sourceforge.net/pycon/event_handling_tut.pdf. The
12
+ ReST source for this document is included in the matplotlib source
13
+ distribution.
14
+
15
+
Original file line number Diff line number Diff line change
1
+ Embedding matplotlib in graphical user interfaces
2
+ =================================================
3
+
4
+ You can embed matplotlib directly into a user interface application by
5
+ following the embedding_in_SOMEGUI.py examples here. Currently
6
+ matplotlib supports wxpython, pygtk, tkinter, pyqt, fltk and cocoa.
7
+
8
+ When embedding matplotlib in a GUI, you must use the matplotlib API
9
+ directly rather than the pylab/pyplot proceedural interface, so take a
10
+ look at the examples/api directory for some example code working with
11
+ the API.
12
+
13
+
You can’t perform that action at this time.
0 commit comments