Ah.  It sounds as though one must consider the scale of the map, and 
then choose these offsets so that the text falls near but not too near 
the marker.  It would be great if one could specify the text offsets in 
units of the font size rather than in units of map distance.

Thanks!

Phillip

Eric Firing wrote:
> Dr. Phillip M. Feldman wrote:
>> The online documentation at URL=
>> http://www.scipy.org/Cookbook/Matplotlib/Maps has an example that uses
>> plt.text as follows:
>>
>> plt.text(xpt+50000,ypt+50000,name)
>>
>> Why is the offset 50000?
>
> The proj library used by Basemap transforms lon, lat to meters, so xpt 
> and ypt are in meters.  Hence the offsets are 50 km.  Now, what I 
> don't understand is why the San Diego offset on the map looks so much 
> larger than the Boulder offset, for example.
>
> Eric
>


------------------------------------------------------------------------------
This SF.Net email is sponsored by the Verizon Developer Community
Take advantage of Verizon's best-in-class app development support
A streamlined, 14 day to market process makes app distribution fast and easy
Join now and get one step closer to millions of Verizon customers
http://p.sf.net/sfu/verizon-dev2dev 
_______________________________________________
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users

Reply via email to