Mercurial > hg > octave-lyh
comparison scripts/plot/private/__fltk_print__.m @ 14461:80e8c03548a4 gui
Merge default onto gui
author | Jordi Gutiérrez Hermoso <jordigh@octave.org> |
---|---|
date | Tue, 13 Mar 2012 19:11:52 -0400 |
parents | 1928af0f641b |
children | 86854d032a37 |
comparison
equal
deleted
inserted
replaced
14379:d738c29a2528 | 14461:80e8c03548a4 |
---|---|
146 upper (opts.devopt)); | 146 upper (opts.devopt)); |
147 endswitch | 147 endswitch |
148 | 148 |
149 opts.pipeline = pipeline; | 149 opts.pipeline = pipeline; |
150 | 150 |
151 ## Tell gl2ps to use different rendering options for 2D plots | |
152 haxes = findall (opts.figure, "type", "axes"); | |
153 vw = get (haxes, "view"); | |
154 if (iscell (vw)) | |
155 vw = vertcat (vw{:}); | |
156 end | |
157 is2D = all (abs (vw(:,2)) == 90); | |
158 if (is2D) | |
159 gl2ps_device{end} = [gl2ps_device{end}, "is2D"]; | |
160 endif | |
161 | |
151 for n = 1:numel(pipeline) | 162 for n = 1:numel(pipeline) |
152 if (opts.debug) | 163 if (opts.debug) |
153 fprintf ("fltk-pipeline: '%s'\n", pipeline{n}); | 164 fprintf ("fltk-pipeline: '%s'\n", pipeline{n}); |
154 endif | 165 endif |
155 drawnow (gl2ps_device{n}, strcat('|',pipeline{n})); | 166 drawnow (gl2ps_device{n}, strcat('|',pipeline{n})); |