# Trying to plot a parametric curve using tikz

\begin{tikzpicture}[scale=0.8]

\begin{axis}[
axis equal, axis x line=middle, axis y line=
middle, xlabel={$x$}, ylabel={$y$},xmin=-3,xmax=3,ymin=-4,ymax=4]

\end{axis}

\end{tikzpicture}


See above my code for the Folium of Descartes. My question is, how do I make it look like the folium. I tried to increase the samples, but after I put 600, I get an error (dimension too large)

• You are using slope to parametrize the curve. This is not ideal and in particular, the curve abruptly stops at slope = ±2. Would you care to switch to using polar coordinate? Sep 20 at 21:23

If you want to stick to slope, you have to be careful with domains.

\documentclass[tikz,border=3.14mm]{standalone}
\usepackage{pgfplots}
\begin{document}

\begin{tikzpicture}

\begin{axis}[
axis equal, axis x line=middle, axis y line=
middle, xlabel={$x$}, ylabel={$y$},xmin=-3,xmax=3,ymin=-4,ymax=4]