2

I need to draw a polar coordinate system without border lines. Adding axis lines=none (without star) to pgfplot's polaraxis argument list blanks out the coordinate system completely (including grid lines, tick lines, etc). Adding axis lines*=none (with star) as in the following MWE removes the black axis line at the inner edge and the left edge of the sector. That's already half the job -- how can I remove the outer edge and the right edge? (cf. screenshot below)

\documentclass{article}
\usepackage{tikz}
\usepackage{pgfplots}
\usetikzlibrary{pgfplots.polar}
\pgfplotsset{compat=newest}
\begin{document}
    \begin{tikzpicture} 
        \begin{polaraxis}[%
                        xmin=-5,%
                        xmax=95,%
                        ymin=10,%
                        ymax=30,%
                        axis lines*=none,%
                        ]
        \end{polaraxis}
    \end{tikzpicture}
\end{document}

result of MWE with only the outer and right axis line remaining

2

Add axis line style = {draw=white,line width=0.0001pt}, to the options (bit of a hack though). You can even omit draw=white and simply put axis line style = {line width=0.0001pt},. Line is there but invisible.

\documentclass{article}
\usepackage{tikz}
\usepackage{pgfplots}
\usetikzlibrary{pgfplots.polar}
\pgfplotsset{compat=newest}
\begin{document}
    \begin{tikzpicture}
        \begin{polaraxis}[%
                        xmin=-5,%
                        xmax=95,%
                        ymin=10,%
                        ymax=30,%
                        axis lines*=none,%
                        axis line style = {draw=white,line width=0.0001pt},
                        ]
        \end{polaraxis}
    \end{tikzpicture}
\end{document}

enter image description here

  • 1
    It turns out that axis line style = {transparent} also works :-). – Ulf Schaper Aug 19 '14 at 11:23

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.