From: M K on
Hi ,

I am using the mesh function to plot some wave field distributions in materials. I realised however, that some of the intricate parts of the field strengths a;hough present are not clear enough. I was wondering if there is some way I can increase the intensity of the color scale or perhaps use a different plotting function which provides more pronounced intensities?

I've tried the contourf function but that seems to provide very little detail. Mesh seems to provide the best so far but only need some more weight on the small intensities. Any suggestions would be most useful. thanks for your help


mesh(x,y,z)
From: Rune Allnor on
On 2 Okt, 12:21, "M K" <mah...(a)mathworks.com> wrote:
> Hi ,
>
> I am using the mesh function to plot some wave field distributions in materials. I realised however, that some of the intricate parts of the field strengths a;hough present are not clear enough. I was wondering if there is some way I can increase the intensity of the color scale or perhaps use a different plotting function which provides more pronounced intensities?
>
> I've tried the contourf function but that seems to provide very little detail.  Mesh seems to provide the best so far but only need some more weight on the small intensities. Any suggestions would be most useful. thanks for your help
>
> mesh(x,y,z)

Try SURF or CONTOURF followed by SHADING INTERP.

Rune

From: M K on
Thanks Rune,

shading interp under contourf gives me a warning (Warning: Color Data is not set for Interpolated shading) and doesn't plot anything in the figure window. However surf followed by shading interp gives the same result as mesh(x,y,z). Any way i can increase the intensity of the colour scale?

thanks again.
From: Rune Allnor on
On 2 Okt, 12:37, "M K" <mah...(a)mathworks.com> wrote:
> Thanks Rune,
>
> shading interp under contourf gives me a warning (Warning: Color Data is not set for Interpolated shading) and doesn't plot anything in the figure window. However surf followed by shading interp gives the same result as mesh(x,y,z). Any way i can increase the intensity of the colour scale?

Find out how to use adapt your data so that SURF or CONTOURF
work. Then use SHADING INTERP or SHADING FLAT.

Rune
From: Steven Lord on

"M K" <maha_k(a)mathworks.com> wrote in message
news:ha4k6d$d2o$1(a)fred.mathworks.com...
> Hi ,
>
> I am using the mesh function to plot some wave field distributions in
> materials. I realised however, that some of the intricate parts of the
> field strengths a;hough present are not clear enough. I was wondering if
> there is some way I can increase the intensity of the color scale or
> perhaps use a different plotting function which provides more pronounced
> intensities?

Use the fourth input argument, C, in your call to MESH; change the figure
Colormap (using the COLORMAP function); and/or change the mesh's CData and
CDataMapping properties.

http://www.mathworks.com/access/helpdesk/help/techdoc/ref/surface_props.html#CData

--
Steve Lord
slord(a)mathworks.com
comp.soft-sys.matlab (CSSM) FAQ: http://matlabwiki.mathworks.com/MATLAB_FAQ