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

Skip to content

Commit 2e3ed53

Browse files
committed
added rkerns texmanager patch
svn path=/trunk/matplotlib/; revision=1823
1 parent 4e795c9 commit 2e3ed53

5 files changed

Lines changed: 29 additions & 4 deletions

File tree

CHANGELOG

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
New entries should be added at the top
22

3+
2005-10-04 Added rkern's texmanager patch
4+
35
2005-09-25 contour.py modified to use a single ContourSet class
46
that handles filled contours, line contours, and labels;
57
added keyword arg (clip_ends) to contourf.

MANIFEST

Lines changed: 14 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ CXX/Extensions.hxx
1919
CXX/IndirectPythonInterface.cxx
2020
CXX/IndirectPythonInterface.hxx
2121
CXX/Objects.hxx
22+
CXX/Version.hxx
2223
CXX/cxx_extensions.cxx
2324
CXX/cxxextensions.c
2425
CXX/cxxsupport.cxx
@@ -294,11 +295,16 @@ examples/agg_test.py
294295
examples/alignment_test.py
295296
examples/anim.py
296297
examples/anim_tk.py
298+
examples/animation_blit.py
299+
examples/animation_blit_fltk.py
300+
examples/animation_blit_tk.py
301+
examples/animation_blit_wx.py
297302
examples/anscombe.py
298303
examples/arctest.py
299304
examples/axes_demo.py
300305
examples/axes_props.py
301306
examples/axhspan_demo.py
307+
examples/axis_equal_demo.py
302308
examples/backend_driver.py
303309
examples/bar_stacked.py
304310
examples/barchart_demo.py
@@ -421,11 +427,13 @@ examples/simple_plot.py
421427
examples/specgram_demo.py
422428
examples/stem_plot.py
423429
examples/stock_demo.py
430+
examples/strip_chart_demo.py
424431
examples/subplot_demo.py
425432
examples/subplot_toolbar.py
426433
examples/subplots_adjust.py
427434
examples/system_monitor.py
428435
examples/table_demo.py
436+
examples/test.py
429437
examples/tex_demo.py
430438
examples/text_handles.py
431439
examples/text_rotation.py
@@ -454,6 +462,7 @@ examples/widgets/buttons.py
454462
examples/widgets/check_buttons.py
455463
examples/widgets/cursor.py
456464
examples/widgets/radio_buttons.py
465+
examples/widgets/rectangle_selector.py
457466
examples/widgets/sliders.py
458467
examples/widgets/span_selector.py
459468
fonts/afm/cmex10.afm
@@ -580,6 +589,8 @@ lib/dateutil/rrule.py
580589
lib/dateutil/tz.py
581590
lib/matplotlib/.cvsignore
582591
lib/matplotlib/__init__.py
592+
lib/matplotlib/__init__.py.old
593+
lib/matplotlib/__init__.py.orig
583594
lib/matplotlib/_contour.py
584595
lib/matplotlib/_image.py
585596
lib/matplotlib/_mathtext_data.py
@@ -592,7 +603,6 @@ lib/matplotlib/axes.py
592603
lib/matplotlib/axes.py.orig
593604
lib/matplotlib/axis.py
594605
lib/matplotlib/axis.py.orig
595-
lib/matplotlib/axis.py.rej
596606
lib/matplotlib/backend_bases.py
597607
lib/matplotlib/cbook.py
598608
lib/matplotlib/cm.py
@@ -601,7 +611,6 @@ lib/matplotlib/colors.py
601611
lib/matplotlib/contour.py
602612
lib/matplotlib/dates.py
603613
lib/matplotlib/figure.py
604-
lib/matplotlib/figure.py.orig
605614
lib/matplotlib/finance.py
606615
lib/matplotlib/font_manager.py
607616
lib/matplotlib/image.py
@@ -614,6 +623,7 @@ lib/matplotlib/pylab.py
614623
lib/matplotlib/pyparsing.py
615624
lib/matplotlib/table.py
616625
lib/matplotlib/texmanager.py
626+
lib/matplotlib/texmanager.py.orig
617627
lib/matplotlib/text.py
618628
lib/matplotlib/ticker.py
619629
lib/matplotlib/transforms.py
@@ -1276,6 +1286,7 @@ lib/pytz/zoneinfo/US/__init__.py
12761286
license/DATEUTIL_LICENSE.txt
12771287
license/LICENSE
12781288
license/LICENSE_BAKOMA
1289+
license/LICENSE_COLORBREWER
12791290
license/LICENSE_PAINT
12801291
license/LICENSE_PIL
12811292
license/LICENSE_enthought.txt
@@ -1300,6 +1311,7 @@ src/_tkagg.cpp
13001311
src/_transforms.cpp
13011312
src/_transforms.h
13021313
src/_windowing.cpp
1314+
src/_wxagg.cpp
13031315
src/agg.cxx
13041316
src/cntr.c
13051317
src/ft2font.cpp

lib/matplotlib/axes.py

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
'jdh'
21
from __future__ import division, generators
32

43
import math, sys
@@ -3808,6 +3807,13 @@ def __init__(self, fig, *args, **kwargs):
38083807

38093808
self.update_params()
38103809

3810+
def change_geometry(self, numrows, numcols, num):
3811+
'change subplot geometry, eg from 1,1,1 to 2,2,3'
3812+
self._rows = rows
3813+
self._cols = cols
3814+
self._num = num
3815+
self.update_params()
3816+
38113817
def update_params(self):
38123818
'update the subplot position from fig.subplotpars'
38133819

lib/matplotlib/backend_bases.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ def draw_image(self, x, y, im, bbox):
5252
"""
5353
raise NotImplementedError
5454

55-
def _draw_markers(self, gc, path, rgbFace, x, y, trans):
55+
def _draw_markers(self, bgc, path, rgbFace, x, y, trans):
5656
"""
5757
This method is currently underscore hidden because the
5858
draw_markers method is being used as a sentinel for newstyle

lib/matplotlib/texmanager.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -77,6 +77,11 @@ def get_prefix(self, tex):
7777
return md5.md5(tex).hexdigest()
7878

7979
def get_tex_command(self, tex, fname):
80+
81+
fontcmd = {'sans-serif' : r'{\sffamily %s}',
82+
'monospace' : r'{\ttfamily %s}'}.get(
83+
rcParams['font.family'],r'{\rmfamily %s}')
84+
tex = fontcmd % tex
8085
fh = file(fname, 'w')
8186
if rcParams['text.tex.engine'] == 'latex':
8287
s = r"""\documentclass{article}

0 commit comments

Comments
 (0)