From: Ted D. <ted...@jp...> - 2005-02-11 20:39:50
|
I could use a scatter plot but user's actually want a line drawn so that's out. I think either the plot has to be really smart about it (which is probably a bad idea), or this type of functionality has to be in a utility or wrapper that can be used. I think I'm stuck doing linear interpolation and somehow separating the line segments at the boundary of the map. Is there an easy way to plot multiple collections of points connected by a line and have only a single legend entry show up? It would also be nice if any modifications to that entry (marker, color, etc) would affect all the line segments. Ted PS: we also need some way to draw only the n'th marker in a line plot. We plot a lot of trajectories where time is progressing along the line so it's useful to generate the plot using 1 minute data (for example) and then have a marker be displayed every 60'th point. At 05:28 AM 2/11/2005, Jeff Whitaker wrote: >Ted Drain wrote: > >> >>One thing I do need to be able to do is to create line plots that "wrap >>around" a map. We generate a lot of ground tracks that use a Mercator >>projection covering the whole globe (x=-180->180, y=-90->90) and if the >>line goes off one edge, we need to wrap it around to the other edge >>instead of drawing a line segment all the way across the page. > >Ted: It just occured to me that if you plot the track as a scatterplot of >points instead of a line then this is not a problem (i.e. you won't get >that line segment running across the page) > >-Jeff > >-- >Jeffrey S. Whitaker Phone : (303)497-6313 >NOAA/OAR/CDC R/CDC1 FAX : (303)497-6449 >325 Broadway Web : http://www.cdc.noaa.gov/~jsw >Boulder, CO, USA 80305-3328 Office: Skaggs Research Cntr 1D-124 > > > >------------------------------------------------------- >SF email is sponsored by - The IT Product Guide >Read honest & candid reviews on hundreds of IT Products from real users. >Discover which products truly live up to the hype. Start reading now. >http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click >_______________________________________________ >Matplotlib-users mailing list >Mat...@li... >https://lists.sourceforge.net/lists/listinfo/matplotlib-users Ted Drain Jet Propulsion Laboratory ted...@jp... |