Revision: 6968
          http://matplotlib.svn.sourceforge.net/matplotlib/?rev=6968&view=rev
Author:   jswhit
Date:     2009-03-08 13:18:34 +0000 (Sun, 08 Mar 2009)

Log Message:
-----------
make central pressures more readable by making text boxes semi-transparent

Modified Paths:
--------------
    trunk/toolkits/basemap/examples/plothighsandlows.py

Modified: trunk/toolkits/basemap/examples/plothighsandlows.py
===================================================================
--- trunk/toolkits/basemap/examples/plothighsandlows.py 2009-03-08 13:05:11 UTC 
(rev 6967)
+++ trunk/toolkits/basemap/examples/plothighsandlows.py 2009-03-08 13:18:34 UTC 
(rev 6968)
@@ -72,11 +72,10 @@
         dist = [np.sqrt((x-x0)**2+(y-y0)**2) for x0,y0 in xyplotted]
         if not dist or min(dist) > dmin:
             plt.text(x,y,'L',fontsize=14,fontweight='bold',
-                     horizontalalignment='center',
-                     verticalalignment='center',color='blue')
+                    ha='center',va='center',color='b')
             plt.text(x,y-yoffset,repr(int(p)),fontsize=9,
-                     horizontalalignment='center',
-                     verticalalignment='top',color='blue')
+                    ha='center',va='top',color='b',
+                    bbox = dict(boxstyle="square",ec='None',fc=(1,1,1,0.5)))
             xyplotted.append((x,y))
 # plot highs as red H's, with max pressure value underneath.
 xyplotted = []
@@ -85,11 +84,10 @@
         dist = [np.sqrt((x-x0)**2+(y-y0)**2) for x0,y0 in xyplotted]
         if not dist or min(dist) > dmin:
             plt.text(x,y,'H',fontsize=14,fontweight='bold',
-                     horizontalalignment='center',
-                     verticalalignment='center',color='red')
+                    ha='center',va='center',color='r')
             plt.text(x,y-yoffset,repr(int(p)),fontsize=9,
-                     horizontalalignment='center',
-                     verticalalignment='top',color='red')
+                    ha='center',va='top',color='r',
+                    bbox = dict(boxstyle="square",ec='None',fc=(1,1,1,0.5)))
             xyplotted.append((x,y))
 plt.title('Mean Sea-Level Pressure (with Highs and Lows) %s' % YYYYMMDDHH)
 plt.show()


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

------------------------------------------------------------------------------
Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, CA
-OSBC tackles the biggest issue in open source: Open Sourcing the Enterprise
-Strategies to boost innovation and cut costs with open source participation
-Receive a $600 discount off the registration fee with the source code: SFAD
http://p.sf.net/sfu/XcvMzF8H
_______________________________________________
Matplotlib-checkins mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/matplotlib-checkins

Reply via email to