Advertisement
Guest User

Untitled

a guest
Jun 19th, 2019
64
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.18 KB | None | 0 0
  1. Plot[Sin[x], {x, -3, 3}, Axes -> True, AxesStyle -> Red]
  2.  
  3. PolarPlot[θ, {θ, 0, 3 π}, PolarAxes -> True, AxesStyle -> Red]
  4.  
  5. PolarPlot[θ, {θ, 0, 4 Pi},
  6. AxesStyle -> {Directive[Thick, Blue], Directive[16, Orange]}
  7. ]
  8.  
  9. Clear[colorPolarAxes]
  10.  
  11. Options[colorPolarAxes] =
  12. {PolarAxesStyle -> {}, PolarLabelsStyle -> {}, PolarTicksStyle -> {}};
  13.  
  14. colorPolarAxes[plot_Graphics, OptionsPattern[]] :=
  15. ReplaceAll[plot,
  16. {
  17. Text[Style[lbl__, {}], pos__] :> Text[Style[lbl, OptionValue[PolarLabelsStyle]], pos],
  18. Style[Line[def__], {}] :> Style[Line[def], OptionValue[PolarTicksStyle]],
  19. Circle[options__] :> Style[Circle[options], OptionValue[PolarAxesStyle]]
  20. }
  21. ]
  22.  
  23. colorPolarAxes[
  24. PolarPlot[θ, {θ, 0, 4 Pi}, PolarAxes -> Automatic, PolarTicks -> {"Degrees", None}],
  25. PolarAxesStyle -> Orange,
  26. PolarLabelsStyle -> {Darker@Green, 14, Italic},
  27. PolarTicksStyle -> {Blue, Thick}
  28. ]
  29.  
  30. PolarPlot[[Theta], {[Theta], 0, 4 Pi},
  31. PlotStyle -> Directive[Thickness[.006], Black],
  32. PolarGridLines -> Automatic,
  33. GridLinesStyle -> Directive[Dashed, Black], PolarAxes -> Automatic,
  34. PolarTicks -> {"Degrees", Automatic},
  35. TicksStyle -> Directive[Blue, Thick, 14]]
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement