|
On 1/26/2012 9:30 AM, Sargondjani wrote:
> hi,
>
> im always struggling with surf (or mesh) plots. with normal plots i do:
>
> figure
> plot(x1,y1)
>
> figure
> plot(x2,y2)
>
> and i get two figures (perfect!). but if i do:
> figure
> surf(x1,y1,z1)
>
> figure
> surf(x2,y2,z2)
>
> the second surface plot 'overwrites' the first one (and the same happens
> with mesh(x,y,z)). why/how is surf different from normal plot? and how
> should i solve this?
What does
gcf
return? 2 after the second call, I presume?
Not sure why, but surf and mesh use low level calls only and begin w/ a
call new the function newplot() which may be behaving badly is my
conjecture...
The sequence performs as expected here w/ an earlier release (R12) so
I'd submit an official query to TMW as to why/when behavior actually
changed.
--
|