Graphics, Figures & TablesHow can I draw plots in LaTeX?

Information and discussion about graphics, figures & tables in LaTeX documents.
Post Reply
ditka
Posts: 85
Joined: Fri Jul 13, 2012 11:59 am

Re: latex,gnuplot

Post by ditka »

Well, I have problem using gnuplot in pretty much in any way.

Is there any known inconpatibilites between latex and latest version of gnuplo?

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org

NEW: TikZ book now 40% off at Amazon.com for a short time.

User avatar
cgnieder
Site Moderator
Posts: 2000
Joined: Sat Apr 16, 2011 7:27 pm

Re: latex,gnuplot

Post by cgnieder »

If gnuplot works for you on it's own it might be interesting to see the log file of the small example you posted.
site moderator & package author
ditka
Posts: 85
Joined: Fri Jul 13, 2012 11:59 am

Re: latex,gnuplot

Post by ditka »

Here it is. Yes gnuplot on its own forks fine.
Attachments
fs.txt
(11.02 KiB) Downloaded 340 times
User avatar
cgnieder
Site Moderator
Posts: 2000
Joined: Sat Apr 16, 2011 7:27 pm

How can I draw plots in LaTeX?

Post by cgnieder »

This looks like you did not run pdflatex with »shell-escape« (also know as »write18«) enabled.

Compare my first lines

Code: Select all

This is pdfTeX, Version 3.1415926-2.4-1.40.13 (TeX Live 2012) (format=pdflatex 2012.8.19)  26 AUG 2012 21:02
entering extended mode
 \write18 enabled. % <= THIS IS THE IMPORTANT POINT
 %&-line parsing enabled.
**test.tex
(./test.tex
LaTeX2e <2011/06/27>
Babel <v3.8m> and hyphenation patterns...
to yours:

Code: Select all

This is pdfTeX, Version 3.1415926-2.3-1.40.12 (MiKTeX 2.9)
entering extended mode
("C:/Documents and Settings/Uporabnik/Desktop/mi ds df/ffgsffsfsfs.tex"
LaTeX2e <2011/06/27>
Babel <v3.8m> and hyphenation patterns for english...
site moderator & package author
ditka
Posts: 85
Joined: Fri Jul 13, 2012 11:59 am

Re: latex,gnuplot

Post by ditka »

If you mean the , Edit / Preferences, Typesetting tab, pdfLaTeX, there I have enable 18. Shud I put is somwere else?
User avatar
cgnieder
Site Moderator
Posts: 2000
Joined: Sat Apr 16, 2011 7:27 pm

Re: latex,gnuplot

Post by cgnieder »

Unfortunately I don't have a Windows machine with MiKTeX available right now. Tomorrow I can test. Which editor are you using?
site moderator & package author
ditka
Posts: 85
Joined: Fri Jul 13, 2012 11:59 am

Re: latex,gnuplot

Post by ditka »

TexWorks.
josephwright
Site Moderator
Posts: 814
Joined: Tue Jul 01, 2008 2:19 pm

How can I draw plots in LaTeX?

Post by josephwright »

In TeXworks, go to Edit, Preferences and choose the Typesetting tab and then pdfLaTeX. Choose Edit ..., then use the + to add an option, and type '--shell-escape'. OK that, then use the 'Up' arrow to move that about $basename. OK everything, and you should then have shell escape set up.
Joseph Wright
ditka
Posts: 85
Joined: Fri Jul 13, 2012 11:59 am

Re: latex,gnuplot

Post by ditka »

I have done that before, I have post snape shots in previus posts, altough I use enable write 18, I have also tried with shel escape and it did not change anything.
ditka
Posts: 85
Joined: Fri Jul 13, 2012 11:59 am

Re: latex,gnuplot

Post by ditka »

Package pgf Warning: Plot data file `ndkskdkskdksdda-1.x.table' not found. on i
nput line 43.

Package pgf Warning: Plot data file `ndkskdkskdksdda-1.sin.table' not found. on
input line 45.

Package pgf Warning: Plot data file `ndkskdkskdksdda-1.exp.table' not found. on
input line 47.

Accordig to this, gnuplot didnt even run. Can please somebody tell me, how can I check for conections bewteen gnuplot and latex.
Post Reply