|
From: Jefferson S. E. P. <st...@gm...> - 2013-06-12 23:24:52
|
I apologize. My 'quick reaction' was too quick. You're right, I have been using a lot o Octave (MATLAB-like) lately and, although it's not completely unrelated to gnuplot, my suggestion works only in octave/matlab, not gnuplot. Sorry for that. In order to partially make up for my bad, I can solve your first problem: just issue a > reset after changing to the new terminal to set most things to their default. But I don't find a satisfying way of achieving the separate objects you really want. Maybe you'd have to go for something like macros - but I'll let competent people advice you on that. :-) Best, Jefferson On Wed, Jun 12, 2013 at 11:52 PM, Milind Gupta <mil...@gm...>wrote: > Thanks for the reply. I didn't know about the figure command. I have used > that in MATLAB, didn't know it exists here too. I cannot find it in the > documentation though and just typing figure on the command gives invalid > command response from gnuplot. How do I use it? Also does a figure come in > separate windows like MATLAB or is it more like a subplot in the same > window? > > Thanks > > > On Wed, Jun 12, 2013 at 12:29 PM, Jefferson Stafusa E. Portela < > st...@gm...> wrote: > >> A quick reaction: instead of resetting the 'term' you could try creating >> new figures, with, say, 'figure(2)'. Then to go back to a n-th figure, just >> type 'figure(n)'. Hope that helps. >> []s >> Stafusa >> >> >> >> On Wed, Jun 12, 2013 at 7:45 PM, Milind Gupta <mil...@gm...>wrote: >> >>> Hi, >>> I just started using gnuplot. What I am trying to do is have 2 >>> plots >>> and change settings in both of them but not necessarily in 1 sequential >>> order. For example I do this: >>> >>> >>> gnuplot> set term wxt 0 >>> gnuplot> set title "My 1st plot" >>> gnuplot> plot sin(x)/x >>> gnuplot> set term wxt 1 >>> gnuplot> plot sin(x) >>> gnuplot> set term wxt 0 >>> gnuplot> set title "My 1st plot revisit" >>> gnuplot> replot >>> >>> 1st Problem: >>> After the 1st plot statement I have a sin(x)/x plot with the title My >>> 1st >>> plot - so far so good >>> Then I have a second plot window but the title carries over! This is my >>> 1st >>> problem. >>> >>> Does the settings that have been done for 1 plot always carry over? Is >>> there any way to start fresh for the new plot with the default settings? >>> >>> 2nd problem: >>> After the second plot I go back to the 1st window and change my title and >>> do a replot. It changes the plot to a sin(x) plot. So it has no tracking >>> of >>> what plot each window has. >>> >>> I would really like to have each plot as a separate object in which I can >>> manipulate and change its parameters and changing one should not affect >>> the >>> settings of the other if I redraw it. >>> >>> Is it possible to do that? >>> >>> Thanks, >>> Milind >>> >>> ------------------------------------------------------------------------------ >>> This SF.net email is sponsored by Windows: >>> >>> Build for Windows Store. >>> >>> http://p.sf.net/sfu/windows-dev2dev >>> _______________________________________________ >>> gnuplot-info mailing list >>> gnu...@li... >>> https://lists.sourceforge.net/lists/listinfo/gnuplot-info >>> >> >> > |