Re: [Matplotlib-users] [matplotlib-devel] pyplot functions: do you rely on the hold kwarg?

2015-06-19 Thread Nathaniel Smith
On Sun, Jun 7, 2015 at 2:37 PM, Eric Firing efir...@hawaii.edu wrote:
 Matplotlib's pyplot retains quite a few vestiges from its original
 Matlab-workalike heritage; we would like to gradually eliminate those
 that no longer make sense.  One such candidate is the hold kwarg that
 every pyplot function has, with a True default.  I don't think it
 serves any useful purpose now, and getting rid of it would allow
 considerable simplification to the code and, to a lesser extent, the
 documentation.  The default behavior would not change, only the ability
 to change that behavior via either the rcParams['axes.hold'] parameter
 or the hold kwarg in a pyplot function call.

 If you routinely use 'hold=False' and believe that removing it would be
 a mistake, please let us know.

I do actually use it with some regularity interactively, though I'm
not particularly attached to it. Is there some equivalent though, like
   plt.whatever(..., hold=False)
can become
   plt.clear(); plt.whatever(...)
? The semantics would be that the current figure remains the current
figure, but is reset so that the next operation starts from scratch. I
notice that plt.clear() does not exist, but maybe it has another
spelling :-).

(Basically the use case here is getting something like the
edit-and-rerun-a-cell workflow, but when using a classic interactive
REPL rather than the ipython notebook -- so I have a specific plot
window up on my screen at a size and place where I can see it, and
maybe some other plots in other windows in the background somewhere,
and I want to quickly display different things into that window.)

-n

-- 
Nathaniel J. Smith -- http://vorpus.org

--
___
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users


[Matplotlib-users] Problem on Basemap gshhs data and the associated is_land function

2015-06-19 Thread Jiali Ma
Thanks for reading my mail.
In basemap toolkit of matplotlib, I found the  Coastline data used is from
the GSHHS (http://www.soest.hawaii.edu/wessel/gshhs/gshhs.html).But I found
it barely satisfying to use.
(For that I am from China,but the 2 most prominent rivers,Yangtze river and
Yellow river are not shown ,and another less important river is shown)
So,here I am asking if there is how I can replace this GSHHS coasline data
with my data?How is GSHHS data formatted?So I'd probably work some way out
to make or find another set of data with the same format.
Thanks again for reading .



--
View this message in context: 
http://matplotlib.1069221.n5.nabble.com/Problem-on-Basemap-gshhs-data-and-the-associated-is-land-function-tp45761.html
Sent from the matplotlib - users mailing list archive at Nabble.com.

--
___
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users


[Matplotlib-users] Produce KML from Matplolib

2015-06-19 Thread egayer
Hi all, 

Is there a way to produce a KML file from matplolib results as R and Matlab
do ? 

- plotKML is a R package http://plotkml.r-forge.r-project.org
- Matlab has the Google Earth Toolbox. 

Both of them allow to plot directly on GE

I' have been digging around and found this old post :Producing a
KML-friendly (Google Earth) image but nothing about how to actually a
matplolib result as a KML file useable into Google Earth.

I have seen some shape to KML packages, but nothing about raster.

The ultimate goal being to use the plot, mplot3d, imshow, etc... to plot
any python array on GE.

Thanks for your help
Eric





--
View this message in context: 
http://matplotlib.1069221.n5.nabble.com/Produce-KML-from-Matplolib-tp45759.html
Sent from the matplotlib - users mailing list archive at Nabble.com.

--
___
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users


Re: [Matplotlib-users] Problem on Basemap gshhs data and the associated is_land function

2015-06-19 Thread Eric Firing
On 2015/06/10 4:24 AM, Jiali Ma wrote:
 Thanks for reading my mail.
 In basemap toolkit of matplotlib, I found the  Coastline data used is from
 the GSHHS (http://www.soest.hawaii.edu/wessel/gshhs/gshhs.html).But I found
 it barely satisfying to use.

Are you specifying a sufficiently high resolution and using the 
drawrivers() method?

I think that trying to put your own data into a form to be used as a 
direct substitute for the built-in data would be very difficult, but you 
can always plot things directly on the map.

Eric



--
___
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users