Re: [Matplotlib-users] 3D surface plot with box frame

2014-06-27 Thread Dawes, Andrew M.
Thanks Ben for the tip on edgecolor. I’ve got what I wanted now and since it took some digging and tinkering I figured I’d write it up and share the solution with anyone who may want it: https://dawes.wordpress.com/2014/06/27/publication-ready-3d-figures-from-matplotlib/ and full test-case scri

Re: [Matplotlib-users] Data plotting in a wrong place

2014-06-27 Thread Benjamin Root
actually, that is technically incorrect. That only works for monotonically increasing series, but not monotonically decreasing series. diffs = np.diff(lon) if np.all(diffs <= 0): return True if np.all(diffs >= 0): return True return False provided that len(lon) >= 2, obviously (and it doe

Re: [Matplotlib-users] Data plotting in a wrong place

2014-06-27 Thread Jason Swails
On Thu, 2014-06-26 at 23:14 -0700, billyi wrote: > Oh my, it WAS the meshgrid! Thank you so much! > When reading the coordinates like: > lat = FB.variables['lat'][:,:] > lon = FB.variables['lon'][:,:] > > And plotting (without meshgrid!): > m.pcolormesh(lon, lat, masked_fb, latlon=True) > > it w

Re: [Matplotlib-users] Data plotting in a wrong place

2014-06-27 Thread Joel B. Mohler
On 06/27/2014 02:14 AM, billyi wrote: > And I think the longitudes and latitudes are not monotonic, but I don't know > the way to check this, other than checking the array like lon[:] in > terminal. Is there a better way? numpy slicing (subtract prior from next element check that 'all' the result

[Matplotlib-users] refresh a matplotlib plot when reruning a script

2014-06-27 Thread zunbeltz
I have a script that fetchs data from a database and plot using something similar to fig, (ax1, ax3) = plt.subplots(2, 1, sharex=False, sharey=False, num=fignum) ax1.errorbar(...) title(...) ax2 = ax1.twiny() ax4 = ax2.twiny() ... plt.legent() plt.draw() Then, I call this script with plt.ion() a

[Matplotlib-users] EPS import problems

2014-06-27 Thread Nils Wagner
Hi all, how can I resolve the problem described at http://community.coreldraw.com/forums/p/31103/146512.aspx Nils -- Open source business process management suite built on Java and Eclipse Turn processes into business ap