Mercurial > hg > octave-max
comparison scripts/plot/__go_draw_figure__.m @ 12052:b50d1eb62747 release-3-2-x
Avoid the flickering x11 window seen with rapid gnuplot updates.
author | Ben Abbott <bpabbott@mac.com> |
---|---|
date | Thu, 06 Aug 2009 07:30:34 +0200 |
parents | ff22f50a0266 |
children | fea3d4868692 |
comparison
equal
deleted
inserted
replaced
12051:f3bf489b7322 | 12052:b50d1eb62747 |
---|---|
65 nkids = length (kids); | 65 nkids = length (kids); |
66 | 66 |
67 if (nkids > 0) | 67 if (nkids > 0) |
68 fputs (plot_stream, "\nreset;\n"); | 68 fputs (plot_stream, "\nreset;\n"); |
69 fputs (plot_stream, "set autoscale keepfix;\n"); | 69 fputs (plot_stream, "set autoscale keepfix;\n"); |
70 fputs (plot_stream, "set multiplot;\n"); | |
71 fputs (plot_stream, "set origin 0, 0\n"); | 70 fputs (plot_stream, "set origin 0, 0\n"); |
72 fputs (plot_stream, "set size 1, 1\n"); | 71 fputs (plot_stream, "set size 1, 1\n"); |
73 for i = 1:nkids | 72 for i = 1:nkids |
74 type = get (kids(i), "type"); | 73 type = get (kids(i), "type"); |
75 switch (type) | 74 switch (type) |
94 end_unwind_protect | 93 end_unwind_protect |
95 otherwise | 94 otherwise |
96 error ("__go_draw_figure__: unknown object class, %s", type); | 95 error ("__go_draw_figure__: unknown object class, %s", type); |
97 endswitch | 96 endswitch |
98 endfor | 97 endfor |
99 fputs (plot_stream, "unset multiplot;\n"); | |
100 else | 98 else |
101 fputs (plot_stream, "\nreset; clear;\n"); | 99 fputs (plot_stream, "\nreset; clear;\n"); |
102 fflush (plot_stream); | 100 fflush (plot_stream); |
103 endif | 101 endif |
104 else | 102 else |