From: bosco yu on
Hello Sir or Madam,
I am currently plotting a surface using the following code:
surf( z, 'FaceColor', 'none' , 'EdgeColor', 'blue').

This code allows me to make a transparent face plot of z as a function of x and y. However, the indices of x and y are not shown. I tried to change the ticks in the property editor, but i do not know the exact index of the x and y.

Then I tried the following code:
surf(x,y,z, 'FaceColor', 'none' , 'EdgeColor', 'blue')
This code give me the right index; however, the facecolor is now the"rainbow color".

I wonder if there is a simple code that both gives the correct index and the face color to be transparent. Thank you for your attention.

Regards,
Bosco
From: us on
"bosco yu" <bosco.yu(a)utoronto.ca> wrote in message <hsc82l$jdl$1(a)fred.mathworks.com>...
> Hello Sir or Madam,
> I am currently plotting a surface using the following code:
> surf( z, 'FaceColor', 'none' , 'EdgeColor', 'blue').
>
> This code allows me to make a transparent face plot of z as a function of x and y. However, the indices of x and y are not shown. I tried to change the ticks in the property editor, but i do not know the exact index of the x and y.
>
> Then I tried the following code:
> surf(x,y,z, 'FaceColor', 'none' , 'EdgeColor', 'blue')
> This code give me the right index; however, the facecolor is now the"rainbow color".
>
> I wonder if there is a simple code that both gives the correct index and the face color to be transparent. Thank you for your attention.
>
> Regards,
> Bosco

a hint:

help mesh;

us