Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit f81f3fd

Browse filesBrowse files
committed
added a few example specific readmes
svn path=/trunk/matplotlib/; revision=5158
1 parent 9c5146c commit f81f3fd
Copy full SHA for f81f3fd

File tree

Expand file treeCollapse file tree

3 files changed

+49
-0
lines changed
Filter options
Expand file treeCollapse file tree

3 files changed

+49
-0
lines changed

‎examples/api/README.txt

Copy file name to clipboard
+21Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
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.

‎examples/event_handling/README.txt

Copy file name to clipboard
+15Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
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+

‎examples/user_interfaces/README.txt

Copy file name to clipboard
+13Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
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+

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.