6

I am a MacTeX 2013 user that uses PDFLaTeX to create my files. After a recent update, the following code stopped producing a polar grid. I checked the documentation for any changes as well as the change log. If I need to revert to an older version of one of my packages, I am not sure which ones need to be rolled back.

\documentclass[fontsize=12pt,letterpaper,openany]{scrbook}
\usepackage[pdf]{pstricks}
\usepackage{pst-all}
\usepackage{pstricks-add}
\begin{document}
\begin{pspicture}(-3.5,-3.5)(3.5,3.5)
\psaxes[axesstyle=polar,subticklinestyle=dashed,subticks=2,labelFontSize=\scriptstyle](3,3)
\end{pspicture}
\end{document}

Can someone please help with what changes need to be made for the grid to appear with the update? If that's not possible, which packages should be rolled back to a previous version?

  • Somewhat unrelated comment: pstricks and pstricks-add are already loaded by pst-all. – Svend Tveskæg Jan 20 '14 at 21:20
  • I think it would be good for you to post the versions of the packages you're loading now. See Which package version am I using? (add \listfiles to your preamble and report back on what you find in the .log). – Werner Jan 20 '14 at 21:46
7
\documentclass[fontsize=12pt,letterpaper,openany]{scrbook}
\usepackage[pdf]{pstricks}
\usepackage{pst-plot}
\begin{document}
\begin{pspicture}(-3.5,-3.5)(3.5,3.5)
\psaxes[axesstyle=polar,subticklinestyle=dashed,subticks=2,
        labelFontSize=\scriptstyle](3,0)%%%% Radius,Angle
\end{pspicture}
\end{document}

The syntax is (Radius,Angle). If Angle=0 then it is the same as 360.

With the degrees symbol:

\documentclass{scrbook}
\usepackage{pst-plot}
\def\psvlabel#1{$\scriptstyle#1^\circ$}
\begin{document}    
    \begin{pspicture}(-3.5,-3.5)(3.5,3.5)
    \psaxes[axesstyle=polar,subticklinestyle=dashed,subticks=2,
    labelFontSize=\scriptstyle](3,0)
    \end{pspicture}
\end{document}
  • How to add {}^\circ to the label? xlabelFactor={}^\circ and ylabelFactor={}^\circ do not work. – Money Oriented Programmer Dec 11 '17 at 11:16
  • see edited answer. Will be changed in the package, probably ... – user2478 Dec 11 '17 at 16:07
  • How to make the angle label on the right start from 0 instead of 360? – Money Oriented Programmer Dec 11 '17 at 19:17

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.