Skip to content

Commit e9074c8

Browse files
committed
updated docs
svn path=/trunk/matplotlib/; revision=12
1 parent d09e2a8 commit e9074c8

File tree

5 files changed

+84
-57
lines changed

5 files changed

+84
-57
lines changed

CHANGELOG

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,3 +50,6 @@
5050

5151

5252

53+
2003-05-01
54+
55+
Fixed ytick bug where grid and tick show outside axis viewport with gc clip

GOALS

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
Here's a list of things the remaining things I think need to be done
2+
before publication quality (2D) is achieved (if you have suggested
3+
additions to this list, email me)
4+
5+
* Display fonts vertically (ylabel). Arbitrary orientations would
6+
be nicer and would be matlab mimic the matlab handle rotation
7+
for text.
8+
9+
UPDATE: vertical text support and ylabel added 2003-05-01
10+
11+
* Arbitrary locs for axis text
12+
13+
UPDATE: added the text command, which provides arbitrary axis
14+
text
15+
16+
* Legend
17+
18+
* Allow text to scale for high res prints
19+
20+
* Support multiple output resolutions and formats:
21+
22+
UPDATE: Added support for png and jpeg. 2003-05-01 Gdk-Pixbufs
23+
can support more types, but apparently pygtk only supports these
24+
2. This may be GTK or pygtk build dependent.
25+
26+
* Fix the script time render time inconsitencies (like axis lim
27+
autoscalig which occurs at rendering and is not available during
28+
script
29+
30+
* Allow interactive control of plot thru threading
31+
32+
UPDATE: added examples/interactive.py which is an interactive
33+
prompt for making figures
34+
35+
* Support a richer char set for labeling, eg greek letters, as
36+
well as sub and superscripts
37+
38+
* Support log scaling

INSTALL

Lines changed: 22 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,31 @@
1-
This package requires python 2.2+, Numeric and pygtk 1.99.x (which
2-
requires gnome2).
1+
matplotlib requires python 2.2+, Numeric and pygtk 1.99.16, which
2+
requires GTK2.
33

44
If these dependencies are satisfied, just do the usual thing:
55

66
> python setup.py install
77

8-
I have installed and tested this on linux and win32, but in theory it
9-
should run anywhere that Numeric and pygtk run.
8+
I have installed and tested this on linux and several win32 platforms,
9+
but it should run anywhere that Numeric and pygtk run.
10+
11+
12+
Redhat Users:
13+
14+
GTK2 became the default with the Redhat Linux 8 series. If you're
15+
distro is older than that, you'll need to upgrade your desktop,
16+
upgrade your gtk libs, or upgrade your distro.
17+
18+
19+
Windows Users:
20+
21+
Windows users should consult
22+
http://www.mapr.ucl.ac.be/~gustin/win32_ports for information about
23+
pygtk for win32. Basically, you need to install the GTK+ 2.2
24+
runtime and pygtk-1.99.16, both of which have friendly windows
25+
installers. After you install the runtime, you may need to add the
26+
bin and lib subdirs of your install dir to your PATH.
27+
1028

11-
Take a look at the scripts in the demo dir for examples of how to use
12-
matplotlib.
1329

1430
If you have any questions, email me at
1531
John Hunter <jdhunter@ace.bsd.uchicago.edu> or post to

README

Lines changed: 12 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,23 +1,25 @@
11
INTRODUCTION:
2-
3-
This is a gtk based python plotting library which makes a faint
4-
attempt at emulating matlab style plot commands. The src is divided
5-
into 2 parts, located in the src dir. matplotlib.py is the plotting
6-
lib which does the heavy lifting, and matplot.py defines some
7-
functions to give a matlab style functional interface to the plot
8-
lib, which is suitable for use from the interactive prompt.
2+
3+
matplotlib is a pure python plotting library designed to bring
4+
publication quality plotting to python with a syntax familiar to
5+
matlab users. Although the goal of publication quality is not yet
6+
attained (see GOALS), the library does produce high quality 2D
7+
plots. All of the plotting commands can be accessed either via a
8+
functional interface familiar to matlab users or an object oriented
9+
interface familiar to python users.
10+
911

1012
REQUIREMENTS:
1113

12-
python 2.2+, pygtk-1.99.x and Numeric
14+
python 2.2+, pygtk-1.99.16 (requires GTK2) and Numeric-22+
1315

1416
INSTALL
1517

16-
If you have the requirements, just do 'python setup.py install'
18+
If you have the requirements, just do 'python setup.py install'.
1719

1820
EXAMPLES
1921

20-
See the demos in the demo dir.
22+
See the examples in the examples dir.
2123

2224
AUTHOR
2325

TODO

Lines changed: 9 additions & 41 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,9 @@
33
the window. I suppose I need to first draw to a pixbuf. I would
44
also like to control the resolution.
55

6-
DONE: just need to make a GUI to set size and fname
6+
UPDATE: high resolution printing. Resolution can be set from the
7+
command line, but the GUI needs to be updated to allow resolution
8+
to be set along with filename
79

810
-- fix text size calculations using pango layouts: DONE
911

@@ -19,7 +21,7 @@
1921
-- add a color selection dialog for the background, lines, and text
2022

2123
-- allow interactive control of the plot from the python shell after
22-
it has been launched using the cookbook thread recipe.
24+
it has been launched using the cookbook thread recipe. DONE
2325

2426
-- write a user guide
2527

@@ -34,7 +36,6 @@
3436
working cross platform. According to the docs this is better
3537
handled using size hints -- but I don't know how to use them, yet.
3638

37-
3839
-- vlines and hlines disappear on in some instance due to improper
3940
clipping
4041

@@ -44,50 +45,17 @@
4445

4546
-- Clip patches outside view port
4647

47-
-- Here's a list of things the remaining things I think need to be
48-
done before publication quality (2D) is achieved
49-
50-
1) Display fonts vertically (ylabel). Arbitrary orientations would
51-
be nicer and would be matlab mimic the matlab handle rotation
52-
for text.
53-
54-
Update: vertical text support and ylabel added 2003-05-01
55-
56-
2) Arbitrary locs for axis text
57-
58-
3) Legend
59-
60-
4) Fix ytick bug where grid and tick show outside axis viewport
61-
62-
DONE 2003-05-01 with gc clip
63-
64-
5) Allow text to scale for high res prints
65-
66-
6) Support multiple output resolutions and formats:
67-
68-
Updates: Added support for png and jpeg. 2003-05-01 Gdk-Pixbufs
69-
can support more types, but apparently pygtk only supports these
70-
2. This may be GTK or pygtk build dependent.
71-
72-
7) Fix the script time render time inconsitencies (like axis lim
73-
autoscalig which occurs at rendering and is not available during
74-
script
75-
76-
8) Allow interactive control of plot thru threading
77-
78-
9) Support a richer char set for labeling, eg greek letters, as
79-
well as sub and superscripts
80-
81-
10) Support log scaling
82-
83-
8448
-- Allow background color to be set for subplots
8549

8650
-- Expose bug on win32 for axis text
8751

8852
-- Fix floating point bug on panx/pany where 0 is computed as 5e-17
53+
54+
UPDATE: hack workaround. If the distance of the tickloc from the
55+
nearest integer is a small fraction of the view lim, just use the
56+
integer
8957

90-
-- fmt process bug on this kind of plot command (2nd of 3 has no
58+
-- fmt process bug on this kind of plot command (2nd of 3 has no
9159
format string)
9260

9361
plot(t1, p1, 'o', t2, p2, ogtt.times, ogtt.cpeptide, 's')

0 commit comments

Comments
 (0)