Re: [Matplotlib-users] Color Map
(almost?) all the colormaps exist in reversed forms, eg, cm.hot_r On Jul 20, 2009, at 10:47 AM, Ritayan Mitra wrote: Hello I am trying to use imshow as below im = imshow(Z, interpolation='spline16', origin='lower', cmap=cm.hot, extent=(-1.,1.,-1.,1.)) Trouble is I want to reverse the color gradient or use some colorscheme which has lighter color at the bottom and darker higher up. What is the easiest solution to this problem? Thanks a bunch. Rit -- Enter the BlackBerry Developer Challenge This is your chance to win up to $100,000 in prizes! For a limited time, vendors submitting new applications to BlackBerry App World(TM) will have the opportunity to enter the BlackBerry Developer Challenge. See full prize details at: http://p.sf.net/sfu/Challenge ___ Matplotlib-users mailing list Matplotlib-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-users Chloe Lewis Graduate student, Amundson Lab Division of Ecosystem Sciences, ESPM University of California, Berkeley 137 Mulford Hall - #3114 Berkeley, CA 94720-3114 chle...@nature.berkeley.edu -- Enter the BlackBerry Developer Challenge This is your chance to win up to $100,000 in prizes! For a limited time, vendors submitting new applications to BlackBerry App World(TM) will have the opportunity to enter the BlackBerry Developer Challenge. See full prize details at: http://p.sf.net/sfu/Challenge ___ Matplotlib-users mailing list Matplotlib-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-users
Re: [Matplotlib-users] Color Map
Ritayan Mitra wrote: Hello I am trying to use imshow as below im = imshow(Z, interpolation='spline16', origin='lower', cmap=cm.hot, extent=(-1.,1.,-1.,1.)) Trouble is I want to reverse the color gradient or use some colorscheme which has lighter color at the bottom and darker higher up. What is the easiest solution to this problem? Thanks a bunch. All the standard colormaps like cm.hot have reversed counterparts with _r appended to the name, so use cmap=cm.hot_r. Eric Rit -- Enter the BlackBerry Developer Challenge This is your chance to win up to $100,000 in prizes! For a limited time, vendors submitting new applications to BlackBerry App World(TM) will have the opportunity to enter the BlackBerry Developer Challenge. See full prize details at: http://p.sf.net/sfu/Challenge ___ Matplotlib-users mailing list Matplotlib-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-users
Re: [Matplotlib-users] Color Map
and if you look at the cookbook .. you can see all the available colormaps.. http://www.scipy.org/Cookbook/Matplotlib/Show_colormaps have fun On Mon, Jul 20, 2009 at 8:25 PM, Eric Firing efir...@hawaii.edu wrote: Ritayan Mitra wrote: Hello I am trying to use imshow as below im = imshow(Z, interpolation='spline16', origin='lower', cmap=cm.hot, extent=(-1.,1.,-1.,1.)) Trouble is I want to reverse the color gradient or use some colorscheme which has lighter color at the bottom and darker higher up. What is the easiest solution to this problem? Thanks a bunch. All the standard colormaps like cm.hot have reversed counterparts with _r appended to the name, so use cmap=cm.hot_r. Eric Rit -- Enter the BlackBerry Developer Challenge This is your chance to win up to $100,000 in prizes! For a limited time, vendors submitting new applications to BlackBerry App World(TM) will have the opportunity to enter the BlackBerry Developer Challenge. See full prize details at: http://p.sf.net/sfu/Challenge ___ Matplotlib-users mailing list Matplotlib-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-users -- Enter the BlackBerry Developer Challenge This is your chance to win up to $100,000 in prizes! For a limited time, vendors submitting new applications to BlackBerry App World(TM) will have the opportunity to enter the BlackBerry Developer Challenge. See full prize details at: http://p.sf.net/sfu/Challenge___ Matplotlib-users mailing list Matplotlib-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-users
Re: [Matplotlib-users] Color Map.
Title: Flashmail Thanks, that's look great. Regards. C. Unfortunately, I don't use Mayavi and therefore don't have any easy examples to offer. I guess you might find such things in the user guide or Cookbook. http://code.enthought.com/projects/mayavi/docs/development/html/mayavi/ http://www.scipy.org/Cookbook/MayaVi Cheers, Scott -- This SF.net email is sponsored by: SourcForge Community SourceForge wants to tell your story. http://p.sf.net/sfu/sf-spreadtheword___ Matplotlib-users mailing list Matplotlib-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-users
[Matplotlib-users] Color Map.
Hello folks, I´m a new user of this forum. I'm trying to work in Python at the moment but it´s quite difficult for me. My first question is if it is possible to do Color Maps in Matplotlib in the same manner of the mesh function in Matlab. Could you help me anybody? Thanks in advance. Regards. _ Nuevo Windows Live, un mundo lleno de posibilidades. Descúbrelo. http://www.microsoft.com/windows/windowslive/default.aspx-- This SF.net email is sponsored by: SourcForge Community SourceForge wants to tell your story. http://p.sf.net/sfu/sf-spreadtheword___ Matplotlib-users mailing list Matplotlib-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-users
Re: [Matplotlib-users] Color Map.
2009/1/15 Oscar ¿? piti...@hotmail.com I´m a new user of this forum. I'm trying to work in Python at the moment but it´s quite difficult for me. My first question is if it is possible to do Color Maps in Matplotlib in the same manner of the mesh function in Matlab. Could you help me anybody? Hi Oscar, Matplotlib is a purely 2D plotting library, it doesn't provide similar capability to the Matlab 'mesh' function. For 3D plotting you could use Mayavi http://code.enthought.com/projects/mayavi/ You can probably still get great visualization of your results using the Matplotlib functions pcolor, pcolormesh, contour, contourf or imshow. See the documentation and examples at these links to get started. http://matplotlib.sourceforge.net/api/pyplot_api.html#matplotlib.pyplot.pcolor http://matplotlib.sourceforge.net/api/pyplot_api.html#matplotlib.pyplot.pcolormesh http://matplotlib.sourceforge.net/api/pyplot_api.html#matplotlib.pyplot.imshow http://matplotlib.sourceforge.net/examples/pylab_examples/pcolor_demo.html http://matplotlib.sourceforge.net/examples/pylab_examples/pcolor_demo2.html http://matplotlib.sourceforge.net/examples/pylab_examples/quadmesh_demo.html http://matplotlib.sourceforge.net/examples/pylab_examples/contour_image.html Also look at the pyplot tutorial and post to the list if you get stuck. http://matplotlib.sourceforge.net/users/pyplot_tutorial.html Cheers, Scott -- This SF.net email is sponsored by: SourcForge Community SourceForge wants to tell your story. http://p.sf.net/sfu/sf-spreadtheword ___ Matplotlib-users mailing list Matplotlib-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-users
Re: [Matplotlib-users] Color Map.
2009/1/15 projet...@club-internet.fr: Matplotlib is a purely 2D plotting library, it doesn't provide similar capability to the Matlab 'mesh' function. For 3D plotting you could use Mayavi Do you have some example of Python programs using Mayavi ? Simple examples would be good ones. Please make sure to direct your response to the mailing list so that others can offer assistance, on this list that means using Reply-to-all. Unfortunately, I don't use Mayavi and therefore don't have any easy examples to offer. I guess you might find such things in the user guide or Cookbook. http://code.enthought.com/projects/mayavi/docs/development/html/mayavi/ http://www.scipy.org/Cookbook/MayaVi Cheers, Scott -- This SF.net email is sponsored by: SourcForge Community SourceForge wants to tell your story. http://p.sf.net/sfu/sf-spreadtheword ___ Matplotlib-users mailing list Matplotlib-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-users