File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1818
1919 * allow save to file handle
2020
21- * allow load from png
22-
2321 * integrate screen dpi w/ ppi and text
2422
2523INSTALLING
26-
27- REQUIREMENTs
28-
29- python2.2+
30- Numeric 22+
31- agg2 (see below)
32- freetype 2
33- libpng
34- libz
35-
36- Install AGG2 (cut and paste below into xterm should work)
37-
38- wget http://www.antigrain.com/agg2.tar.gz
39- tar xvfz agg2.tar.gz
40- cd agg2
41- make
42-
43- (Optional) if you want to make the examples:
44- cd examples/X11
45- make
46-
47- Installing backend_agg
48-
49-
50- Edit setup.py: change aggsrc to point to the agg2 src tree and
51- replace if 0: with if 1: in the backend_agg section
52-
53- Then just do the usual thing: python setup.py build
54-
55- Please let me know if you encounter build problems, and tell me
56- platform, gcc version, etc... Currently the paths in setupext.py
57- assume as linux like filesystem (eg X11 include dir, location of
58- libttf, etcc) so you may need to tweak these
59-
60- Using agg backend
61-
62- python somefile.py -dAgg
63-
64- or
65-
66- import matplotlib
67- matplotlib.use('Agg')
68-
69-
7024"""
7125from __future__ import division
7226import os , sys , weakref
You can’t perform that action at this time.
0 commit comments