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 7749 times
NEW: TikZ book now 40% off at Amazon.com for a short time.
And: Currently, Packt sells ebooks for $4.99 each if you buy 5 of their over 1000 ebooks. If you choose only a single one, $9.99. How about combining 3 LaTeX books with Python, gnuplot, mathplotlib, Matlab, ChatGPT or other AI books? Epub and PDF. Bundle (3 books, add more for higher discount): https://packt.link/MDH5p
- Stefan Kottwitz
- Site Admin
- Posts: 10324
- 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