Re: [Matplotlib-users] Colorbar requires mappable?
Ryan, See examples/colorbar_only.py. I think it illustrates what you want. Eric Ryan May wrote: Hi, In working on creating updating pcolor plots, I noticed that I can't create colorbars (which should be static) without first displaying an image. I have a fixed Normalize object and colormap, so I would think that the colorbar wouldn't actually need any information from the image itself. Is there any to create a colorbar without first actually plotting an image? If not, is there any reason colorbar couldn't be modified to work using only a norm and a cmap? Thanks, Ryan - This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/ ___ Matplotlib-users mailing list Matplotlib-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-users
[Matplotlib-users] NetCDF input/output/plotting using Matplotlib w/ Basemap
I have a model that calculates the tidal stress tensor (a symmetric 2x2 matrix) on the surface of an icy satellite. It's just two orthogonal vector fields on the surface of the body. I want to be able to make pretty plots of the model output, including: * The magnitude of either one of the fields at any point * The magnitude and orientation of either or both fields, as a grid of little arrows, whose colors correspond to whether the value is positive or negative. * Animations of time (or other) series. I also want to be able to save the model output in a format that other people can read and manipulate. Ideally, model run results could also be hosted on a web server, and other people could view them remotely. I just re-wrote the model in pure Python (it had been written in C previously), and I've been using my own hacked together ASCII file format and a Perl script that builds GMT plots based on them to make figures and visualizations up until now... but I'm sick of that and want something more flexible. This all seems to suggest to me, after a little poking around, that the NetCDF file format would be good. I've managed to get SciPy and Matplotlib and Basemap installed and apparently working together happily... but I can't seem to find any official module within that structure for writing NetCDF files. There are references to the old Scientific.IO.NetCDF package, and I found something that had been hanging around in the scipy.sandbox area... but which isn't there any more. There's quite a list of Python interfaces to NetCDF on the Unidata website... but they don't make any recommendations as to which is best. If I'm going to be working within Matplotlib and Basemap and SciPy, does anyone have a good recommendation for which NetCDF Python package to use? Or issues I should consider? Thanks for any insight, Zane -- Zane Selvans Amateur Human [EMAIL PROTECTED] 303/815-6866 PGP Key: 55E0815F begin:vcard fn:Zane Selvans n:Selvans;Zane org:Earthlings adr:;;200 S. Parkwood Ave.;Pasadena;CA;91107;USA email;internet:[EMAIL PROTECTED] title:Amateur Human tel;cell:(303) 815-6866 x-mozilla-html:TRUE url:https://ideotrope.org version:2.1 end:vcard - This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/___ Matplotlib-users mailing list Matplotlib-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-users
Re: [Matplotlib-users] NetCDF input/output/plotting using Matplotlib w/ Basemap
Zane Selvans wrote: If I'm going to be working within Matplotlib and Basemap and SciPy, does anyone have a good recommendation for which NetCDF Python package to use? Or issues I should consider? We're heavy users of netcdf4-python and it's working well. http://code.google.com/p/netcdf4-python/ If you want to stick with netcdf3 until the official netcdf4 release, then just run python setup-nc3.py install regards, Phil - This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/ ___ Matplotlib-users mailing list Matplotlib-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-users
Re: [Matplotlib-users] NetCDF input/output/plotting using Matplotlib w/ Basemap
Zane Selvans wrote: I have a model that calculates the tidal stress tensor (a symmetric 2x2 matrix) on the surface of an icy satellite. It's just two orthogonal vector fields on the surface of the body. I want to be able to make pretty plots of the model output, including: * The magnitude of either one of the fields at any point * The magnitude and orientation of either or both fields, as a grid of little arrows, whose colors correspond to whether the value is positive or negative. * Animations of time (or other) series. I also want to be able to save the model output in a format that other people can read and manipulate. Ideally, model run results could also be hosted on a web server, and other people could view them remotely. I just re-wrote the model in pure Python (it had been written in C previously), and I've been using my own hacked together ASCII file format and a Perl script that builds GMT plots based on them to make figures and visualizations up until now... but I'm sick of that and want something more flexible. This all seems to suggest to me, after a little poking around, that the NetCDF file format would be good. I've managed to get SciPy and Matplotlib and Basemap installed and apparently working together happily... but I can't seem to find any official module within that structure for writing NetCDF files. There are references to the old Scientific.IO.NetCDF package, and I found something that had been hanging around in the scipy.sandbox area... but which isn't there any more. There's quite a list of Python interfaces to NetCDF on the Unidata website... but they don't make any recommendations as to which is best. If I'm going to be working within Matplotlib and Basemap and SciPy, does anyone have a good recommendation for which NetCDF Python package to use? Or issues I should consider? Thanks for any insight, Zane Zane: Basemap already includes a NetCDFFile function that can read netCDF and opendap (http://opendap.org) datasets. If you need to write netCDF, then netcdf4-python should do fine. -Jeff -- Jeffrey S. Whitaker Phone : (303)497-6313 NOAA/OAR/CDC R/PSD1FAX : (303)497-6449 325 BroadwayBoulder, CO, USA 80305-3328 - This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/ ___ Matplotlib-users mailing list Matplotlib-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-users
[Matplotlib-users] Green's function
Hi All, I am trying to solve the Hamiltonian of a linear chair of atoms using greens function and I would like to do this using python. Does anyone know any pre-existing library functions and literature that will be helpful? Thanks EOF Check out my business here And here is the fun place we hang out at. Lots of beautiful ladies !!! - Never miss a thing. Make Yahoo your homepage.- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/___ Matplotlib-users mailing list Matplotlib-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-users
Re: [Matplotlib-users] NetCDF input/output/plotting using Matplotlib w/ Basemap
Hi Zane, This all seems to suggest to me, after a little poking around, that the NetCDF file format would be good. I've managed to get SciPy and Matplotlib and Basemap installed and apparently working together happily... but I can't seem to find any official module within that structure for writing NetCDF files. There are references to the old Scientific.IO.NetCDF package, and I found something that had been hanging around in the scipy.sandbox area... but which isn't there any more. There's quite a list of Python interfaces to NetCDF on the Unidata website... but they don't make any recommendations as to which is best. If I'm going to be working within Matplotlib and Basemap and SciPy, does anyone have a good recommendation for which NetCDF Python package to use? Or issues I should consider? I have been very happy with PyNIO. The main reason I choose this package was that it has support for other formats as well (e.g. GRIB) and is actively developed and has great support. The next version of it will also be open source if that matters. Another package which I have been looking at is netcdf4-python. The interface seems very similar to that of PyNIO and it has some nice features that are not present in the PyNIO package. I really like the features that are handling Climate and Forecast convention specialities. These are date conversion utilities (which I am using in combination with the PyNIO package) and automatic packing and unpacking. Hope this helps, Jesper winmail.dat- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/___ Matplotlib-users mailing list Matplotlib-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-users
Re: [Matplotlib-users] NetCDF input/output/plotting using, Matplotlib w/ Basemap
I use the python-netcdf4 package in linux. http://code.google.com/p/netcdf4-python/ You can make a netcdf3-compatible version of the library by installing with: python setup-nc3.py install Jordan - This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/ ___ Matplotlib-users mailing list Matplotlib-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-users