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

Information and discussion about graphics, figures & tables in LaTeX documents.
Post Reply
maxmax
Posts: 29
Joined: Sat Sep 03, 2011 11:19 am

Re: latex,gnuplot

Post by maxmax »

Hi,

fortunately, i'm using MikTeX and gnuplot, too, since last week. Unfortunately, I have no problems with your example in texworks!

Did you check the PATH-thing when you installed gnuplot?

Regards,
Max

Recommended reading 2024:

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

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

ditka
Posts: 85
Joined: Fri Jul 13, 2012 11:59 am

Re: latex,gnuplot

Post by ditka »

I did.


Did you cange some location of any files or did you rename any files at gnuplot?

Can you please upload your log file?(perhaps using the example I post at the beggining)
maxmax
Posts: 29
Joined: Sat Sep 03, 2011 11:19 am

Re: latex,gnuplot

Post by maxmax »

No, i did not change a thing. It worked out of the box for me. Attached is my log file of your example. As you can see, calling gnuplot works fine.

Stupid question, but did you check that you use the same profile (pdfLaTeX) where you added "--enable-write18" to compile the tex file? There are e.g. "pdfTeX", which one might mix up with each other.
Edit: oh sorry, that would obviously not work ;)
But my first line of the file seems different than yours.
Attachments
test.log
(15.79 KiB) Downloaded 562 times
ditka
Posts: 85
Joined: Fri Jul 13, 2012 11:59 am

Re: latex,gnuplot

Post by ditka »

Do you use windows or linux or something else?


Yes I did make wrigt profile(pdfLatex)



And somethig else, what picture do you get when you call gnuplot from comand line?(I get diffrent picture, than it is when I use program normaly: see atacment)
Attachments
fasfsa.JPG
fasfsa.JPG (71.79 KiB) Viewed 9742 times
maxmax
Posts: 29
Joined: Sat Sep 03, 2011 11:19 am

Re: latex,gnuplot

Post by maxmax »

Its exactly the same for me. You could try to remove MikTeX as well as gnuplot and reinstall both. Sorry, but i dont know what else to do. Alternatively you could use another Editor (like TeXstudio, which is my favorite editor) and see if the problem still exists there.
ditka
Posts: 85
Joined: Fri Jul 13, 2012 11:59 am

Re: latex,gnuplot

Post by ditka »

I have alredy tried that, I get the same output. Do you use windos?
ditka
Posts: 85
Joined: Fri Jul 13, 2012 11:59 am

Re: latex,gnuplot

Post by ditka »

Problem fixed. I indeed use wrong profile:

I change and it worked:
Attachments
fsfsfds.JPG
fsfsfds.JPG (40.21 KiB) Viewed 9731 times
ditka
Posts: 85
Joined: Fri Jul 13, 2012 11:59 am

Re: latex,gnuplot

Post by ditka »

Does anybody know, how can I use polar plot, using gnuplot and latex. Gnuplot itself can plot polar equations, which command should be used in latex?
ditka
Posts: 85
Joined: Fri Jul 13, 2012 11:59 am

Re: latex,gnuplot

Post by ditka »

It worked with parametric, but still not with polar. Is it possible to draw all the pictures gnuplot can do with latex?

And what thas id stnads for(in exmaple)?
User avatar
Stefan Kottwitz
Site Admin
Posts: 10321
Joined: Mon Mar 10, 2008 9:44 pm

Re: latex,gnuplot

Post by Stefan Kottwitz »

Since now there are already 70 posts in this topic about the technical issue with using LaTeX and gnuplot together (I guess correct advice, but just applied to the wrong output profile), I suggest you open a new topic dealing with the subject of polar plots. Otherwise the new question is hard to find at page 7 of a different issue.

Stefan
LaTeX.org admin
Post Reply