Mercurial > octave-nkf
comparison scripts/plot/util/__gnuplot_drawnow__.m @ 20626:5fc798a9b32c
maint: Periodic merge of stable to default.
author | Rik <rik@octave.org> |
---|---|
date | Fri, 09 Oct 2015 19:28:05 -0700 |
parents | 755ba248fb4a af5591ef9790 |
children |
comparison
equal
deleted
inserted
replaced
20624:7c0e10f035bd | 20626:5fc798a9b32c |
---|---|
183 gnuplot_size = position_in_pixels(3:4); | 183 gnuplot_size = position_in_pixels(3:4); |
184 if (! (output_to_screen (term) | 184 if (! (output_to_screen (term) |
185 || any (strcmp (term, {"canvas", "emf", "gif", "jpeg", ... | 185 || any (strcmp (term, {"canvas", "emf", "gif", "jpeg", ... |
186 "pbm", "png", "pngcairo", "svg"})))) | 186 "pbm", "png", "pngcairo", "svg"})))) |
187 ## Convert to inches | 187 ## Convert to inches |
188 gnuplot_pos /= 72; | 188 gnuplot_pos = gnuplot_pos / get (0, "screenpixelsperinch"); |
189 gnuplot_size /= 72; | 189 gnuplot_size = gnuplot_size / get (0, "screenpixelsperinch"); |
190 endif | 190 endif |
191 if (all (gnuplot_size > 0)) | 191 if (all (gnuplot_size > 0)) |
192 terminals_with_size = {"canvas", "emf", "epslatex", "fig", ... | 192 terminals_with_size = {"canvas", "emf", "epslatex", "fig", ... |
193 "gif", "jpeg", "latex", "pbm", "pdf", ... | 193 "gif", "jpeg", "latex", "pbm", "pdf", ... |
194 "pdfcairo", "postscript", "png", ... | 194 "pdfcairo", "postscript", "png", ... |