Graphics, Figures & TablesRe: How to draw an implicit function with Gnuplot

Information and discussion about graphics, figures & tables in LaTeX documents.
Post Reply
tolyaua
Posts: 5
Joined: Sun Sep 27, 2009 12:43 pm

Re: How to draw an implicit function with Gnuplot

Post by tolyaua »

Hi!
When a function has an explicit form such as f(x)=0 it is easy to draw it in TeX with a help of gnuplot:

Code: Select all

%& -shell-escape
\documentclass[12pt]{report}
\usepackage[cp1251]{inputenc}
\usepackage{graphicx}
\usepackage{tikz}
\begin{document}

\begin{figure}[!ht]
  \centering
  \begin{tikzpicture}
  		\draw[smooth,very thick] plot[id=f1,domain=-2:2,samples=600] function {x*x};
 	\end{tikzpicture}
\end{figure}

\end{document}
But what about an implicit function f(x,y)=0, such as (sqrt(x^2 + y^2) -5)*(sqrt((x-2)^2+y^2)-0.1=0 ? How it can be drawn in TeX with gnupot?

Recommended reading 2024:

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

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

php1ic
Posts: 192
Joined: Wed Jan 28, 2009 8:17 pm

Re: How to draw an implicit function with Gnuplot

Post by php1ic »

I've never used tikz, so don't know how it relates to gnuplot, but this page may be useful.

http://t16web.lanl.gov/Kawano/gnuplot/i ... lve-e.html
tolyaua
Posts: 5
Joined: Sun Sep 27, 2009 12:43 pm

Re: How to draw an implicit function with Gnuplot

Post by tolyaua »

Thanks php1ic, I've already found this page. It tells how to draw in gnuplot but not how to draw in tikz using gnuplot. :(
Post Reply