[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Octave-bug-tracker] [bug #35033] mangled filled contour plot
From: |
Ben Abbott |
Subject: |
[Octave-bug-tracker] [bug #35033] mangled filled contour plot |
Date: |
Sun, 11 Dec 2011 19:14:25 +0000 |
User-agent: |
Mozilla/5.0 (Macintosh; Intel Mac OS X 10_7_2) AppleWebKit/535.2 (KHTML, like Gecko) Chrome/15.0.874.121 Safari/535.2 |
Follow-up Comment #1, bug #35033 (project octave):
Another example is below
N = 601;
D = round (N/3);
M = round ((N-1) / 10) + 1;
z1 = rand (M, M);
x1 = 10 * ((1:M) - 1) + 1;
[x1, y1] = meshgrid (x1, x1);
[x, y] = meshgrid (1:N, 1:N);
z = 0.5 * (round (2 * interp2 (x1, y1, z1, x, y)) == 2);
r = min (abs (x - D * round (x / D)), abs (y - D * round (y / D)));
z(r < ceil (D/20)) = 1;
contourf (z)
caxis ([0 1])
colorbar
_______________________________________________________
Reply to this item at:
<http://savannah.gnu.org/bugs/?35033>
_______________________________________________
Message sent via/by Savannah
http://savannah.gnu.org/