11
$\begingroup$

This is my current try, but I don't know why it cannot put in the right position:

Graphics[AxisObject[
  Line[Table[{ Cos[t], Sin[t]}, {t, 0, 2 Pi, 0.01}]], 
  TickPositions -> {10}, TickLabels -> {Range[0, 7 Pi/4, Pi/4]}]]

enter image description here

Actually, I think TickPositions -> {9} should serve me. Is it a bug or I have missed something?

$\endgroup$
3
  • $\begingroup$ help says AxisObject is Experimental. So it could have rough edges to it. I never used it myself. $\endgroup$
    – Nasser
    Mar 4, 2022 at 10:00
  • $\begingroup$ @Nasser So any workaround can do this? $\endgroup$
    – yode
    Mar 4, 2022 at 10:02
  • $\begingroup$ fyi, related angular-range-in-polar-plot $\endgroup$
    – Nasser
    Mar 4, 2022 at 20:06

2 Answers 2

12
$\begingroup$
Graphics[AxisObject[Circle[], {0, 2 \[Pi]}, 
  TickPositions -> {{\[Pi]/4}}, 
  TickLabels -> {Range[0, 7 Pi/4, Pi/4]}]]

enter image description here

$\endgroup$
7
$\begingroup$

I find a workaround:

ListPolarPlot[{}, PolarAxes -> {True, False}, 
 PolarTicks -> {Range[0, 7 Pi/4, Pi/4], Automatic}, PlotRange -> 1.3]

enter image description here

$\endgroup$

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

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