help-octave
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Plots in LaTeX


From: Jason Martin
Subject: Plots in LaTeX
Date: Tue, 23 Mar 2010 13:38:02 -0400
User-agent: Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US; rv:1.9.1.8) Gecko/20100227 Thunderbird/3.0.3

Good afternoon everyone,

    I have found this website, http://www.reimeika.ca/marco/prettyplots, which describes, roughly middle of the page, howto us psfrag to replace labels in an eps file when inserting the eps into LaTeX.  The problem that I am having is that LaTeX is telling me that the file is an unknown extension.  When I use the package epstopdf, the eps is included properly, but I can't even attempt to use psfrag to replace some simple labels in the eps file since it is no longer an eps file.  I know that I can use some LaTeX commands when plotting, but when I try:

figure(3);

plot(ff0/pi,abs(G));

line([pstart,pstart],[0,1],"color","magenta");

line([pstop,pstop],[0,1],"color","magenta");

line([0,2],[pmax,pmax],"color","magenta");

xlabel ('\frac{f}{f_0}');

ylabel('\Gamma');

text(0.6,0.05,'\leftarrow f_{start} = 8 GHz');

text(1.6,0.05,'\leftarrow f_{stop} = 22 GHz');

text(1,0.025,'\Gamma_m');

print -depsc2 chebN6full.eps;



    I will get everything to look correctly, except the fraction, it comes out as fracff0. 

    Also, is my understanding correct on the following print -d"device" commands?

-dtex filename.tex

-depslatex filename.eps

-depslatexstandalone I have no idea what extension to use here, and the manual doesn't explain either

-dpstex    filename.ps

-dpslatex    filename.ps


    Thanks in advance for any help.

Jason

reply via email to

[Prev in Thread] Current Thread [Next in Thread]