Graphics, Figures & Tables ⇒ How can I draw plots in LaTeX?
How can I draw plots in LaTeX?
http://www.texample.net/tikz/examples/gnuplot-basics/
The picture I get looks like this:
Why there is no graphs?
- Attachments
-
- untitledfkskflgdsd.JPG (7.05 KiB) Viewed 8340 times
Learn LaTeX easily with newest books:
The LaTeX Beginner's Guide: 2nd edition and perfect for students writing a thesis
The LaTeX Cookbook: 2nd edition full of practical examples for mathematics, physics, chemistry, and more
LaTeX Graphics with TikZ: the first book about TikZ for perfect drawings in your LaTeX thesis
- Stefan Kottwitz
- Site Admin
- Posts: 10360
- Joined: Mon Mar 10, 2008 9:44 pm
How can I draw plots in LaTeX?
- gnuplot has to be installed
-
--shell-escape
or--enable-write18
has to be used
Code: Select all
sudo apt-get install gnuplot
This is my output: Stefan
Re: latex,gnuplot
What does this mean:
--shell-escape or --enable-write18 has to be used
Shoud I type this somewere or is it some setting?
- localghost
- Site Moderator
- Posts: 9202
- Joined: Fri Feb 02, 2007 12:06 pm
How can I draw plots in LaTeX?
-
-shell-escape
is the parameter when using TeX Live -
--enable-write18
is the parameter when using MiKTeX
Since you are using PCTeX, you have to find out what parameter is accepted by your compiler engine(s). Open a command line any type this line.
Code: Select all
latex --help
Thorsten
Board Rules
Avoidable Mistakes
¹ System: TeX Live 2025 (vanilla), TeXworks 0.6.10
How can I draw plots in LaTeX?
How exactly I do that?You need to add these command line parameters in the corresponding settings of your LaTeX editor.
- localghost
- Site Moderator
- Posts: 9202
- Joined: Fri Feb 02, 2007 12:06 pm
Re: latex,gnuplot
Board Rules
Avoidable Mistakes
¹ System: TeX Live 2025 (vanilla), TeXworks 0.6.10
Re: latex,gnuplot
Is that what you meant?
- localghost
- Site Moderator
- Posts: 9202
- Joined: Fri Feb 02, 2007 12:06 pm
Re: latex,gnuplot
Board Rules
Avoidable Mistakes
¹ System: TeX Live 2025 (vanilla), TeXworks 0.6.10
- localghost
- Site Moderator
- Posts: 9202
- Joined: Fri Feb 02, 2007 12:06 pm
Re: latex,gnuplot
Board Rules
Avoidable Mistakes
¹ System: TeX Live 2025 (vanilla), TeXworks 0.6.10