Skip to content

Merge maintenance branches into master #5

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 325 commits into from
Closed
Show file tree
Hide file tree
Changes from 1 commit
Commits
Show all changes
325 commits
Select commit Hold shift + click to select a range
60f07d8
fixed a wx bug
jdh2358 May 22, 2008
d9e2ced
Getting mlab.py in sync with the trunk
sameerd May 23, 2008
2881611
added pil support to imread
jdh2358 May 25, 2008
579f9cd
fixed a npy np mixup in image
jdh2358 May 25, 2008
99f3a36
added a line vertex selector widget
jdh2358 May 26, 2008
376b438
added a line vertex selector widget
jdh2358 May 26, 2008
d5579d9
fixed an empty vertex list bug
jdh2358 May 26, 2008
84eb65b
Fix rendering of composite glyphs in Type 3 conversion (particularly
mdboom May 28, 2008
9c5d7a8
added keywords to configure sliders for sf patch 1866207
jdh2358 May 28, 2008
1cba068
Fix PDFs that crash xpdf and ghostscript when two-byte codepoints are
mdboom May 28, 2008
86ca40d
Adding CHANGELOG entry and scary comment about what was going wrong.
mdboom May 28, 2008
e83ae91
Implement path clipping in SVG backend.
mdboom May 29, 2008
3f66e1c
fixed two bugs in texmanager: dvipng version comparison, and
ddale May 29, 2008
a5a8502
added clippath support for ps
jdh2358 May 29, 2008
b88868e
added clippath support for ps
jdh2358 May 29, 2008
1e10bbe
imread via pil now returns lumininance or rgb if possible
jdh2358 May 29, 2008
790c7da
tagging new version
cmoad May 29, 2008
562ec2c
minor rev bump
cmoad May 30, 2008
44df377
added support for None for dvipng and removed the sqrt in the hack wh…
jdh2358 May 30, 2008
99c8dc0
removed debug print statement
jdh2358 May 30, 2008
06031ee
Fix crash in Agg drawing collections with no fill and/or edge color.
mdboom Jun 2, 2008
c399a94
added switch_backend bugfix from sf patch 1979402
jdh2358 Jun 2, 2008
2a311a4
Docstring changes
sameerd Jun 4, 2008
b586ec5
try to handle xaxis_date more gracefully when no data has been added
jdh2358 Jun 4, 2008
b0921b9
fixed some bugs introduced in the xaxis_date fix
jdh2358 Jun 4, 2008
42251b9
fixed classic toolbar bugs
jdh2358 Jun 5, 2008
e9c0464
don't install traits
ddale Jun 9, 2008
b9092cb
forgot CHANGELOG message
ddale Jun 9, 2008
3323909
Support hold in quiver, contour, contourf
efiring Jun 12, 2008
8c02ec2
Fix STIX fonts on narrow Unicode platforms.
mdboom Jun 17, 2008
495c8d3
Make set_default_size set the variable actually being used elsewhere
efiring Jun 20, 2008
8aea540
Don't try to render a line collection with no segments
efiring Jun 20, 2008
28a0a21
improve mlab.load docstring to address bug 1901536
ddale Jun 21, 2008
db6b57d
changed wx backend to respect extension over gui dialog default type
jdh2358 Jun 22, 2008
a17668f
bumped the version num
jdh2358 Jun 22, 2008
1ee56a8
minor rev bump
cmoad Jun 23, 2008
5fa34fc
Fix direction of horizontal and vertical hatching.
mdboom Jun 26, 2008
491693c
Oops in last commit
mdboom Jun 26, 2008
4af4116
Fix mathtext parsing bug.
mdboom Jun 27, 2008
bf8769a
removed Qt4's NavigationToolbar2.destroy method
ddale Jun 30, 2008
84efa33
Fix bug using autolegend with LineCollection.
mdboom Jul 2, 2008
3536249
Improve mathtext superscript placement.
mdboom Jul 8, 2008
caf170e
Improve mathtext radical rendering
mdboom Jul 9, 2008
bf8b763
Handle markeredgecolor=None etc. consistently
efiring Jul 12, 2008
c5c511e
improve error reporting in texmanager
ddale Jul 17, 2008
25c2c95
added Tuukka's YAArrow fix for horiz and vertical lines
jdh2358 Jul 18, 2008
49e8253
removed mlab2 functions
jdh2358 Jul 24, 2008
f95a59a
deprecated mlab2 functions from mlab
jdh2358 Jul 24, 2008
5263e01
deprecated mlab2 functions from mlab
jdh2358 Jul 24, 2008
e9e31dc
updated api changes and changelog to reflect mlab2 deprecation
jdh2358 Jul 24, 2008
4a5a4bb
bumped version num
jdh2358 Jul 24, 2008
752f9da
Fixing edge cases in rec_join in branch
sameerd Jul 24, 2008
7d5461d
Backport memory leak fixes in _ttconv.cpp
mdboom Aug 1, 2008
a57332c
Fix locale problems in SVG backend (thanks, Mathieu Leplatre for repo…
mdboom Aug 25, 2008
b474cd6
Changed full arrows slightly to avoid an xpdf rendering
jkseppan Sep 7, 2008
15a4174
Fix backticks in PS output.
mdboom Sep 11, 2008
72c10b4
Fix problem with AFM files that don't specify the font's full name or…
jkseppan Oct 5, 2008
2f6ee5e
Fix bug in zoom rectangle with twin axes
mdboom Nov 5, 2008
c22ad48
fixed poly between
jdh2358 Nov 21, 2008
75f8bfa
fixed poly below
jdh2358 Nov 21, 2008
cc73d49
Added scatter_hist example
mmetz-bn Feb 18, 2009
7c5096c
Applied Fernando Perez's fix for LaTeX output.
mdboom Feb 23, 2009
9b9a50a
Add credit to Allen Haldane in comments.
mdboom Feb 23, 2009
73239af
C++ standards compliance for use with Sun C++ compiler. These should…
mdboom Feb 23, 2009
8ae4265
Fix crashes with empty data and step draw style.
mdboom Feb 25, 2009
345d018
Support image clipping in the pdf backend
jkseppan Feb 26, 2009
001365b
Fix glyph alignment with STIX mathtext
mdboom Feb 27, 2009
69aa275
Fix bug in doc build.
mdboom Mar 2, 2009
8a87b22
Fix plotting() docstring.
mdboom Mar 3, 2009
14f2569
Add workaround for change in handling of absolute paths in image dire…
mdboom Mar 3, 2009
3e8c687
Fix for Python 2.4 compatibility.
mdboom Mar 4, 2009
ae28cb2
Remove references to handle graphics;
efiring Mar 7, 2009
f254fe1
Ensure wx version >= 2.8; Sandro Tosi patch plus change to backend
efiring Mar 11, 2009
d77e059
Fix bug in alpha handling.
efiring Mar 17, 2009
b371447
In contourf, don't accidentally set the edgecolor.
efiring Mar 17, 2009
a89f782
Fix race condition in tempfile creation in PS backend. If two mpl pr…
mdboom Mar 18, 2009
a69d5b9
Fix wavy baseline with STIX fonts -- again.
mdboom Mar 19, 2009
c551a41
Fix bug in Cairo backend related to clipping -- thanks Nathaniel Smith
mdboom Mar 19, 2009
ae80997
Fix typo. Thanks to Sandro Tosi.
dopplershift Mar 23, 2009
6e31727
Remove some global caches in order to remove a theoretical threading …
mdboom Mar 31, 2009
3b3bd86
Fix bug when specifying both scale and label in the axes constructor.…
mdboom Mar 31, 2009
5916eec
Fix putmask update -- use np.ma.filled instead.
mdboom Mar 31, 2009
eabbb36
Fix PatchCollection bug 2723527; thanks to Thomas Robitaille
efiring Apr 5, 2009
244812e
Fix PatchCollection bug 2732455 by letting to_rgba handle 'none'
efiring Apr 5, 2009
e2c86e4
pngsuite test: plot images in grayscale if the input array is 2 dimen…
astraw Apr 5, 2009
bde58aa
read 12 bit PNGs (patch from Tobias Wood)
astraw Apr 5, 2009
bda0a8b
trivial: remove trailing whitespace from source code
astraw Apr 5, 2009
3c8fe93
trivial: remove outdated comment
astraw Apr 5, 2009
82880e6
update changelog about Tobias' patch
astraw Apr 5, 2009
3a20ff9
texmanager.make_dvi now raises an error if LaTeX failed to create an …
jkseppan Apr 6, 2009
1ccd6d2
The pdf backend now escapes newlines and linefeeds in strings - fixes…
jkseppan Apr 6, 2009
152c003
added python 2.6 / tcltk 8.5 check
cmoad Apr 11, 2009
10e4c5a
minor rev bump
cmoad Apr 13, 2009
b740e53
fixed csv2rec bug referenced in sf bug 2745173
jdh2358 Apr 13, 2009
c484ac2
fix for tkagg filextension bug reported by fperez
jdh2358 Apr 15, 2009
07ef0ff
force a copy of the colormap input data
jdh2358 Apr 19, 2009
8baaa16
Fix solaris builds where "putchar" is a macro.
mdboom Apr 30, 2009
25e88d3
[2723470] UnboundLocalError in ticker.py
mdboom May 4, 2009
aa72bc6
Fix bug that Text.Annotation is still drawn while set to not visible
leejjoon May 4, 2009
cdd5673
tagging changelog for release
jdh2358 May 17, 2009
71d51af
removed some deprecation warnings from mlab
jdh2358 May 17, 2009
654417c
tag changelog for release
jdh2358 May 17, 2009
2a51f4a
updated url in release doc
jdh2358 May 17, 2009
6546a60
Fix bug(#2749174) that some properties of minor ticks are not conserved.
leejjoon May 17, 2009
a79d875
Bugfix in FltkAgg backend, thanks to Daniel
mdboom Jun 3, 2009
e1ee001
remove gw32c from setupext
jdh2358 Jun 10, 2009
d013280
Fix PDFs for use with ReportLab's pedantic parser
mdboom Jun 12, 2009
3a670b3
fix sf bug 2806283 (patch by Joonas Paalasmaa)
leejjoon Jun 19, 2009
2bc67ef
fixed axes.scatter bug that circular symbol style is ignored
leejjoon Jun 21, 2009
f830e37
Fix out-of-memory errors leading to segfaults
mdboom Jul 1, 2009
fac7ef9
applied osx setpext patch from sf #2818964
jdh2358 Jul 11, 2009
8e977f9
added minor kwarg to get_?ticklines and applied ginpu patch
jdh2358 Aug 30, 2009
0f125a7
applied Gael's ginput patch
jdh2358 Aug 30, 2009
7d4f37a
some unit cleanup; fix sf bug 2846058
jdh2358 Aug 30, 2009
3df6dfa
fix sf bug #2839919
leejjoon Aug 31, 2009
5051ae7
Update barb_demo.py with an example using masked arrays.
dopplershift Aug 31, 2009
f3dc262
Pull _parse_args out of Quiver and Barbs classes, as we have multiple…
dopplershift Aug 31, 2009
c5c1d65
Use atleast_1d instead of asanyarray. This allows passing in scalars…
dopplershift Aug 31, 2009
3e91b78
fix a bug in axes_grid.inset_locator.inset_axes
leejjoon Sep 4, 2009
42aa8a8
spines: fix 'axes' position bug (closes SF#2852168)
astraw Sep 5, 2009
13375bf
fix a bug in lib/matplotlib/bezier.py
leejjoon Sep 7, 2009
0ffefca
Include 'top' keyword argument in docstring for Figure.subplots_adjus…
dopplershift Sep 9, 2009
60be8fd
Fix some documentation warnings.
mdboom Sep 9, 2009
dc4908a
fix a bug in Line2D.draw method that produces invalid svg when the li…
leejjoon Sep 10, 2009
cfbcc83
bugfix: bounds checking in hexbin with extent specified (SF#2856228)
astraw Sep 11, 2009
569c6bb
minor tweaks to licensing devel doc
jdh2358 Sep 11, 2009
b152212
Fix bug in quiver angle kwarg, found when input angle array is not 1-D
efiring Sep 11, 2009
4ceb3fa
Backported quiver bug fix from trunk
efiring Sep 11, 2009
da75707
tagging for 99.1 release candiate
jdh2358 Sep 12, 2009
dea1147
Minor doc fixes
mdboom Sep 14, 2009
dc5175f
Don't fail on AFM files containing floating-point bounding boxes
jkseppan Sep 15, 2009
f7a2a21
Don't use wxversion with py2exe; fix by Werner Bruhin
efiring Sep 16, 2009
c8edcdd
Fix clip path in SVG backend.
mdboom Sep 17, 2009
30ba93f
Fix bug whereby non-finite values in the path were not being ignored …
mdboom Sep 17, 2009
2543b01
add make.osx to manifest
jdh2358 Sep 17, 2009
6354764
fix the legend bug that dash-style for LineCollections handle is set …
leejjoon Sep 17, 2009
55a5cfa
Fix garbled getp output
efiring Sep 18, 2009
1a987aa
Fix bug where subslicing was cutting polar lines off (because it was …
mdboom Sep 18, 2009
9c7ee1e
Fix bug in maxdict when replacing an existing item
efiring Sep 19, 2009
04198bf
Fix bug in mlab.demean, with axis = -1
efiring Sep 19, 2009
6688edb
Fix bug in bar affecting autoscaling with log axis
efiring Sep 19, 2009
737acdf
Prevent exception in case of missing height and depth information in …
jkseppan Sep 20, 2009
ab6cba9
Fix off-by-one error in dviread.Tfm
jkseppan Sep 20, 2009
8fd76a5
Fix usetex spacing errors in pdf backend.
jkseppan Sep 20, 2009
364d3e4
Fix 'variable used before defined' errors in backend_pdf.py building …
mdboom Sep 21, 2009
2fdec7b
Correct typo of subtitle() -> suptitle().
dopplershift Sep 21, 2009
b867cc3
tag for 0.99.1 release
jdh2358 Sep 21, 2009
027891b
try statically linking in the deps for OSX
jdh2358 Sep 24, 2009
77ddd83
applied a fix for sf bug 2865490; is there something more elegant?
jdh2358 Sep 24, 2009
b27a3bc
Clip markers in draw_marker outside of the image rectangle with an ex…
mdboom Sep 24, 2009
5f53c0a
Fix bug in quiver handling of masked U, V
efiring Sep 25, 2009
3c11f76
Fix Grouper docstring -- it only supports weak-referenceable objects.
mdboom Sep 30, 2009
44b00fe
Fix alpha of Shadow patch.
mdboom Oct 1, 2009
02ea0e6
image created by imshow support remove method
leejjoon Oct 5, 2009
c337d9e
Tk directory-finding patch by Benjamin Drung.
efiring Oct 5, 2009
c233d0f
Add more platforms to setupext.py; patch by Benjamin Drung
efiring Oct 5, 2009
5b129b7
Don't do "make.py clean" in terms of svn-clean, since that doesn't wo…
mdboom Oct 6, 2009
c42d839
Don't perform path simplification when hatch is drawn.
mdboom Oct 9, 2009
d94b421
docstring fixup: LinearSegmentedColormap.from_list
efiring Oct 11, 2009
8c6bd9a
allow already transformed clip path in artist set_clip_path()
astraw Oct 11, 2009
eac5520
imshow: only apply axes patch clipping if image doesn't clip itself
astraw Oct 11, 2009
a67ea63
Don't simplify hatched paths in PDF, PS and SVG backends.
mdboom Oct 12, 2009
b488354
fix plot_directive.py that generated incorrect links for some cases
leejjoon Oct 12, 2009
daeeebb
Add AutoDateFormatter and AutoDateLocator to __all__ and to the modul…
dopplershift Oct 14, 2009
268fd73
fix Text.get_prop_tup omitting _rotation_mode. patch by Stan West
leejjoon Oct 16, 2009
f8fcc7f
fix a bug in plot_directive
leejjoon Oct 19, 2009
0b23945
Fix bug in simplification code that was clipping peaks.
mdboom Oct 21, 2009
166f870
Fix path simplification so the path always starts with a MOVETO.
mdboom Oct 22, 2009
9e09883
Support \# in mathtext.
mdboom Oct 23, 2009
3b149f1
axes_divider.py : fix a bug that axes has a wrong size when pack_star…
leejjoon Oct 25, 2009
f39e082
[2890345] pylab.thetagrids() does not accept fmt
mdboom Nov 2, 2009
08d18a5
[2890979] Close paths correctly in PolyCollection
mdboom Nov 3, 2009
6b7152f
[2880836] Save from toolbar changes directory with WX backend
mdboom Nov 3, 2009
d3bb176
[2889193] Rasterized output offset in pdf and ps
mdboom Nov 3, 2009
6e1071c
backport afm fix to branch
jdh2358 Nov 6, 2009
3b91de3
Add support for \widebar{} in mathtext (Thanks Sean Arms)
mdboom Nov 6, 2009
8c256b5
[2853659] Patch to fix EMF backend
mdboom Nov 12, 2009
4d4df54
Fix Normalize bug: ensure scalar output for scalar input.
efiring Nov 16, 2009
1751afd
Fix plot directive so it handles source files in various encodings.
mdboom Nov 18, 2009
f6c466e
make IndexFormatter derive from Formatter
jdh2358 Nov 23, 2009
63a39a0
[2902715] artist.set_clip_path does not handle tuple
mdboom Nov 24, 2009
1baad1b
Fix SF-2903596 on the 0.99.x branch
mdboom Nov 30, 2009
015b530
Fix bug in usage of "contains"
mdboom Nov 30, 2009
d12f935
[2906157] Let sphinx reference matplotlib-created plots (backport)
mdboom Dec 1, 2009
7bacaa6
[2903460] _path.pyd crashes in 0.99.1.win32-py2.6 on PIII CPU
mdboom Dec 3, 2009
80451bc
[2896454] subscripts and \mathrm don't get along, aka the long-standi…
mdboom Dec 3, 2009
1131d05
Mplot3d: fix scatter3d markers bug
heeres Dec 10, 2009
92181af
add mpl book to index sidebar
jdh2358 Dec 16, 2009
063dd0a
[2916753] Wrong API signature- yscale
mdboom Dec 31, 2009
8f703d3
Fix bug in PDF, PS, SVG and OS-X backends: do not simplify filled paths.
mdboom Jan 4, 2010
9673250
Fix doc 'clean'
mdboom Jan 4, 2010
c492ff8
update annotate documentation to explain *annotation_clip* parameter
leejjoon Jan 19, 2010
64b3b06
Fix for libpng-1.4 compatibility
mdboom Feb 8, 2010
24ccb6e
added Ariels csd patch for proper scaling at the dc component
jdh2358 Feb 8, 2010
4b2b829
fix a bug in Text._get_layout that returns an incorrect information f…
leejjoon Feb 16, 2010
90bf7a7
fix setters for regular polygon
jdh2358 Feb 22, 2010
19873d1
Backporting numpy version check fix to 0.99 branch
mdboom Feb 22, 2010
2ae4682
Fix offset_copy: the fig argument should be optional.
mdboom Feb 26, 2010
c13a681
added favicon
jdh2358 Mar 3, 2010
4f6f588
fix svnmerge download instructions
jdh2358 Mar 3, 2010
669153a
applied Mattias get_bounds patch
jdh2358 Mar 3, 2010
31f0f09
added support for favicon in docs build
jdh2358 Mar 3, 2010
94b7538
fix arguments of allow_rasterization.draw_wrapper
leejjoon Mar 3, 2010
9961ea4
fix a bug in SubplotDivider.new_horizontal that gave incrroect result…
leejjoon Mar 5, 2010
28c1572
dates.py: fix num2jul, jul2num; fixes bug 2963391; thanks to G. Licht…
efiring Mar 8, 2010
08d6b40
tagging for branch release candidate
jdh2358 Mar 9, 2010
f304ef5
remove micromicro version num
jdh2358 Mar 9, 2010
cfe5ca6
fix the bug that handles for scatter are incorrectly set when dpi!=72…
leejjoon Mar 13, 2010
3249383
fix ticker docstring bug
jdh2358 Mar 15, 2010
b60d7d8
patches.py: correct docstring in set_color
efiring Mar 16, 2010
bb8675c
Add 3d surface plot example (radial coordinates)
heeres Mar 19, 2010
da95d9e
added get_children offsetTex patch; closes sf 3001208
jdh2358 May 19, 2010
d559f6b
update version num for release
jdh2358 May 30, 2010
76448c8
fix the web page archive link to point to sf rather than nabble
jdh2358 Jun 4, 2010
1044127
Fixed typo in mplot3d tutorial
WeatherGod Dec 13, 2010
795724b
NonUniformImage only supports nearest and bilinear interpolation, so …
mdboom Dec 14, 2010
95b98b5
Fix memory leak in text layout handling.
mdboom Dec 14, 2010
9000401
[3137172] Fix cyclical import problem.
mdboom Dec 14, 2010
d4583de
Fix Unicode encoding error saving SVGs with Unicode characters on som…
mdboom Dec 17, 2010
1c12e35
[3138764] Small speed fix (submitted by notmuchtotell)
mdboom Dec 21, 2010
d8ee424
[3053296] backend_qt4 Toolbar2QT string format fix
mdboom Dec 21, 2010
f682729
revocer the negative coordinates support of annotation
leejjoon Dec 29, 2010
4c43a08
bumped version number to 1.0.1rc
jdh2358 Jan 2, 2011
cc62a7d
update pytz to 2010o
jdh2358 Jan 3, 2011
c2b3c1d
apply patch by Paul Ivanov to move twinx second axis offset to the RHS
efiring Jan 4, 2011
2f86ae7
Bugfix: invert_xaxis and invert_yaxis now notify observers. Closes 31…
efiring Jan 4, 2011
ea7344e
Finance: change volume to float; close 3108059
efiring Jan 4, 2011
42b8388
Replace MacOS.WMAvailable, as the MacOS module is not available with …
mdehoon Jan 5, 2011
f954a51
fix rc file defaults issue for docs; python 2.4 compliance for formla…
jdh2358 Jan 5, 2011
ea2292e
Applying a similar fix to r8873 which seemed to only have been applie…
WeatherGod Jan 5, 2011
79537dc
remove unused params from doc rc; add comment on examples.download pa…
jdh2358 Jan 5, 2011
85217d6
bumpt the rc version num
jdh2358 Jan 5, 2011
15fa214
fix the plot directive
jdh2358 Jan 6, 2011
a9f3f3a
tag 1.0.1 for release
jdh2358 Jan 6, 2011
d21caa5
support relative paths in examples.directory
jdh2358 Jan 6, 2011
d8c134c
Fixing a bug. Due to a race condition, the view of a closing window c…
mdehoon Jan 8, 2011
7c9dd2c
Fix eps distillation bbox bug; closes 3032385
efiring Jan 12, 2011
e335d12
Backport 8657 from trunk; patch by C. Gohlke; closes 3151544
efiring Jan 12, 2011
63c6868
Add missing show() to example; patch by C. Gohlke; closes 3151545
efiring Jan 12, 2011
75f6f96
Apply Laurent Dufreshou's bug fix to animiation_blit_qt4.py. Closes 2…
efiring Jan 13, 2011
c02a3ae
[3154456] confirm file overwrite (gtk)
mdboom Jan 13, 2011
c5ccff9
Fix doc build with recent versions of Sphinx (reported by Sandro Tosi)
mdboom Jan 14, 2011
5114b14
Change pcolor and contourf default antialiasing to False; closes 3151…
efiring Jan 16, 2011
5cee379
Increase tolerance in pcolormesh test.
mdboom Jan 18, 2011
bfe6032
Fixes colors normalization with 'under' colors in LinearSegmentedColo…
WeatherGod Jan 21, 2011
92814db
Fixing problem where reversed colormaps of LinearSegmentedColormaps w…
WeatherGod Jan 22, 2011
9e89b76
[3167200] Use from PIL import Image
mdboom Feb 1, 2011
8ce6b67
bug: xlim, ylim with no arguments should not affect autoscaling
efiring Feb 6, 2011
3922443
Quick workaround for dviread bug #3175113
jkseppan Feb 7, 2011
d5b8f54
Merge all maintenance branches into master
jkseppan Feb 20, 2011
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
added support for None for dvipng and removed the sqrt in the hack wh…
…ich I think is wrong

svn path=/branches/v0_91_maint/; revision=5329
  • Loading branch information
jdh2358 committed May 30, 2008
commit 44df37768b31e9d707da784e546ea4461b0ee14c
12 changes: 11 additions & 1 deletion lib/matplotlib/rcsetup.py
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,16 @@ def validate_bool(b):
else:
raise ValueError('Could not convert "%s" to boolean' % b)

def validate_bool_maybe_none(b):
'Convert b to a boolean or raise'
if type(b) is str:
b = b.lower()
if b=='none': return None
if b in ('t', 'y', 'yes', 'on', 'true', '1', 1, True): return True
elif b in ('f', 'n', 'no', 'off', 'false', '0', 0, False): return False
else:
raise ValueError('Could not convert "%s" to boolean' % b)

def validate_float(s):
'convert s to float or raise'
try: return float(s)
Expand Down Expand Up @@ -339,7 +349,7 @@ def __call__(self, s):
'text.usetex' : [False, validate_bool],
'text.latex.unicode' : [False, validate_bool],
'text.latex.preamble' : [[''], validate_stringlist],
'text.dvipnghack' : [False, validate_bool],
'text.dvipnghack' : [None, validate_bool_maybe_none],
'text.fontstyle' : ['normal', str],
'text.fontangle' : ['normal', str],
'text.fontvariant' : ['normal', str],
Expand Down
11 changes: 9 additions & 2 deletions lib/matplotlib/texmanager.py
Original file line number Diff line number Diff line change
Expand Up @@ -334,7 +334,12 @@ def get_grey(self, tex, fontsize=None, dpi=None):
pngfile = self.make_png(tex, fontsize, dpi)
X = readpng(os.path.join(self.texcache, pngfile))

if self._dvipng_hack_alpha or rcParams['text.dvipnghack']:
if rcParams['text.dvipnghack'] is not None:
hack = rcParams['text.dvipnghack']
else:
hack = self._dvipng_hack_alpha
print 'using hack', hack
if hack:
# hack the alpha channel
# dvipng assumed a constant background, whereas we want to
# overlay these rasters with antialiasing over arbitrary
Expand All @@ -356,7 +361,9 @@ def get_grey(self, tex, fontsize=None, dpi=None):
#
# Since the foreground is black (0) and the background is
# white (1) this reduces to red = 1-alpha or alpha = 1-red
alpha = npy.sqrt(1-X[:,:,0])
#alpha = npy.sqrt(1-X[:,:,0]) # should this be sqrt here?
alpha = 1-X[:,:,0]

else:
alpha = X[:,:,-1]

Expand Down
11 changes: 8 additions & 3 deletions matplotlibrc.template
Original file line number Diff line number Diff line change
Expand Up @@ -147,9 +147,14 @@ numerix : %(numerix)s # numpy, Numeric or numarray
# beware of package collisions: color, geometry, graphicx,
# type1cm, textcomp. Adobe Postscript (PSSNFS) font packages
# may also be loaded, depending on your font settings
#text.dvipnghack : False # some versions of dvipng don't handle
# alpha channel properly. Use True to correct and flush
# ~/.matplotlib/tex.cache before testing

#text.dvipnghack : None # some versions of dvipng don't handle alpha
# channel properly. Use True to correct
# and flush ~/.matplotlib/tex.cache
# before testing and False to force
# correction off. None will try and
# guess based on your dvipng version

#text.markup : 'plain' # Affects how text, such as titles and labels, are
# interpreted by default.
# 'plain': As plain, unformatted text
Expand Down