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

Skip to content

Commit 79bd9ca

Browse files
committed
fixed mathtext color bug
svn path=/trunk/matplotlib/; revision=819
1 parent ad484fa commit 79bd9ca

3 files changed

Lines changed: 5 additions & 1 deletion

File tree

CHANGELOG

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

3+
2004-12-27 Fixed PS mathtext bug where color was not set - Jochen
4+
please verify correct - JDH
5+
36
2004-12-27 Added Shadow class and added shadow kwarg to legend and pie
47
for shadow effect - JDH
58

examples/mathtext_demo.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,6 @@
2121
text(1, 1.6, tex, fontsize=20)
2222

2323
#title(r'$\Delta_i^j \hspace{0.4} \rm{versus} \hspace{0.4} \Delta_{i+1}^j$', fontsize=20)
24-
savefig('mathtext_demo')
24+
savefig('mathtext_demo.ps')
2525

2626
show()

lib/matplotlib/backends/backend_ps.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -366,6 +366,7 @@ def draw_mathtext(self, gc, x, y, s, prop, angle):
366366

367367
fontsize = prop.get_size_in_points()
368368
width, height, pswriter = math_parse_s_ps(s, 72, fontsize)
369+
self.set_color(*gc.get_rgb())
369370
thetext = pswriter.getvalue()
370371
ps = """gsave
371372
%(x)f %(y)f translate

0 commit comments

Comments
 (0)