[TxMt] gnuplot bundle ??

Alain Matthes alain.matthes at mac.com
Wed Jun 7 14:29:01 UTC 2006


Le 7 juin 06 à 15:44, Daniel Käsmayr a écrit :

>> 2) is it possible to make a bundle for gnuplot ?
>
> What should/could that bundle do? This will greatly affect any  
> answer to:
>
>> 3) Which are the difficulties ? Which is the best method to start  
>> to make a bundle ?
>
> Dan


I use gnuplot with latex and tikz,

	\begin{tikzpicture}[scale=1]
		\draw[->] (-1,0) -- (7,0) node[below] { $x$};
		\foreach \x in {-1,1,2,...,6}
		\draw[shift={(\x,0)}] (0pt,1pt) -- (0pt,-1pt) node[below] { $\x$};
		\draw[->] (0,-1) -- (0,16) node[right] { $y$};
		\node[below left] at (0,0) {O};
		\draw[->] (6,0) -- (6,15);
		\foreach \y/\ytext in {-1,1,2,...,15}
		\draw[shift={(0,\y)}] (1pt,0pt) -- (-1pt,0pt) node[left] { $\y$};
		\draw [color=black] plot[id=fctncal,domain=0:6]%
		function{0.75*x**2-3*x+6} node[right]{};
	  	\fill[color=gray!50,fill,fill opacity=0.6]%
		 (6,15) -- (6,0) -- (0,0) -- (0,6) -- plot[id=fctncal,domain=0:6]%
		function{0.75*x**2-3*x+6} ;
	\end{tikzpicture}

it would be interesting to emphasize the syntactic distinctions with  
color





and also with latex and gnuplottex.sty

\documentclass[a4paper]{article}
\usepackage[pdf]{gnuplottex}
\begin{document}
\begin{gnuplot}
set xlabel
set ylabel
set zlabel
set xtics border mirror norotate
set ytics border mirror norotate
set ztics nomirror norotate 0,1,6
set label 1 "A" at 0.8,1,1.2 right
set nox2tics
set noy2tics
set nologscale xyz
set nologscale x2
set nologscale y2
set bar
set boxwidth
set view 120, 30, 1, 1
set ticslevel 0
set nohidden3d
set isosamples 10, 10
splot [x=0:5] [y=10:0] [0:6] x*x*y*exp(-x) with lines title '', \
             '-' notitle with points pt 7 ps 1
         2 2 1
	1 1 1

\end{gnuplot}
\end{document}

here some ideas : validate syntax , syntactic distinctions , run  
gnuplot ( this is not a big problem..)


Alain Matthes


More information about the textmate mailing list