[Matplotlib-users] colormap: values to colors

2010-09-17 Thread Martinho MA
Hello I am trying to calculate the facecolors for the Axes3D.plot_surface function, to have something similar to matlab surf 4th argument!! Something like plot_surface(x,y,z,facecolors=calc_colors(v)) So, I need to obtain the colors corresponding to the values of v! I created the function

Re: [Matplotlib-users] colormap: values to colors

2010-09-17 Thread Martinho MA
mm.to_rgba(var.flat) doesn't work as plot_surface facecolors, but mm.to_rgba(var) does! Thanks for the hint mma Benjamin Root wrote: On Fri, Sep 17, 2010 at 8:59 AM, Martinho MA m...@ua.pt mailto:m...@ua.pt wrote: Hello I am trying to calculate the facecolors

Re: [Matplotlib-users] matlab vs pylab png output

2009-01-14 Thread Martinho MA
(to linux python) http://neptuno.fis.ua.pt/tmp/test_EPD.png Thanks for the help mma John Hunter wrote: On Tue, Jan 13, 2009 at 12:16 PM, Martinho MA m...@ua.pt wrote: Hello, I have a problem saving png files created from data with missing values. The matlab and pylab outputs are very different

[Matplotlib-users] matlab vs pylab png output

2009-01-13 Thread Martinho MA
Hello, I have a problem saving png files created from data with missing values. The matlab and pylab outputs are very different... pylab resolution is poorer !? the saving commands from matlab and python are similar: matlab: print -dpng -r80 test_matlab.png python: