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

Skip to content

Commit cbd0d5e

Browse files
committed
close to porting mathtext to gtk
svn path=/trunk/matplotlib/; revision=167
1 parent 4e3de60 commit cbd0d5e

4 files changed

Lines changed: 6 additions & 5 deletions

File tree

.matplotlibrc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
# - a matplotlib color string, such as r, k, or b
1818
# - an rgb tuple, such as (1.0, 0.5, 0.0)
1919
# - a hex string, such as ff00ff (no '#' symbol)
20-
# - a scalarar grayscale intensity such as 0.75
20+
# - a scalar grayscale intensity such as 0.75
2121

2222
#### CONFIGURATION BEGINS HERE
2323
backend : GTK # the default backend

TODO

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -259,3 +259,4 @@
259259

260260
-- DONE - (Todd updated docs) - python2.2 no default tkinter
261261

262+
-- check out wx

examples/backend_driver.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ def drive(backend):
4949
for line in file(fname):
5050
if line.strip().startswith('from __future__ import division'): continue
5151
if line.strip().startswith('matplotlib.use'): continue
52-
if line.strip().startswith('#savefig'): continue
52+
if line.strip().startswith('savefig'): continue
5353
if line.strip().startswith('show'): continue
5454
lines.append(line)
5555
basename, ext = os.path.splitext(fname)
@@ -65,7 +65,7 @@ def drive(backend):
6565
times = {}
6666
backends = ['PS', 'GD', 'Paint', 'Agg', 'Template']
6767
#backends.extend([ 'GTK', 'WX', 'TkAgg'])
68-
#backends = [ 'Agg']
68+
backends = [ 'Agg', 'GD']
6969

7070
for backend in backends:
7171
print 'testing %s' % backend

examples/mathtext_demo.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
from matplotlib.matlab import *
2-
2+
subplot(111, axisbg='y')
33
plot([1,2,3])
44
xlabel(r'$\Delta_i$')
55
ylabel(r'$\Delta_{i+1}$')
66
tex = r'$\cal{R}\prod_{i=\alpha_{i+1}}^\infty a_i\rm{sin}(2 \pi f x_i)$'
7-
text(0.4, 2.6, tex, fontsize=20)
7+
text(1, 2.6, tex, fontsize=20, color='r')
88
title(r'$\Delta_i \rm{versus} \Delta_{i+1}$', fontsize=15)
99
savefig('mathtext_demo', dpi=100)
1010
show()

0 commit comments

Comments
 (0)