[Matplotlib-users] contourf/colorbar logarithmic value scale

2009-05-11 Thread Christian K .
Hi,

could someone please point me to an example which shows how to achieve a filled 
contour plot with a logarithmic value scale both for the contour data and the 
colorbar?

Thanks in advance, Christian



--
The NEW KODAK i700 Series Scanners deliver under ANY circumstances! Your
production scanning environment may not be a perfect world - but thanks to
Kodak, there's a perfect scanner to get the job done! With the NEW KODAK i700
Series Scanner you'll get full speed at 300 dpi even with all image 
processing features enabled. http://p.sf.net/sfu/kodak-com
___
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users


Re: [Matplotlib-users] contourf/colorbar logarithmic value scale

2009-05-12 Thread Christian K .

Christian K.  writes:
> 
> Hi,
> 
> could someone please point me to an example which shows how to achieve a 
filled 
> contour plot with a logarithmic value scale both for the contour data and the 
> colorbar?
> 
> Thanks in advance, Christian
> 

I just noticed that this has been discussed recently. Sorry for not doing my 
homework.

Christian



--
The NEW KODAK i700 Series Scanners deliver under ANY circumstances! Your
production scanning environment may not be a perfect world - but thanks to
Kodak, there's a perfect scanner to get the job done! With the NEW KODAK i700
Series Scanner you'll get full speed at 300 dpi even with all image 
processing features enabled. http://p.sf.net/sfu/kodak-com
___
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users


[Matplotlib-users] continous colormap with 'plateau'

2009-05-12 Thread Christian K .
Hi everyone,

is it possible to map a certain range within the value-range of a image plot to 
a constant value? Currently I am overlaying a filled contour plot with just two 
contour levels on top of an image plot. This works, but I would like to display 
the plateau in the colorbar as well, so that the color changes continously over 
the whole value range but in the specified range where it should remain white. 
I guess I would need a special colormapper to achieve that.

Thanks in advance for any pointers, Christian



--
The NEW KODAK i700 Series Scanners deliver under ANY circumstances! Your
production scanning environment may not be a perfect world - but thanks to
Kodak, there's a perfect scanner to get the job done! With the NEW KODAK i700
Series Scanner you'll get full speed at 300 dpi even with all image 
processing features enabled. http://p.sf.net/sfu/kodak-com
___
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users


Re: [Matplotlib-users] continous colormap with 'plateau'

2009-05-12 Thread Christian K.
Eric Firing schrieb:
> Christian K. wrote:
>> Hi everyone,
>> 
>> is it possible to map a certain range within the value-range of a image plot 
>> to 
>> a constant value? Currently I am overlaying a filled contour plot with just 
>> two 
>> contour levels on top of an image plot. This works, but I would like to 
>> display 
>> the plateau in the colorbar as well, so that the color changes continously 
>> over 
>> the whole value range but in the specified range where it should remain 
>> white. 
>> I guess I would need a special colormapper to achieve that.
> 
> Yes. See 
> http://matplotlib.sourceforge.net/examples/pylab_examples/custom_cmap.html
> for an explanation of how to make one.
> 
> Actually, you can achieve what you want with either a special cmap, or 
> with a special norm.  I don't think we have any examples of the latter.

Tahsnk, Eric. I know understand how to create a discontinous colormap. 
However I cannot think of an elegant way how to map the data value range 
to the [0,1] color map range so that always the _value_ range between 
e.g. 0.41 and 0.43 will be displayed white regardless of the lower and 
upper bounds of the data value range.

Regards, Christian


--
The NEW KODAK i700 Series Scanners deliver under ANY circumstances! Your
production scanning environment may not be a perfect world - but thanks to
Kodak, there's a perfect scanner to get the job done! With the NEW KODAK i700
Series Scanner you'll get full speed at 300 dpi even with all image 
processing features enabled. http://p.sf.net/sfu/kodak-com
___
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users


Re: [Matplotlib-users] fiitting data

2007-05-17 Thread Christian K
darkside wrote:
> 
> 
> Hello everyone:
> My question is not only about matplotlib, but I wonder if I can do what
> I want with some matplotlib subroutine, instead of the one for scipy.
> I'm new using scipy, so I'm sorry if any of my questions are silly.
> 
> I'm trying to find the maxima, absolut and local, of a function, in order to
> fit an exponencial curve and get de exponecial argument.
> 
> My function if the soluction of a couple equations system:
> 
> def derivs3(x,t,gamma,omega,dl):
> d1 =  omega*x[2] - gamma *x[0]
> d2 =  dl*x[2] - (gamma/2.)* x[1]
> d3 =  -omega *x[0] - dl*x[1] - (gamma/2.)* x[2] + (omega/2.)
> return d1,d2,d3
> def solucion(a,t,gamma, omega, dl):
> sol=odeint(derivs3,a,t,(gamma,omega,dl))
> return sol
> --
> The case I'm interesting in, the soluction have the form of a sin*exp, so I
> want to find the function that envolves it, a exponencial function.
> To do this, I can find the maximas, and fit them, so I use:

Why don't you fit the solution to sin*exp? You could estimate frequency/phase
via fft and use it as an initial guess.

Christian

ps: It's considered to be rude to post the same message three times within one
day. Btw. many people here read both scipy and matplotlib mailing lists.


-
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
___
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users