help-octave
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: contour plotting with


From: Markus Mützel
Subject: Re: contour plotting with
Date: Wed, 3 Jun 2020 11:58:11 +0200

Am 03. Juni 2020 um 11:51 Uhr schrieb mishal0488:
> Hi Markus
>
> Thanks for the suggestion.
>
> I managed t get it to work using a number however using NaN does not plot 
> anything. Do you perhaps any further guidance?

NaN works for me with Octave 5.2 (adapted from "demo contour 1"):

clf (figure (1));
colormap ("default");
[x, y, z] = peaks ();
contour (x, y, z);
title ({"contour() plot (isolines of constant Z)"; "Z = peaks()"});

clf (figure (2));
colormap ("default");
z(abs(x) <= 0.5) = NaN;
contour (x, y, z);
title ({"contour() plot (isolines of constant Z)"; "without stripe at center"});


HTH,
Markus




reply via email to

[Prev in Thread] Current Thread [Next in Thread]