Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 94f1f60

Browse files
committed
Merged revisions 4220-4243 via svnmerge from
http://matplotlib.svn.sf.net/svnroot/matplotlib/trunk/matplotlib ........ r4221 | dsdale | 2007-11-12 10:23:23 -0500 (Mon, 12 Nov 2007) | 3 lines option to disable building backend extension modules moved from setup.py to setup.cfg ........ r4222 | dsdale | 2007-11-12 10:36:08 -0500 (Mon, 12 Nov 2007) | 3 lines collect config package code in one location in setup.py, so it can easily be commented out for the next release. ........ r4223 | jdh2358 | 2007-11-12 11:31:28 -0500 (Mon, 12 Nov 2007) | 2 lines added some mlab imports back to pylab ........ r4231 | mdboom | 2007-11-12 13:10:25 -0500 (Mon, 12 Nov 2007) | 3 lines Provide way to access STIX "letterlike" symbols using LaTeX font commands. Add "stixsans" option to typeset math with sans-serif glyphs. ........ r4232 | mdboom | 2007-11-12 13:53:25 -0500 (Mon, 12 Nov 2007) | 4 lines [ 1691298 ] pcolormesh shows empty plot when plotting small time ranges Avoiding downcasting the data before we have to. ........ r4233 | mdboom | 2007-11-12 13:54:49 -0500 (Mon, 12 Nov 2007) | 4 lines [ 1660316 ] PolyInteractor verts call Should be calling get_verts() instead of .verts. (Thanks JPaul Rinehimer) ........ r4234 | mdboom | 2007-11-12 14:15:28 -0500 (Mon, 12 Nov 2007) | 3 lines [ 1638661 ] Toolbox Save button not saving file in GTK BE with Python2.5 ........ r4235 | mdboom | 2007-11-12 14:22:05 -0500 (Mon, 12 Nov 2007) | 3 lines [ 1545149 ] Problem rendering image in SVG backend Reading the image file should use binary mode. ........ r4236 | jdh2358 | 2007-11-12 15:08:11 -0500 (Mon, 12 Nov 2007) | 2 lines removed duplicate load import ........ r4237 | mdboom | 2007-11-12 15:27:33 -0500 (Mon, 12 Nov 2007) | 6 lines [ 1448342 ] FigureCanvasAgg.print_figure fails with StringIO 'file' Added support to write png to an arbitrary Python file-like object in the agg backend. Will continue to use faster C-only calls if the file-like object is in fact a file. Also, clean up exception handling in write_png. ........ r4238 | mdboom | 2007-11-12 15:45:15 -0500 (Mon, 12 Nov 2007) | 3 lines [ 1358130 ] Cannot get underscore in mathtext Fixed. ........ r4239 | dsdale | 2007-11-12 17:00:15 -0500 (Mon, 12 Nov 2007) | 2 lines expose remaining build options in setup.cfg. See setup.cfg for details ........ r4240 | dsdale | 2007-11-12 18:29:44 -0500 (Mon, 12 Nov 2007) | 2 lines updated default matplotlib.conf ........ r4241 | dsdale | 2007-11-12 18:38:12 -0500 (Mon, 12 Nov 2007) | 2 lines expose verbose build option in setup.cfg ........ r4242 | dsdale | 2007-11-13 08:50:29 -0500 (Tue, 13 Nov 2007) | 4 lines updated creation of default config files at build time: * modify matplotlib.conf based on available backends and setup.cfg * modify backend selection: SVG, Agg, TkAgg, WXAgg, GTK, GTKAgg, selection in setup.cfg ........ r4243 | mdboom | 2007-11-13 10:15:36 -0500 (Tue, 13 Nov 2007) | 2 lines All backends can write to file-like objects rather than only regular files. ........ svn path=/branches/transforms/; revision=4244
2 parents bb3ca0f + 086c046 commit 94f1f60

29 files changed

Lines changed: 972 additions & 1393 deletions

CHANGELOG

Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,47 @@
1+
2007-11-13 All backends now support writing to a file-like object, not
2+
just a regular file. savefig() can be passed a file-like
3+
object in place of a file path. - MGD
4+
5+
2007-11-13 Improved the default backend selection at build time:
6+
SVG -> Agg -> TkAgg -> WXAgg -> GTK -> GTKAgg. The last usable
7+
backend in this progression will be chosen in the default
8+
config file. If a backend is defined in setup.cfg, that will
9+
be the default backend - DSD
10+
11+
2007-11-13 Improved creation of default config files at build time for
12+
traited config package - DSD
13+
14+
2007-11-12 Exposed all the build options in setup.cfg. These options are
15+
read into a dict called "options" by setupext.py. Also, added
16+
"-mpl" tags to the version strings for packages provided by
17+
matplotlib. Versions provided by mpl will be identified and
18+
updated on subsequent installs - DSD
19+
20+
2007-11-12 Added support for STIX fonts. A new rcParam,
21+
mathtext.fontset, can be used to choose between:
22+
23+
'cm':
24+
The TeX/LaTeX Computer Modern fonts
25+
26+
'stix':
27+
The STIX fonts (see stixfonts.org)
28+
29+
'stixsans':
30+
The STIX fonts, using sans-serif glyphs by default
31+
32+
'custom':
33+
A generic Unicode font, in which case the mathtext font
34+
must be specified using mathtext.bf, mathtext.it,
35+
mathtext.sf etc.
36+
37+
Added a new example, stix_fonts_demo.py to show how to access
38+
different fonts and unusual symbols.
39+
40+
- MGD
41+
42+
2007-11-12 Options to disable building backend extension modules moved
43+
from setup.py to setup.cfg - DSD
44+
145
2007-11-09 Applied Martin Teichmann's patch 1828813: a QPainter is used in
246
paintEvent, which has to be destroyed using the method end(). If
347
matplotlib raises an exception before the call to end - and it

Makefile

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# Makefile for matplotlib
22

3-
PYTHON = /usr/bin/python2.5
3+
PYTHON = `which python`
44
VERSION = `${PYTHON} setup.py --version`
55

66
DISTFILES = API_CHANGES KNOWN_BUGS INSTALL README TODO license \
@@ -12,11 +12,11 @@ RELEASE = matplotlib-${VERSION}
1212

1313
clean:
1414
${PYTHON} setup.py clean;\
15-
rm -f *.png *.ps *.eps *.svg *.jpg
15+
rm -f *.png *.ps *.eps *.svg *.jpg *.pdf
1616
find . -name "_tmp*.py" | xargs rm -f;\
1717
find . \( -name "*~" -o -name "*.pyc" \) | xargs rm -f;\
18-
find examples \( -name "*.svg" -o -name "*.png" -o -name "*.ps" -o -name "*.eps" -o -name "*.tar" -o -name "*.gz" -o -name "*.log" -o -name "*.aux" -o -name "*.tex" \) | xargs rm -f
19-
find unit \( -name "*.png" -o -name "*.ps" -o -name "*.eps" \) | xargs rm -f
18+
find examples \( -name "*.svg" C-o -name "*.png" -o -name "*.pdf" -o -name "*.ps" -o -name "*.eps" -o -name "*.tar" -o -name "*.gz" -o -name "*.log" -o -name "*.aux" -o -name "*.tex" \) | xargs rm -f
19+
find unit \( -name "*.png" -o -name "*.ps" -o -name "*.pdf" -o -name "*.eps" \) | xargs rm -f
2020
find . \( -name "#*" -o -name ".#*" -o -name ".*~" -o -name "*~" \) | xargs rm -f
2121

2222

examples/mathtext_examples.py

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

77
stests = [
88
r'Kerning: AVA $AVA$',
9-
r'\$100.00 $\alpha$',
9+
r'\$100.00 $\alpha \_$',
1010
r'$\frac{\$100.00}{y}$',
1111
r'$x y$',
1212
r'$x+y\ x=y\ x<y\ x:y\ x,y\ x@y$',
@@ -49,7 +49,7 @@
4949
r'$\widehat{abc}\widetilde{def}$',
5050
r'$\Gamma \Delta \Theta \Lambda \Xi \Pi \Sigma \Upsilon \Phi \Psi \Omega$',
5151
r'$\alpha \beta \gamma \delta \epsilon \zeta \eta \theta \iota \lambda \mu \nu \xi \pi \kappa \rho \sigma \tau \upsilon \phi \chi \psi$',
52-
#ur'Generic symbol: $\u23ce \mathrm{\ue0f2 \U0001D538}$'
52+
ur'Generic symbol: $\u23ce \mathrm{\ue0f2 \U0001D538}$'
5353
]
5454

5555
from pylab import *
@@ -66,7 +66,7 @@ def doall():
6666
print (i, s)
6767
text(0.1, -i, s, fontsize=20)
6868

69-
#savefig('mathtext_example')
69+
savefig('mathtext_examples')
7070
#close('all')
7171
show()
7272

examples/stix_fonts_demo.py

Lines changed: 54 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,54 @@
1+
#!/usr/bin/env python
2+
3+
import os, sys, re
4+
5+
import gc
6+
7+
stests = [
8+
r'$\mathcircled{123} \mathrm{\mathcircled{123}} \mathbf{\mathcircled{123}}$',
9+
r'$\mathsf{Sans \Omega} \mathrm{\mathsf{Sans \Omega}} \mathbf{\mathsf{Sans \Omega}}$',
10+
r'$\mathtt{Monospace}$',
11+
r'$\mathcal{CALLIGRAPHIC}$',
12+
r'$\mathbb{Blackboard \pi}$',
13+
r'$\mathrm{\mathbb{Blackboard \pi}}$',
14+
r'$\mathbf{\mathbb{Blackboard \pi}}$',
15+
r'$\mathfrak{Fraktur} \mathbf{\mathfrak{Fraktur}}$',
16+
r'$\mathscr{Script}$',
17+
ur'Direct Unicode: $\u23ce \mathrm{\ue0f2 \U0001D538}$'
18+
]
19+
20+
from pylab import *
21+
22+
def doall():
23+
tests = stests
24+
25+
figure(figsize=(8, (len(tests) * 1) + 2))
26+
plot([0, 0], 'r')
27+
grid(False)
28+
axis([0, 3, -len(tests), 0])
29+
yticks(arange(len(tests)) * -1)
30+
for i, s in enumerate(tests):
31+
print (i, s)
32+
text(0.1, -i, s, fontsize=32)
33+
34+
savefig('stix_fonts_example')
35+
#close('all')
36+
show()
37+
38+
if '--latex' in sys.argv:
39+
fd = open("stix_fonts_examples.ltx", "w")
40+
fd.write("\\documentclass{article}\n")
41+
fd.write("\\begin{document}\n")
42+
fd.write("\\begin{enumerate}\n")
43+
44+
for i, s in enumerate(stests):
45+
s = re.sub(r"(?<!\\)\$", "$$", s)
46+
fd.write("\\item %s\n" % s)
47+
48+
fd.write("\\end{enumerate}\n")
49+
fd.write("\\end{document}\n")
50+
fd.close()
51+
52+
os.system("pdflatex stix_fonts_examples.ltx")
53+
else:
54+
doall()

lib/configobj.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,7 @@ def enumerate(obj):
109109
True, False = 1, 0
110110

111111

112-
__version__ = '4.4.0'
112+
__version__ = '4.4.0-mpl'
113113

114114
__revision__ = '$Id: configobj.py 156 2006-01-31 14:57:08Z fuzzyman $'
115115

lib/dateutil/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,4 +6,4 @@
66
"""
77
__author__ = "Gustavo Niemeyer <[email protected]>"
88
__license__ = "PSF License"
9-
__version__ = "1.2"
9+
__version__ = "1.2-mpl"

0 commit comments

Comments
 (0)