Revision: 5264
          http://matplotlib.svn.sourceforge.net/matplotlib/?rev=5264&view=rev
Author:   jdh2358
Date:     2008-05-25 09:57:31 -0700 (Sun, 25 May 2008)

Log Message:
-----------
syncing logo

Modified Paths:
--------------
    trunk/matplotlib/examples/api/logo2.py

Modified: trunk/matplotlib/examples/api/logo2.py
===================================================================
--- trunk/matplotlib/examples/api/logo2.py      2008-05-25 16:09:25 UTC (rev 
5263)
+++ trunk/matplotlib/examples/api/logo2.py      2008-05-25 16:57:31 UTC (rev 
5264)
@@ -4,9 +4,11 @@
 import matplotlib.mlab as mlab
 
 axalpha = 0.05
-fig = plt.figure(figsize=(8, 2),dpi=80)
-fig.figurePatch.set_edgecolor('#FFFFCC')
-fig.figurePatch.set_facecolor('#FFFFCC')
+figcolor = '#FFFFCC'
+dpi = 80
+fig = plt.figure(figsize=(8, 2),dpi=dpi)
+fig.figurePatch.set_edgecolor(figcolor)
+fig.figurePatch.set_facecolor(figcolor)
 
 # the polar bar plot
 ax = fig.add_axes([0.05, 0.05, 0.2, 01], polar=True)
@@ -60,6 +62,6 @@
            transform=axback.transAxes)
 
 
-
+fig.savefig('logo2.png', facecolor=figcolor, edgecolor=figcolor, dpi=dpi)
 plt.show()
 


This was sent by the SourceForge.net collaborative development platform, the 
world's largest Open Source development site.

-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Matplotlib-checkins mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/matplotlib-checkins

Reply via email to