Skip to content

Commit cc82392

Browse files
committed
updated README and INSTALL
svn path=/trunk/matplotlib/; revision=109
1 parent 2d79d60 commit cc82392

File tree

6 files changed

+65
-46
lines changed

6 files changed

+65
-46
lines changed

API_CHANGES

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,11 @@ API changes at 0.42
2727
* After getting Text handled in a backend independent fashion, the
2828
import process is much cleaner since there are no longer cyclic
2929
dependencies
30+
31+
* matplotlib.matlab._get_current_fig_manager renamed to
32+
matplotlib.matlab.get_current_fig_manager to allow user access to
33+
the GUI window attribute, eg figManager.window for GTK and
34+
figManager.frame for wx
3035

3136

3237

INSTALL

Lines changed: 7 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -1,33 +1,12 @@
1-
matplotlib requires python 2.2+, Numeric and pygtk 1.99.16, which
2-
requires GTK2.
1+
matplotlib requires python 2.2+, and Numeric-22+. The other
2+
requirements are backend dependent
33

4-
If these dependencies are satisfied, just do the usual thing:
4+
If these requirements are satisfied, just do the usual thing:
55

66
> python setup.py install
77

8-
I have installed and tested this on linux and several win32 platforms,
9-
but it should run anywhere that Numeric and pygtk run.
8+
The latest install instructions can be found at
9+
http://matplotlib.sourceforge.net/installing.html.
1010

11-
If you want to use matplotlib interactively from the prompt, see the
12-
file INTERACTIVE.
13-
14-
Redhat Users:
15-
16-
GTK2 became the default with the Redhat Linux 8 series. If you're
17-
distro is older than that, you'll need to upgrade your desktop,
18-
upgrade your gtk libs, or upgrade your distro.
19-
20-
21-
Windows Users:
22-
23-
Windows users should consult
24-
http://www.mapr.ucl.ac.be/~gustin/win32_ports for information about
25-
pygtk for win32. Basically, you need to install the GTK+ 2.2
26-
runtime and pygtk-1.99.16, both of which have friendly windows
27-
installers. After you install the runtime, you may need to add the
28-
bin and lib subdirs of your install dir to your PATH.
29-
30-
31-
If you have any questions, email me at
32-
John Hunter <jdhunter@ace.bsd.uchicago.edu> or post to
33-
comp.lang.python, which I read frequently.
11+
The backend specific requirements (eg, for GTK, GD, PS or WX) can be
12+
found at http://matplotlib.sourceforge.net/backends.html

Makefile

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,9 @@
22
# Copyright (C) 2003 <jdhunter@ace.bsd.uchicago.edu>
33
# $Header$
44
# $Log$
5+
# Revision 1.13 2004/01/27 16:18:08 jdh2358
6+
# updated README and INSTALL
7+
#
58
# Revision 1.12 2004/01/26 18:27:46 jdh2358
69
# more ps and text API fixes
710
#
@@ -73,8 +76,7 @@ RELEASE = matplotlib-${VERSION}
7376
clean:
7477
${PYTHON} setup.py clean;\
7578
find . \( -name "*~" -o -name "*.pyc" \) | xargs rm -f;\
76-
find examples -name "*.png" | xargs rm -f;\
77-
find matplotlib -name "*.png" | xargs rm -f;
79+
find examples \(-o -name "*.png" -o -name "*.ps" -o -name "*.jpg" -o -name "*.eps" \) | xargs rm -f
7880

7981
htmldocs:
8082
rm -rf htdocs/matplotlib;\

README

Lines changed: 45 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,37 +1,68 @@
11
INTRODUCTION:
22

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-
3+
4+
matplotlib is a pure python 2D plotting library with a Matlab?
5+
syntax which produces publication quality figures using in a
6+
variety of hardcopy formats (PNG, JPG, TIFF, PS) and interactive
7+
GUI environments (WX, GTK) across platforms. matplotlib can be used
8+
in python scripts, interactively from the python shell (ala matlab
9+
or mathematica), in web application servers generating dynamic
10+
charts, or embedded in GTK or WX applications; see backends.
11+
12+
matplotlib trys to make easy things easy and hard things
13+
possible. You can generate plots, histograms, power spectra, bar
14+
charts, errorcharts, scatterplots, etc, with just a few lines of
15+
code. For example, to make a histogram of data in x, you simply need
16+
to type
17+
18+
>>> hist(x, 100) # use 100 bins
19+
20+
21+
For the power user, you have full control of line styles, font
22+
properties, axes properties, etc, via an object oriented interface
23+
or via a handle graphics interface familiar to matlab users. A
24+
summary of the goals of matplotlib and the progress so far can be
25+
found here.
1126

1227
REQUIREMENTS:
1328

14-
python 2.2+, pygtk-1.99.16 (requires GTK2) and Numeric-22+
29+
python 2.2+, and Numeric-22+. Other requirements are backend
30+
dependent. See http://matplotlib.sourceforge.net/backends.html
1531

1632
INSTALL
1733

18-
If you have the requirements, just do 'python setup.py install'.
34+
If you have the requirements, just do 'python setup.py install'.
35+
36+
37+
Quick start install instructions can be found here -
38+
http://matplotlib.sourceforge.net/installing.html
39+
40+
For backend specific install information see
41+
http://matplotlib.sourceforge.net/backends.html
1942

2043
If you want to use matplotlib interactively from the prompt, see
21-
INTERACTIVE
44+
http://matplotlib.sourceforge.net/interactive.html
2245

2346

2447
EXAMPLES
2548

26-
See the examples in the examples dir.
49+
See the examples in the examples dir. To see examples scripts with
50+
the outputs they produce, see
51+
http://matplotlib.sourceforge.net/screenshots.html
2752

2853
AUTHOR
2954

3055
John D. Hunter <jdhunter@ace.bsd.uchicago.edu>
31-
Copyright (c) 2002 John D. Hunter; All Rights Reserved
56+
Copyright (c) 2002-2004 John D. Hunter; All Rights Reserved.
57+
58+
Jeremy O'Donoghue wrote the wx backend
59+
60+
See http://matplotlib.sourceforge.net/credits.html for additionaly
61+
contributors
3262

3363
LICENSE
3464

3565
Based on that of python 2.2. See the LICENSE file that ships with
36-
the matplotlib source code
66+
the matplotlib source code or
67+
http://matplotlib.sourceforge.net/license.html
3768

examples/simple_plot.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,9 @@
66

77
xlabel('time (s)')
88
ylabel('voltage (mV)')
9-
title('About as simple as it gets, folks')
9+
t = title('About as simple as it gets, folks', verticalalignment='bottom')
10+
t.set_y(0.99)
11+
1012
#grid(True)
1113
#set(gca(), 'xticks', (0,.2,.7))
1214
savefig('test2.eps')

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
data.extend(glob.glob('images/*.xpm'))
1010

1111
setup(name="matplotlib",
12-
version= '0.42',
12+
version= '0.42g',
1313
description = "Matlab style python plotting package",
1414
author = "John D. Hunter",
1515
author_email="jdhunter@ace.bsd.uchicago.edu",

0 commit comments

Comments
 (0)