Mercurial > hg > octave-lyh
comparison scripts/plot/hidden.m @ 8190:73d6b71788c0
use case-insensitive comparison for graphics properties; misc style fixes
author | John W. Eaton <jwe@octave.org> |
---|---|
date | Mon, 06 Oct 2008 21:06:05 -0400 |
parents | 5c121a8b40b5 |
children | 5dd06f19e9be |
comparison
equal
deleted
inserted
replaced
8189:8e8afefe9466 | 8190:73d6b71788c0 |
---|---|
47 for h = get (gca (), "children"); | 47 for h = get (gca (), "children"); |
48 htype = lower (get (h, "type")); | 48 htype = lower (get (h, "type")); |
49 if (strcmp (htype, "surface")) | 49 if (strcmp (htype, "surface")) |
50 fc = get (h, "facecolor"); | 50 fc = get (h, "facecolor"); |
51 if ((! ischar (fc) && is_white (fc)) | 51 if ((! ischar (fc) && is_white (fc)) |
52 || (ischar (fc) && strcmp (fc, "none"))) | 52 || (ischar (fc) && strcmpi (fc, "none"))) |
53 switch (mode) | 53 switch (mode) |
54 case "on" | 54 case "on" |
55 set (h, "facecolor", "w"); | 55 set (h, "facecolor", "w"); |
56 case "off" | 56 case "off" |
57 set (h, "facecolor", "none"); | 57 set (h, "facecolor", "none"); |