At the outset I would like to apologize that the first message on the forum and right away please help and please forgive me for any language mistakes
Although I try to use gnuplot in conjunction with packages Tikz and PGZ, but still come across any problems.
I downloaded gnuplot, I changed the name of pgnuplot.exe on gnuplot.exe and placed it in the folder C: \ Windows \ System32
I downloaded the gnuplot-lua-tikz.sty and gnuplot.lua I found online, but I do not know whether that is for sure
The gnuplot.lua sorce is below
http://code.google.com/p/scintillua/sou ... nuplot.lua
I don't know how to make shell escape allowed (LED editor). I tried to put some lines on the top of the document, but it did not work.
Another mistake that arises is: "Latex Error: Option clash for package color."
My code:
%& -shell-escape
Code: Select all
\documentclass[a4paper]{article}
\usepackage[miktex]{gnuplottex}
\usepackage{tikz}
\usepackage{gnuplot-lua-tikz}
\usepackage{mathpazo}
\usepackage[cp1250]{inputenc}
\usepackage{polski}
\usepackage{graphicx}
\usepackage{wrapfig}
\usepackage{color}
\usepackage[usenames]{color}
\usepackage{fancyhdr}
\usepackage{enumerate}
\usepackage{pgf}
\newcommand{\szerokosc}{15.92cm}
\newcommand{\linia}{\rule{\linewidth}{0.2mm}}
%-----------------------------------------
\begin{document}
\pagestyle{fancy}
\rhead{\small Lorem...}
\lhead{\small Lorem...}
\renewcommand{\headrulewidth}{0.4pt}
\begin{gnuplot}[scale=0.95,terminal=lua]
set parametric
set angle degree
set urange [0:360]
set vrange [-90:90]
fx(u,v)=cos(u)*cos(v)
fy(u,v)=sin(u)*cos(v)
fz(v)=sin(v)
splot fx(u,v),fy(u,v),fz(v)
\end{gnuplot}
\end{document}