I would like to plot implicit functions in Latex with tikz and gnuplot. A minimal example of my code is given by:
\documentclass{article}
\usepackage{tikz}
\begin{document}
\begin{tikzpicture}[xscale=1,yscale=.25]
\draw plot[id=curve, raw gnuplot] function{
f(x,y) = y**2 + (x**2 - 5)*(4*x**4 - 20*x**2 + 25);
set xrange [-4:4];
set yrange [-15:15];
set view 0,0;
set isosample 1000,1000;
%set size square;
set cont base;
set cntrparam levels incre 0,0.1,0;
unset surface;
splot f(x,y)
};
\end{tikzpicture}
\end{document}
This generates the following ugly output. I expected to get a smooth plot.

The problem occured with MikTex 2.9 on Windows 7. The version of pgf is 3.0.0 according to the Miktex Package Manager and 2.10 according to the command \pgfversion. I assume the "correct" version number to be 3.0.0 since the files in my pgf directory where modified for the last time on 2013-12-13, this is the same day as the modification date of the 3.0.0 version on Sourceforge (http://sourceforge.net/projects/pgf/files/pgf/)
I also tried to compile the document on Ubuntu with \pgfversion 2.10. This generated the same result as on Windows.
The same problem occured here:
How to use the results of `raw output` to create a smooth plot
The problem described in the above post should be solved since 2013-07-31, see:
http://sourceforge.net/p/pgf/bugs/149/#e1ce
In the SO question Pieter furthermore proposes a hackish solution, I tried this, but it did not change the plot.
Thanks for your help!


\pgfversiongives me3.0.0with current TeX Live. You probably need to figure out how to update. Note that you could have two versions installed with the older one being found first when you compile. However, I don't know enough about MiKTeX or Windows to say. – cfr Sep 13 '14 at 01:06