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

2014-06-26 Thread billyi
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 works! Now I feel stupid. And I think the longitudes and latitudes a

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

2014-06-26 Thread Benjamin Root
If you supply the code you did to get where you got, I have a rough idea how to get what you need. Essentially, you need to set the edgecolor of the panes, I think. I have to dig a bit in the code to see how to do that, though. Cheers! Ben Root On Thu, Jun 26, 2014 at 7:42 PM, Dawes, Andrew M.

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

2014-06-26 Thread Dawes, Andrew M.
I’m trying to plot a 3d surface with a box frame around both sides (see example in the following link) comparable example: http://cloud.originlab.com/www/products/images2/3DGraph_ColorSurface.png I made the axis panes white and disabled the grid which gets me 80% of the way. I don’t see anythin

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

2014-06-26 Thread Benjamin Root
don't know if this would make a difference, but meshgrid here is completely unnecessary given that the netcdf file has the lats and lons in 2 dimensions anyway. Given that this is a polar projection, I wouldn't be surprised if there is something wonky there. Are the longitudes and latitudes monoto

[Matplotlib-users] Data plotting in a wrong place

2014-06-26 Thread billyi
Hi all! I'm trying to plot some sea ice freeboard data (netCDF, Gridded total freeboard) on the Antarctic sea, but the data that should plot nicely around Antarctica lies at the bottom of my image. NetCDF and matplotlib are fairly new to me so I'm not quite sure, where the error could be and I feel