Mercurial > hg > octave-lyh
comparison scripts/plot/gnuplot_drawnow.m @ 9161:406ed43c0233
gnuplot_drawnow.m: For figure size/position treat 'wxt' as 'x11'.
author | Ben Abbott <bpabbott@mac.com> |
---|---|
date | Thu, 30 Apr 2009 18:19:34 -0400 |
parents | 4bb94a71913b |
children | 470af0f93ca9 |
comparison
equal
deleted
inserted
replaced
9160:11e0f0e8ff00 | 9161:406ed43c0233 |
---|---|
185 strtrim (match{1}), term) | 185 strtrim (match{1}), term) |
186 endif | 186 endif |
187 if (all (gnuplot_size > 0)) | 187 if (all (gnuplot_size > 0)) |
188 ## Set terminal size. | 188 ## Set terminal size. |
189 terminals_with_size = {"emf", "gif", "jpeg", "latex", "pbm", ... | 189 terminals_with_size = {"emf", "gif", "jpeg", "latex", "pbm", ... |
190 "pdf", "png", "postscript", "svg", "wxt", ... | 190 "pdf", "png", "postscript", "svg", ... |
191 "epslatex", "pstex", "pslatex"}; | 191 "epslatex", "pstex", "pslatex"}; |
192 if (__gnuplot_has_feature__ ("x11_figure_position")) | 192 if (__gnuplot_has_feature__ ("x11_figure_position")) |
193 terminals_with_size{end+1} = "x11"; | 193 terminals_with_size{end+1} = "x11"; |
194 terminals_with_size{end+1} = "wxt"; | |
194 endif | 195 endif |
195 if (any (strncmpi (term, terminals_with_size, 3))) | 196 if (any (strncmpi (term, terminals_with_size, 3))) |
196 if (term_units_are_pixels (term)) | 197 if (term_units_are_pixels (term)) |
197 size_str = sprintf ("size %d,%d", gnuplot_size(1), gnuplot_size(2)); | 198 size_str = sprintf ("size %d,%d", gnuplot_size(1), gnuplot_size(2)); |
198 else | 199 else |