[Tugindia] Increasing size of legends in plots

Asha G dendron.15 at gmail.com
Sat Jul 9 06:39:02 CEST 2011


In the gnuplot terminal window, you normally enter commands like
> plot 'data1.txt' with linespoints
> etc.  Once you complete the plot with legends, xtitle, ytitle, etc.,
> save the plot as say, 'first.plt' (the default extension). The advantage
> of gnuplot is that you can open any editor and type these commands
> one after another and save it as a*.plt file.  Then you can load this
> file in the gp terminal window to get the plot.
>
> Similarly in another file, type the following commands:
> (1. I assume that you are using MS Windows.  If not, remove the
> 'set term window' from the following.
> 2. To load the plt file, first you have to cd to that folder.)
>
> set term window
> load 'first.plt'                          # Now you can see the graph in
> the screen
> set terminal eepic 12pt rotate
> set out 'newfig.tex'
> replot
> set out            # This is necessary to complete the export of the graph
> to *.tex format
> set term window
> pause -1
>

I am not using MS word. I am doing my simulations in Ocatave and it prints
out the plot in gnuplot which I save as .eps files. I take the .eps files
and put it into my tex document. Are you suggesting that instead of .eps I
get .plt files into the .tex document. If so, how does one compile it. I
currently use LATEX, LATEX, BIBTEX, LATEX and then convert dvi to ps and ps
to pdf to get my final document.

>
> It is unclear how I go into GNU Plot other than inserting some code into my
octave files which I already have done to enlarge everything except the
legend. I don't know how to do that.

Thanks in advance for your help.
Asha Gopinathan
Trivandrum


More information about the tugindia mailing list