Skip to content

Commit b8dcc07

Browse files
committed
fixed texmanager
svn path=/trunk/matplotlib/; revision=1352
1 parent 73d791d commit b8dcc07

File tree

9 files changed

+266
-34
lines changed

9 files changed

+266
-34
lines changed

CHANGELOG

+1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
New entries should be added at the top
22

3+
2005-05-18 Added Orsay and JPL qt fixes - JDH
34

45
2005-05-17 Added a psfrag latex backend -- some alignment issues need
56
to be worked out. Run with -dLaTeX and a *.tex file and

MANIFEST

+218-7
Original file line numberDiff line numberDiff line change
@@ -22,14 +22,231 @@ CXX/Objects.hxx
2222
CXX/cxx_extensions.cxx
2323
CXX/cxxextensions.c
2424
CXX/cxxsupport.cxx
25+
agg23/font_freetype/Makefile.am
26+
agg23/font_freetype/agg_font_freetype.cpp
27+
agg23/font_freetype/agg_font_freetype.h
28+
agg23/font_win32_tt/agg_font_win32_tt.cpp
29+
agg23/font_win32_tt/agg_font_win32_tt.h
30+
agg23/include/Makefile.am
31+
agg23/include/agg_alpha_mask_u8.h
32+
agg23/include/agg_arc.h
33+
agg23/include/agg_array.h
34+
agg23/include/agg_arrowhead.h
35+
agg23/include/agg_basics.h
36+
agg23/include/agg_bezier_arc.h
37+
agg23/include/agg_bitset_iterator.h
38+
agg23/include/agg_bounding_rect.h
39+
agg23/include/agg_bspline.h
40+
agg23/include/agg_clip_liang_barsky.h
41+
agg23/include/agg_color_gray.h
42+
agg23/include/agg_color_rgba.h
43+
agg23/include/agg_config.h
44+
agg23/include/agg_conv_adaptor_vcgen.h
45+
agg23/include/agg_conv_adaptor_vpgen.h
46+
agg23/include/agg_conv_bspline.h
47+
agg23/include/agg_conv_clip_polygon.h
48+
agg23/include/agg_conv_clip_polyline.h
49+
agg23/include/agg_conv_close_polygon.h
50+
agg23/include/agg_conv_concat.h
51+
agg23/include/agg_conv_contour.h
52+
agg23/include/agg_conv_curve.h
53+
agg23/include/agg_conv_dash.h
54+
agg23/include/agg_conv_gpc.h
55+
agg23/include/agg_conv_marker.h
56+
agg23/include/agg_conv_marker_adaptor.h
57+
agg23/include/agg_conv_segmentator.h
58+
agg23/include/agg_conv_shorten_path.h
59+
agg23/include/agg_conv_smooth_poly1.h
60+
agg23/include/agg_conv_stroke.h
61+
agg23/include/agg_conv_transform.h
62+
agg23/include/agg_conv_unclose_polygon.h
63+
agg23/include/agg_curves.h
64+
agg23/include/agg_dda_line.h
65+
agg23/include/agg_ellipse.h
66+
agg23/include/agg_ellipse_bresenham.h
67+
agg23/include/agg_embedded_raster_fonts.h
68+
agg23/include/agg_font_cache_manager.h
69+
agg23/include/agg_gamma_functions.h
70+
agg23/include/agg_gamma_lut.h
71+
agg23/include/agg_glyph_raster_bin.h
72+
agg23/include/agg_gsv_text.h
73+
agg23/include/agg_image_filters.h
74+
agg23/include/agg_line_aa_basics.h
75+
agg23/include/agg_math.h
76+
agg23/include/agg_math_stroke.h
77+
agg23/include/agg_path_storage.h
78+
agg23/include/agg_path_storage_integer.h
79+
agg23/include/agg_pattern_filters_rgba.h
80+
agg23/include/agg_pixfmt_amask_adaptor.h
81+
agg23/include/agg_pixfmt_gray.h
82+
agg23/include/agg_pixfmt_rgb.h
83+
agg23/include/agg_pixfmt_rgb_packed.h
84+
agg23/include/agg_pixfmt_rgba.h
85+
agg23/include/agg_rasterizer_outline.h
86+
agg23/include/agg_rasterizer_outline_aa.h
87+
agg23/include/agg_rasterizer_scanline_aa.h
88+
agg23/include/agg_render_scanlines.h
89+
agg23/include/agg_renderer_base.h
90+
agg23/include/agg_renderer_markers.h
91+
agg23/include/agg_renderer_mclip.h
92+
agg23/include/agg_renderer_outline_aa.h
93+
agg23/include/agg_renderer_outline_image.h
94+
agg23/include/agg_renderer_primitives.h
95+
agg23/include/agg_renderer_raster_text.h
96+
agg23/include/agg_renderer_scanline.h
97+
agg23/include/agg_rendering_buffer.h
98+
agg23/include/agg_rendering_buffer_dynarow.h
99+
agg23/include/agg_rounded_rect.h
100+
agg23/include/agg_scanline_bin.h
101+
agg23/include/agg_scanline_boolean_algebra.h
102+
agg23/include/agg_scanline_p.h
103+
agg23/include/agg_scanline_storage_aa.h
104+
agg23/include/agg_scanline_storage_bin.h
105+
agg23/include/agg_scanline_u.h
106+
agg23/include/agg_shorten_path.h
107+
agg23/include/agg_simul_eq.h
108+
agg23/include/agg_span_allocator.h
109+
agg23/include/agg_span_converter.h
110+
agg23/include/agg_span_generator.h
111+
agg23/include/agg_span_gouraud.h
112+
agg23/include/agg_span_gouraud_gray.h
113+
agg23/include/agg_span_gouraud_rgba.h
114+
agg23/include/agg_span_gradient.h
115+
agg23/include/agg_span_gradient_alpha.h
116+
agg23/include/agg_span_image_filter.h
117+
agg23/include/agg_span_image_filter_gray.h
118+
agg23/include/agg_span_image_filter_rgb.h
119+
agg23/include/agg_span_image_filter_rgba.h
120+
agg23/include/agg_span_image_resample.h
121+
agg23/include/agg_span_image_resample_gray.h
122+
agg23/include/agg_span_image_resample_rgb.h
123+
agg23/include/agg_span_image_resample_rgba.h
124+
agg23/include/agg_span_interpolator_adaptor.h
125+
agg23/include/agg_span_interpolator_linear.h
126+
agg23/include/agg_span_interpolator_persp.h
127+
agg23/include/agg_span_interpolator_trans.h
128+
agg23/include/agg_span_pattern.h
129+
agg23/include/agg_span_pattern_filter_gray.h
130+
agg23/include/agg_span_pattern_filter_rgb.h
131+
agg23/include/agg_span_pattern_filter_rgba.h
132+
agg23/include/agg_span_pattern_resample_gray.h
133+
agg23/include/agg_span_pattern_resample_rgb.h
134+
agg23/include/agg_span_pattern_resample_rgba.h
135+
agg23/include/agg_span_pattern_rgb.h
136+
agg23/include/agg_span_pattern_rgba.h
137+
agg23/include/agg_span_solid.h
138+
agg23/include/agg_span_subdiv_adaptor.h
139+
agg23/include/agg_trans_affine.h
140+
agg23/include/agg_trans_bilinear.h
141+
agg23/include/agg_trans_double_path.h
142+
agg23/include/agg_trans_lens.h
143+
agg23/include/agg_trans_perspective.h
144+
agg23/include/agg_trans_single_path.h
145+
agg23/include/agg_trans_viewport.h
146+
agg23/include/agg_trans_warp_magnifier.h
147+
agg23/include/agg_vcgen_bspline.h
148+
agg23/include/agg_vcgen_contour.h
149+
agg23/include/agg_vcgen_dash.h
150+
agg23/include/agg_vcgen_markers_term.h
151+
agg23/include/agg_vcgen_smooth_poly1.h
152+
agg23/include/agg_vcgen_stroke.h
153+
agg23/include/agg_vcgen_vertex_sequence.h
154+
agg23/include/agg_vertex_sequence.h
155+
agg23/include/agg_vpgen_clip_polygon.h
156+
agg23/include/agg_vpgen_clip_polyline.h
157+
agg23/include/agg_vpgen_segmentator.h
158+
agg23/include/ctrl/Makefile.am
159+
agg23/include/ctrl/agg_bezier_ctrl.h
160+
agg23/include/ctrl/agg_cbox_ctrl.h
161+
agg23/include/ctrl/agg_ctrl.h
162+
agg23/include/ctrl/agg_gamma_ctrl.h
163+
agg23/include/ctrl/agg_gamma_spline.h
164+
agg23/include/ctrl/agg_polygon_ctrl.h
165+
agg23/include/ctrl/agg_rbox_ctrl.h
166+
agg23/include/ctrl/agg_scale_ctrl.h
167+
agg23/include/ctrl/agg_slider_ctrl.h
168+
agg23/include/ctrl/agg_spline_ctrl.h
169+
agg23/include/platform/Makefile.am
170+
agg23/include/platform/agg_platform_support.h
171+
agg23/include/platform/mac/agg_mac_pmap.h
172+
agg23/include/platform/win32/agg_win32_bmp.h
173+
agg23/include/util/Makefile.am
174+
agg23/include/util/agg_color_conv.h
175+
agg23/include/util/agg_color_conv_rgb16.h
176+
agg23/include/util/agg_color_conv_rgb8.h
177+
agg23/src/ChangeLog
178+
agg23/src/Makefile
179+
agg23/src/Makefile.am
180+
agg23/src/agg_arc.cpp
181+
agg23/src/agg_arrowhead.cpp
25182
agg23/src/agg_bezier_arc.cpp
183+
agg23/src/agg_bspline.cpp
26184
agg23/src/agg_curves.cpp
185+
agg23/src/agg_embedded_raster_fonts.cpp
186+
agg23/src/agg_gsv_text.cpp
27187
agg23/src/agg_image_filters.cpp
188+
agg23/src/agg_line_aa_basics.cpp
189+
agg23/src/agg_line_profile_aa.cpp
28190
agg23/src/agg_path_storage.cpp
29191
agg23/src/agg_rasterizer_scanline_aa.cpp
192+
agg23/src/agg_rounded_rect.cpp
193+
agg23/src/agg_sqrt_tables.cpp
30194
agg23/src/agg_trans_affine.cpp
195+
agg23/src/agg_trans_double_path.cpp
196+
agg23/src/agg_trans_single_path.cpp
197+
agg23/src/agg_trans_warp_magnifier.cpp
198+
agg23/src/agg_vcgen_bspline.cpp
199+
agg23/src/agg_vcgen_contour.cpp
31200
agg23/src/agg_vcgen_dash.cpp
201+
agg23/src/agg_vcgen_markers_term.cpp
202+
agg23/src/agg_vcgen_smooth_poly1.cpp
32203
agg23/src/agg_vcgen_stroke.cpp
204+
agg23/src/agg_vpgen_clip_polygon.cpp
205+
agg23/src/agg_vpgen_clip_polyline.cpp
206+
agg23/src/agg_vpgen_segmentator.cpp
207+
agg23/src/authors
208+
agg23/src/autogen.sh
209+
agg23/src/configure.in
210+
agg23/src/copying
211+
agg23/src/install
212+
agg23/src/news
213+
agg23/src/readme
214+
agg23/src/ctrl/Makefile.am
215+
agg23/src/ctrl/agg_bezier_ctrl.cpp
216+
agg23/src/ctrl/agg_cbox_ctrl.cpp
217+
agg23/src/ctrl/agg_gamma_ctrl.cpp
218+
agg23/src/ctrl/agg_gamma_spline.cpp
219+
agg23/src/ctrl/agg_polygon_ctrl.cpp
220+
agg23/src/ctrl/agg_rbox_ctrl.cpp
221+
agg23/src/ctrl/agg_scale_ctrl.cpp
222+
agg23/src/ctrl/agg_slider_ctrl.cpp
223+
agg23/src/ctrl/agg_spline_ctrl.cpp
224+
agg23/src/platform/Makefile.am
225+
agg23/src/platform/AmigaOS/agg_platform_support.cpp
226+
agg23/src/platform/BeOS/agg_platform_support.cpp
227+
agg23/src/platform/X11/Makefile.am
228+
agg23/src/platform/X11/agg_platform_support.cpp
229+
agg23/src/platform/mac/agg_mac_pmap.cpp
230+
agg23/src/platform/mac/agg_platform_support.cpp
231+
agg23/src/platform/sdl/agg_platform_support.cpp
232+
agg23/src/platform/win32/agg_platform_support.cpp
233+
agg23/src/platform/win32/agg_win32_bmp.cpp
234+
agg23/svg/agg_svg_exception.h
235+
agg23/svg/agg_svg_parser.cpp
236+
agg23/svg/agg_svg_parser.h
237+
agg23/svg/agg_svg_path_renderer.cpp
238+
agg23/svg/agg_svg_path_renderer.h
239+
agg23/svg/agg_svg_path_tokenizer.cpp
240+
agg23/svg/agg_svg_path_tokenizer.h
241+
agg23/svg/svg_test.cpp
242+
agg23/svg/BeOS/Makefile
243+
agg23/svg/X11/Makefile
244+
agg23/svg/macos_cw/expat.h
245+
agg23/svg/macos_cw/include.h
246+
agg23/svg/macos_cw/xmlparse.h
247+
agg23/svg/win32_api/Makefile
248+
agg23/svg/win32_api/svg_test.dsp
249+
agg23/svg/win32_api/svg_test.dsw
33250
examples/README
34251
examples/__init__.py
35252
examples/accented_text.py
@@ -307,7 +524,6 @@ lib/dateutil/rrule.py
307524
lib/dateutil/tz.py
308525
lib/matplotlib/.cvsignore
309526
lib/matplotlib/__init__.py
310-
lib/matplotlib/__init__.py.~1.51.~
311527
lib/matplotlib/_contour.py
312528
lib/matplotlib/_image.py
313529
lib/matplotlib/_mathtext_data.py
@@ -319,7 +535,6 @@ lib/matplotlib/artist.py
319535
lib/matplotlib/axes.py
320536
lib/matplotlib/axes.py.orig
321537
lib/matplotlib/axis.py
322-
lib/matplotlib/axis.py.~1.20.~
323538
lib/matplotlib/backend_bases.py
324539
lib/matplotlib/cbook.py
325540
lib/matplotlib/cm.py
@@ -328,7 +543,6 @@ lib/matplotlib/colors.py
328543
lib/matplotlib/contour.py
329544
lib/matplotlib/dates.py
330545
lib/matplotlib/figure.py
331-
lib/matplotlib/figure.py.~1.22.~
332546
lib/matplotlib/finance.py
333547
lib/matplotlib/font_manager.py
334548
lib/matplotlib/image.py
@@ -341,17 +555,13 @@ lib/matplotlib/pylab.py
341555
lib/matplotlib/pyparsing.py
342556
lib/matplotlib/table.py
343557
lib/matplotlib/texmanager.py
344-
lib/matplotlib/texmanager.py~
345558
lib/matplotlib/text.py
346-
lib/matplotlib/text.py.~1.22.~
347559
lib/matplotlib/ticker.py
348560
lib/matplotlib/transforms.py
349561
lib/matplotlib/windowing.py
350562
lib/matplotlib/backends/.cvsignore
351563
lib/matplotlib/backends/__init__.py
352-
lib/matplotlib/backends/backend_agg
353564
lib/matplotlib/backends/backend_agg.py
354-
lib/matplotlib/backends/backend_agg.py.~1.23.~
355565
lib/matplotlib/backends/backend_agg2.py
356566
lib/matplotlib/backends/backend_cairo.py
357567
lib/matplotlib/backends/backend_fltkagg.py
@@ -360,6 +570,7 @@ lib/matplotlib/backends/backend_gdk.py
360570
lib/matplotlib/backends/backend_gtk.py
361571
lib/matplotlib/backends/backend_gtkagg.py
362572
lib/matplotlib/backends/backend_gtkcairo.py
573+
lib/matplotlib/backends/backend_latex.py
363574
lib/matplotlib/backends/backend_paint.py
364575
lib/matplotlib/backends/backend_ps.py
365576
lib/matplotlib/backends/backend_qt.py

MANIFEST.in

+1-1
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,6 @@ recursive-include examples README *.py *.glade
1111
prune examples/_tmp_*
1212
recursive-include src *.cpp *.c *.h
1313
recursive-include CXX *.cxx *.hxx *.c
14-
recursive-include agg22 *
14+
recursive-include agg23 *
1515
recursive-include lib *
1616
recursive-include swig *

TODO

+4-1
Original file line numberDiff line numberDiff line change
@@ -705,4 +705,7 @@ ZeroDivisionError: SeparableTransformation::eval_scalars yin interval is zero; c
705705

706706
-- DONE tkagg figure not launching new figure until plot is called?
707707

708-
-- clipping off in date_demo_rrule (agg 0.5 offset bug?)
708+
-- clipping off in date_demo_rrule (agg 0.5 offset bug?)
709+
710+
-- merge qt patch.
711+

lib/matplotlib/artist.py

+8-2
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
import sys
33
from cbook import iterable, flatten
44
from transforms import identity_transform
5-
5+
import warnings
66
## Note, matplotlib artists use the doc strings for set and get
77
# methods to enable the introspection methods of set and get in the
88
# matlab interface Every set_ to be controlled by the set function
@@ -390,7 +390,13 @@ def get(o, *args):
390390
func = getattr(o, 'get_' + name)
391391
return func()
392392

393-
def set(h, *args, **kwargs):
393+
def set(*args, **kwargs):
394+
message = 'set deprecated because it overrides python2.4 builtin set. Use setp'
395+
warnings.warn(message, DeprecationWarning, stacklevel=2)
396+
397+
return setp(*args, **kwargs)
398+
399+
def setp(h, *args, **kwargs):
394400
"""
395401
matlab(TM) and pylab allow you to use set and get to set and get
396402
object properties, as well as to do introspection on the object

lib/matplotlib/backends/backend_latex.py

+3-1
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,8 @@ def draw_text(self, gc, x, y, s, prop, angle, ismath):
3636
setcolor = '%1.3f %1.3f %1.3f setrgbcolor' % gc.get_rgb()
3737
fontsize = prop.get_size_in_points()
3838
scale = float(fontsize/10.0)
39+
color = r'\rgb %1.3f %1.3f %1.3f'%gc.get_rgb()
40+
tex = '\color{rgb}{%s}'%s
3941
self.psfrag.append(r'\psfrag{%s}[bl][bl][%f][%f]{%s}'%(thetext, scale, angle, s))
4042
ps = """\
4143
gsave
@@ -161,7 +163,7 @@ def print_figure(self, outfile, dpi=72,
161163
162164
\begin{figure}[t]
163165
%s
164-
\includegraphics{%s}
166+
\resizebox{5.5in}{!}{\includegraphics{%s}}
165167
166168
\end{figure}
167169

0 commit comments

Comments
 (0)