|
View:
New views
3 Messages
—
Rating Filter:
Alert me
|
|
|
gnuplot terminal activationHi,
I'm using Octave 2.9.16. The news for this version are that __gnuplot_set__ will be removed in the next version. I use this comand to obtain a plot in other format by changing the terminal. For example: __gnuplot_set__('terminal gpic'); to set the terminal that allows gnuplot save the graphic in the 'pic' format. I think this is the only way to get it because other functions, as 'imwrite', use imagemagick that no supports pic format. I would like to use again the possibility of __gnuplot_set__ but even Octave 2.9.16 give me an error. I try to use __gnuplot_raw__, but it didn't work, although I didn't get an error. Besides, the command replot seems to no work in this version. I would thank you any suggestion to get a similar result that I got with the following lines: octave:> __gnuplot_set__('terminal gpic'); octave:> __gnuplot_set__ output "figura.m4"; octave:> replot; octave:> __gnuplot_set__('terminal x11'); Thank you very much, Juanjo |
|
|
Re: gnuplot terminal activationI am replying to myself hoping that it will be helpful for somebody.
It seems that the use of __gnuplot_raw__ as, octave:> __gnuplot_raw__("set terminal gpic;\n") octave:> __gnuplot_raw__("set output 'figura.m4';\n") octave:> replot; octave:> __gnuplot_raw__("set terminal x11;\n") works or at least it should work. I think the problem is with the 'replot' function because it doesn't work in octave 2.9.16. However, I have doubts because when the gpic terminal is activated the next plot should go to that terminal instead of the x11 terminal (screen) and the function plot gives a new plot on the screen. I suppose it will be solved in next versions. |
|
|
Re: gnuplot terminal activationOn 2-Feb-2008, juanjo wrote:
| I am replying to myself hoping that it will be helpful for somebody. | | It seems that the use of __gnuplot_raw__ as, | | octave:> __gnuplot_raw__("set terminal gpic;\n") | octave:> __gnuplot_raw__("set output 'figura.m4';\n") | octave:> replot; | octave:> __gnuplot_raw__("set terminal x11;\n") | | works or at least it should work. I think the problem is with the 'replot' | function because it doesn't work in octave 2.9.16. Now that 3.0.0 has been released, 2.9.16 is obsolete. Please consider upgrading. | However, I have doubts because when the gpic terminal is activated the next | plot should go to that terminal instead of the x11 terminal (screen) and the | function plot gives a new plot on the screen. I suppose it will be solved in | next versions. See the NEWS file for Octave 3.0.0. The __gnuplot_X__ functions no longer have any effect on plots generated with the higher level plot functions like plot, semilogx, mesh, etc., and will be removed from a future version of Octave (they are already gone from the main development branch in CVS). jwe _______________________________________________ Help-octave mailing list Help-octave@... https://www.cae.wisc.edu/mailman/listinfo/help-octave |
| Free embeddable forum powered by Nabble | Forum Help |