|
From: <md...@us...> - 2008-06-22 10:25:22
|
Revision: 5619
http://matplotlib.svn.sourceforge.net/matplotlib/?rev=5619&view=rev
Author: mdboom
Date: 2008-06-20 10:23:55 -0700 (Fri, 20 Jun 2008)
Log Message:
-----------
Make legend less hacky looking, with a "cute" math expression.
Modified Paths:
--------------
trunk/matplotlib/examples/pylab_examples/mathtext_demo.py
Modified: trunk/matplotlib/examples/pylab_examples/mathtext_demo.py
===================================================================
--- trunk/matplotlib/examples/pylab_examples/mathtext_demo.py 2008-06-20 17:09:12 UTC (rev 5618)
+++ trunk/matplotlib/examples/pylab_examples/mathtext_demo.py 2008-06-20 17:23:55 UTC (rev 5619)
@@ -20,10 +20,10 @@
ax.text(1, 1.6, tex, fontsize=20, va='bottom')
-ax.legend(("Foo", "Testing $x^2$"))
+ax.legend([r"$\sqrt{x^2}$"])
ax.set_title(r'$\Delta_i^j \hspace{0.4} \mathrm{versus} \hspace{0.4} \Delta_{i+1}^j$', fontsize=20)
-#fig.savefig('mathtext_demo')
+fig.savefig('mathtext_demo')
show()
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|