comparison scripts/plot/mesh.m @ 14411:b9630dfc4fd9

Add mesh() demos. * mesh.m: Add demos for linear and log zscale. The log scale demo reveals a bug present in Gnuplot 4.4.x.
author Ben Abbott <bpabbott@mac.com>
date Sat, 25 Feb 2012 17:06:44 -0500
parents 72c96de7a403
children c4a2eac243b4
comparison
equal deleted inserted replaced
14410:f3c958ae393d 14411:b9630dfc4fd9
61 endif 61 endif
62 62
63 endfunction 63 endfunction
64 64
65 65
66 %% FIXME: Need demo or test for function 66 %!demo
67 %! clf ();
68 %! x = logspace(0,1,11);
69 %! z = x'*x;
70 %! mesh (x, x, z, z.^2);
71 %! xlabel xlabel
72 %! ylabel ylabel
73 %! zlabel "linear scale"
74 %! if (strcmp (get (gcf, "__graphics_toolkit__"), "gnuplot"))
75 %! title ("Gnuplot's mesh color is correct")
76 %! endif
67 77
78 %!demo
79 %! clf ();
80 %! x = logspace(0,1,11);
81 %! z = x'*x;
82 %! mesh (x, x, z, z.^2);
83 %! set (gca, "zscale", "log")
84 %! xlabel xlabel
85 %! ylabel ylabel
86 %! zlabel "log scale"
87 %! if (strcmp (get (gcf, "__graphics_toolkit__"), "gnuplot"))
88 %! title ({"Gnuplot's mesh color is wrong", "This a Gnuplot bug"})
89 %! endif
90