Graphics, Figures & Tables ⇒ How can I draw plots in LaTeX?
- Stefan Kottwitz
- Site Admin
- Posts: 10323
- Joined: Mon Mar 10, 2008 9:44 pm
How can I draw plots in LaTeX?
It seems that PCTeX provides it's own editor, without a specific name, seen at the PCTeX6 Tour. As this seems to be proprietary, I suggest the same as Thorsten: ask the PCTeX support. PCTeX is not freely available, so we hardly can help you.
As PCTeX 6 has been released 2007, with some updates until 2011, this would not be my first choice, when I compare with newer releases such as TeX Live 2012 and MiKTeX 2.9.
I doubt that the official PCTeX6 forum would help much: the majority of questions hasn't got any answer.
Stefan
As PCTeX 6 has been released 2007, with some updates until 2011, this would not be my first choice, when I compare with newer releases such as TeX Live 2012 and MiKTeX 2.9.
I doubt that the official PCTeX6 forum would help much: the majority of questions hasn't got any answer.
Stefan
LaTeX.org admin
NEW: TikZ book now 40% off at Amazon.com for a short time.
Re: latex,gnuplot
What abaut MikTex? How can that be done here?
I have instaled gnuplot.
I have instaled gnuplot.
- Stefan Kottwitz
- Site Admin
- Posts: 10323
- Joined: Mon Mar 10, 2008 9:44 pm
How can I draw plots in LaTeX?
If you installed MiKTeX, you probably also installed TeXworks. Look for it in the start menu.
With TeXworks, go to the main menu: Edit / Preferences, choose the Typesetting tab, choose pdfLaTeX, click the Edit button, add
With TeXworks, go to the main menu: Edit / Preferences, choose the Typesetting tab, choose pdfLaTeX, click the Edit button, add
--enable-write18
such as here:
StefanLaTeX.org admin
Re: latex,gnuplot
I did what you say, but I still get the same picture.
Do I need to do anything else, perhaps in gnuplot?
I just download document and typsett it.
Do I need to do anything else, perhaps in gnuplot?
I just download document and typsett it.
- localghost
- Site Moderator
- Posts: 9202
- Joined: Fri Feb 02, 2007 12:06 pm
How can I draw plots in LaTeX?
Since the settings for TeXworks differ a bit on Wind0ws, here is s screen capture for MiKTeX (see attachment).
How did you install Gnuplot? The latest version 4.6 has an installer for the first time. You need to check a box in order to add the Gnuplot path to the corresponding environment variable (see attachment).[…] Do I need to do anything else, perhaps in gnuplot? […]
- Attachments
-
- The compiler settings in TeXworks for MiKTeX
- TeXworks044-MiKTeX-Preferences-ToolConfiguration.png (42.17 KiB) Viewed 6494 times
-
- The Gnuplot 4.6 Installer with the checked box for the PATH environment variable.
- Gnuplot-46-Setup.png (23.37 KiB) Viewed 6494 times
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 did that(enable--write18,check Add application directory to your PATH environment variable), but I still get the same picture.
Do I need draw graphs in gnuplot first?
Do I need draw graphs in gnuplot first?
- Stefan Kottwitz
- Site Admin
- Posts: 10323
- Joined: Mon Mar 10, 2008 9:44 pm
Re: latex,gnuplot
Gnuplot is called automatically. Perhaps post your .log file here, as attachment to a post. The log file contains information regarding the problem.
Stefan
Stefan
LaTeX.org admin
Re: latex,gnuplot
I hope this is the right thing.
- Attachments
-
- ldsld lfslfld.txt
- (15.48 KiB) Downloaded 377 times
- Stefan Kottwitz
- Site Admin
- Posts: 10323
- Joined: Mon Mar 10, 2008 9:44 pm
How can I draw plots in LaTeX?
Yes, this is the right file. I can see these warnings:
Obiously gnuplot did not run, to produce the .table files.
I have another suggestion: instead of dealing with gnuplot problems, you could switch to pure TeX/LaTeX plotting. Since you now use a modern MiKTeX version, you could work with pgfplots. This is a very capable package for plotting with markers, axis, legends, in 2D and 3D. Perhaps have a look at the
pgfplots documentation for a start with it, try some examples from the manual. If you have a question regarding pgfplots, just open a new topic.
Stefan
Code: Select all
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.
I have another suggestion: instead of dealing with gnuplot problems, you could switch to pure TeX/LaTeX plotting. Since you now use a modern MiKTeX version, you could work with pgfplots. This is a very capable package for plotting with markers, axis, legends, in 2D and 3D. Perhaps have a look at the

Stefan
LaTeX.org admin
- localghost
- Site Moderator
- Posts: 9202
- Joined: Fri Feb 02, 2007 12:06 pm
How can I draw plots in LaTeX?
As far as I know, pgfplots uses Gnuplot as back-end. So the problem would persist.Stefan_K wrote:[…] I have another suggestion: instead of dealing with gnuplot problems, you could switch to pure TeX/LaTeX plotting. Since you now use a modern MiKTeX version, you could work with pgfplots. This is a very capable package for plotting with markers, axis, legends, in 2D and 3D. Perhaps have a look at thepgfplots documentation for a start with it, try some examples from the manual. […]
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