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

Skip to content

Commit 3de700f

Browse files
committed
mathtext fixes
svn path=/trunk/matplotlib/; revision=238
1 parent 5da65a2 commit 3de700f

4 files changed

Lines changed: 12 additions & 7 deletions

File tree

CHANGELOG

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,14 @@
11
New entries should be added at the top
22

3+
2004-04-10 Mathtext fixes: scaling with dpi, - JDH
4+
35
2004-04-09 Improved font detection algorithm. - PEB
46

57
2004-04-09 Move deprecation warnings from text.py to __init__.py - PEB
68

79
2004-04-09 Added default font customization - JDH
810

9-
2004-04-08 Fixed viewlim set problem on axes and axis.
11+
2004-04-08 Fixed viewlim set problem on axes and axis. - JDH
1012

1113
2004-04-07 Added validate_comma_sep_str and font properties paramaters to
1214
__init__. Removed font families and added rcParams to

TODO

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

277277
-- add get_xlim and get_ylim for patches
278278

279-
-- mathtext size not scaling with DPI
279+
-- DONE - mathtext size not scaling with DPI
280280

281281
-- implement Paul's mathtext parser fixes
282282

@@ -296,12 +296,12 @@
296296

297297
-- aligment test of backend_ps and table_demo on all backends
298298

299-
-- fix the sqrt mathtext bug revealed by Flavio's eample
299+
-- fix the sqrt mathtext bug revealed by Flavio's example
300300

301301
-- fix the parser for sqrt, etc..
302302

303303
-- add \/ for TeX
304304

305305
-- fix kerning for TeX
306306

307-
-- text_themes is segfaulting on gtkagg
307+
-- DONE - text_themes is segfaulting on gtkagg

examples/mathtext_demo.py

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,11 @@
1717
xlabel(r'$\Delta_i$')
1818
ylabel(r'$\Delta_{i+1}$')
1919
tex = r'$\cal{R}\prod_{i=\alpha_{i+1}}^\infty a_i\rm{sin}(2 \pi f x_i)$'
20+
#tex = r'$\cal{R}\prod^\infty a_i\rm{sin}(2 \pi f x_i)$'
21+
2022
#tex = r'$\alpha\beta\gamma$'
2123
text(1, 2.6, tex, fontsize=20)
22-
title(r'$\Delta_i\rm{ versus }\Delta_{i+1}$', fontsize=15)
23-
#savefig('mathtext_demo', dpi=100)
24+
title(r'$\Delta^i_{i=\alpha_{i+1}}\rm{ versus }\Delta_{i+1}$', fontsize=15)
25+
#savefig('mathtext_demo_small', dpi=100)
26+
2427
show()

src/ft2font.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -686,7 +686,7 @@ FT2Font_write_bitmap(FT2FontObject *self, PyObject *args)
686686
char FT2Font_draw_rect__doc__[] =
687687
"draw_bbox(x0, y0, x1, y1)\n"
688688
"\n"
689-
"Draw a rect to the image. It is you responsibility to set the dimensions\n"
689+
"Draw a rect to the image. It is your responsibility to set the dimensions\n"
690690
"of the image, eg, with set_bitmap_size\n"
691691
"\n"
692692
;

0 commit comments

Comments
 (0)