|
From: David R. <dro...@ya...> - 2012-02-14 17:39:46
|
Hi Thanks for the help. That solved it completely!! David >________________________________ > De: Thomas Sefzick <t.s...@fz...> >Para: gnu...@li... >Enviado: Martes 14 de febrero de 2012 14:21 >Asunto: Re: [Gnuplot-info] A figure within a figure > >David Rodenas <drodenasherraiz <at> yahoo.es> writes: > >> >> Hi all >> >12345678901234567890123456789012345678901234567890123456789012345678901234567890 >> I am an experimented user of gnuplot, but I cannot plot a specific figure. I >want to plot a figure with grids, >> and within this figure, I also want to plot another one of smaller size with >its respective grid. My problem >> is that the first grid is above the second figure. I've attached to this email >an example of what I need. >> Is that possible? >> >> I write the code that I am using next: >> >-------------------------------------------------------------------------------- >> >> set multiplot; >> set size SX,SY >> >> set origin DX,DY; >> set key 10,1950 font "Helvetica,16" >> set ylabel "YLABEL" font "Helvetica,16" >> set ylabel "XLABEL" font "Helvetica,16" >> >> set yrange [0:2000] >> set grid >> plot "file1.dat" using 1:3:4 title 'one' with yerrorlines lw 2 pt 1 >linecolor rgb "red",\ >> "file2.dat" using 1:3:4 title 'two' with yerrorlines lw 2 pt 3 linecolor >rgb "blue" >> >> set size 0.30,0.30 >> >> set style fill solid 1.0 >> set origin DX+0.08,DY+0.28 >> set ylabel "YLABEL" 1 font "Helvetica,9" >> set xlabel "XLABEL" font "Helvetica,9" >> set ytics font "Helvetica,8" >> set xtics font "Helvetica,8" >> set xrange [1:14] >> set yrange [10:365] >> unset key >> replot >> unset multiplot >> >-------------------------------------------------------------------------------- >> >> Thanks for the help >> >> David >> > >draw a rectangle on top of the 1st plot and delete it >before doing the 2nd plot: > >... > >set yrange [0:2000] >set grid > >set object 1 rectangle from screen 0.08,0.28 rto 0.3,0.3 > >plot "file1.dat" using 1:3:4 title 'one' with yerrorlines \ > lw 2 pt 1 linecolor rgb "red",\ > "file2.dat" using 1:3:4 title 'two' with yerrorlines \ > lw 2 pt 3 linecolor rgb "blue" > >unset object 1 > >... > > >------------------------------------------------------------------------------ >Keep Your Developer Skills Current with LearnDevNow! >The most comprehensive online learning library for Microsoft developers >is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3, >Metro Style Apps, more. Free future releases when you subscribe now! >http://p.sf.net/sfu/learndevnow-d2d >_______________________________________________ >gnuplot-info mailing list >gnu...@li... >https://lists.sourceforge.net/lists/listinfo/gnuplot-info > > > |