Mercurial > hg > octave-lyh
changeset 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 | 938a8d792c37 |
children | 35903f035390 |
files | scripts/plot/__gnuplot_drawnow__.m |
diffstat | 1 files changed, 2 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/scripts/plot/__gnuplot_drawnow__.m +++ b/scripts/plot/__gnuplot_drawnow__.m @@ -186,8 +186,8 @@ gnuplot_pos = position_in_pixels(1:2); gnuplot_size = position_in_pixels(3:4); if (! (output_to_screen (term) - || any (strcmp (term, {"emf", "gif", "jpeg", "pbm", "png", ... - "pngcairo", "svg"})))) + || any (strcmp (term, {"canvas", "emf", "gif", "jpeg", ... + "pbm", "png", "pngcairo", "svg"})))) ## Convert to inches gnuplot_pos = gnuplot_pos / 72; gnuplot_size = gnuplot_size / 72;