It seems like one of the functions I'm using has a piecewise representation in tikz?
I tried with more sample points, but it did not improve.
I'm getting these jagged edges in my plot. I have no idea why. It should be smooth like this wolframalpha:
But instead, Its jagged.
But for the values with x greater than 0.5*pi it is smooth. can I set some options in pgf to not approximate the log and trig functions maybe?
\documentclass[tikz]{standalone}
\usepackage{pgf}
\usepackage{tikz}
\usetikzlibrary{arrows,automata}
\usepackage[latin1]{inputenc}
\begin{document}
\begin{tikzpicture}
\draw [->,thick] (-1,0) -- (5,0) node[right] {$x$};
\draw [->,thick] (0,-2) -- (0,2) node[above] {$y$};
\draw[domain= 0.01*pi:0.99*pi,scale=1.5,samples=600] plot ({deg(\x)}:{-1*ln(tan(\x/2 r))});
\end{tikzpicture}
\end{document}
samples=60
samples=30
but adding optionsmooth