Mercurial > hg > octave-nkf
comparison scripts/plot/__gnuplot_drawnow__.m @ 14235:921b15c13adc
Fix support for gnuplot's canvas (html5) terminal. Bug # 35332.
* __gnuplot_drawnow__.m: Set the size in pixels, not inches.
author | Ben Abbott <bpabbott@mac.com> |
---|---|
date | Thu, 19 Jan 2012 18:47:38 -0500 |
parents | f0d903879eaa |
children | 14d602c4f6e8 f3d52523cde1 |
comparison
equal
deleted
inserted
replaced
14234:938a8d792c37 | 14235:921b15c13adc |
---|---|
184 set (h, "units", units); | 184 set (h, "units", units); |
185 end_unwind_protect | 185 end_unwind_protect |
186 gnuplot_pos = position_in_pixels(1:2); | 186 gnuplot_pos = position_in_pixels(1:2); |
187 gnuplot_size = position_in_pixels(3:4); | 187 gnuplot_size = position_in_pixels(3:4); |
188 if (! (output_to_screen (term) | 188 if (! (output_to_screen (term) |
189 || any (strcmp (term, {"emf", "gif", "jpeg", "pbm", "png", ... | 189 || any (strcmp (term, {"canvas", "emf", "gif", "jpeg", ... |
190 "pngcairo", "svg"})))) | 190 "pbm", "png", "pngcairo", "svg"})))) |
191 ## Convert to inches | 191 ## Convert to inches |
192 gnuplot_pos = gnuplot_pos / 72; | 192 gnuplot_pos = gnuplot_pos / 72; |
193 gnuplot_size = gnuplot_size / 72; | 193 gnuplot_size = gnuplot_size / 72; |
194 endif | 194 endif |
195 if (all (gnuplot_size > 0)) | 195 if (all (gnuplot_size > 0)) |