Graphics, Figures & Tables ⇒ How can I draw plots in LaTeX?
How can I draw plots in LaTeX?
I have tried to download and typsett the following document:
http://www.texample.net/tikz/examples/gnuplot-basics/
The picture I get looks like this:
Why there is no graphs?
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 7745 times
NEW: TikZ book now 40% off at Amazon.com for a short time.
- Stefan Kottwitz
- Site Admin
- Posts: 10324
- Joined: Mon Mar 10, 2008 9:44 pm
How can I draw plots in LaTeX?
This example requires:
Configure your editor to use the shell-escape feature, so it's able to run external programs. I can tell you how it's done in TeXworks, which I'm using.
This is my output: Stefan
- 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
LaTeX.org admin
Re: latex,gnuplot
I have gnuplot on my computer.
What does this mean:
--shell-escape or --enable-write18 has to be used
Shoud I type this somewere or is it some setting?
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?
These are command line options for the compiler engine which allow to invoke external programs.
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.
The output should be a list with allowed parameters.
Thorsten
-
-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
How to make a "Minimal Example"
Board Rules
Avoidable Mistakes
¹ System: TeX Live 2025 (vanilla), TeXworks 0.6.10
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
How are we supposed to know that if you don't tell us which editor you are using? Please provide useful information independently and not only on demand. m(
How to make a "Minimal Example"
Board Rules
Avoidable Mistakes
¹ System: TeX Live 2025 (vanilla), TeXworks 0.6.10
Board Rules
Avoidable Mistakes
¹ System: TeX Live 2025 (vanilla), TeXworks 0.6.10
Re: latex,gnuplot
I download MiKTex, and I wil try to do it there.
Is that what you meant?
Is that what you meant?
- localghost
- Site Moderator
- Posts: 9202
- Joined: Fri Feb 02, 2007 12:06 pm
Re: latex,gnuplot
No. MiKTeX is a TeX distribution, not an editor. With what do you edit your source files (*.tex)?
How to make a "Minimal Example"
Board Rules
Avoidable Mistakes
¹ System: TeX Live 2025 (vanilla), TeXworks 0.6.10
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
Do you want to say that you can't tell us the name of your editor? m(
How to make a "Minimal Example"
Board Rules
Avoidable Mistakes
¹ System: TeX Live 2025 (vanilla), TeXworks 0.6.10
Board Rules
Avoidable Mistakes
¹ System: TeX Live 2025 (vanilla), TeXworks 0.6.10