Mercurial > octave-nkf
comparison scripts/plot/gnuplot_drawnow.m @ 11576:8ac9687dbe9f
rename backend to graphics_toolkit
author | John W. Eaton <jwe@octave.org> |
---|---|
date | Thu, 20 Jan 2011 02:29:57 -0500 |
parents | fd0a3ac60b0e |
children | c792872f8942 |
comparison
equal
deleted
inserted
replaced
11575:d6619410e79c | 11576:8ac9687dbe9f |
---|---|
115 | 115 |
116 function enhanced = gnuplot_set_term (plot_stream, new_stream, h, term, file) | 116 function enhanced = gnuplot_set_term (plot_stream, new_stream, h, term, file) |
117 ## Generate the gnuplot "set terminal <term> ..." command. | 117 ## Generate the gnuplot "set terminal <term> ..." command. |
118 ## When "term" originates from print.m, it may include other options. | 118 ## When "term" originates from print.m, it may include other options. |
119 if (nargin < 4) | 119 if (nargin < 4) |
120 ## This supports the gnuplot backend. | 120 ## This supports the gnuplot graphics toolkit. |
121 term = gnuplot_default_term (); | 121 term = gnuplot_default_term (); |
122 opts_str = ""; | 122 opts_str = ""; |
123 else | 123 else |
124 ## Get the one word terminal id and save the remaining as options to | 124 ## Get the one word terminal id and save the remaining as options to |
125 ## be passed on to gnuplot. The terminal may respect the backend. | 125 ## be passed on to gnuplot. The terminal may respect the graphics |
126 ## toolkit. | |
126 [term, opts_str] = gnuplot_trim_term (term); | 127 [term, opts_str] = gnuplot_trim_term (term); |
127 term = lower (term); | 128 term = lower (term); |
128 if (strcmpi (term, "lua")) | 129 if (strcmpi (term, "lua")) |
129 ## Replace "lau tikz" with | 130 ## Replace "lau tikz" with |
130 term = "tikz"; | 131 term = "tikz"; |
147 enh_str = ""; | 148 enh_str = ""; |
148 endif | 149 endif |
149 | 150 |
150 if (! isempty (h) && isfigure (h)) | 151 if (! isempty (h) && isfigure (h)) |
151 | 152 |
152 ## Generate gnuplot title string for backend plot windows. | 153 ## Generate gnuplot title string for plot windows. |
153 if (output_to_screen (term) && ~strcmp (term, "dumb")) | 154 if (output_to_screen (term) && ~strcmp (term, "dumb")) |
154 fig.numbertitle = get (h, "numbertitle"); | 155 fig.numbertitle = get (h, "numbertitle"); |
155 fig.name = get (h, "name"); | 156 fig.name = get (h, "name"); |
156 if (strcmpi (get (h, "numbertitle"), "on")) | 157 if (strcmpi (get (h, "numbertitle"), "on")) |
157 title_str = sprintf ("Figure %d", h); | 158 title_str = sprintf ("Figure %d", h); |