Skip to content

Using ax.spines with a polar plot #20396

@iosphere777

Description

@iosphere777

Hello! I have a request but I think I should explain my problem first:

I'm trying to make a wedge shaped frame where I can have the ticks along the radial axis appear on the inside or outside of the axis. I've been plotting the ticks as little lines with ax.plot, so in order to make them appear outside of the theta limit, I had to increase the limit. This new frame is too large, so I'm trying to get rid of the frame on the right radial axis (or just move it). I think an image will help:
Screen Shot 2021-06-09 at 10 29 52 AM

I was able to get rid the top theta axis using ax.spines["polar"].set_visible(False), then redraw it as an arc in the right location, so I was thinking I could do something similar for the radial axis, but I can't find any good examples with spines. Is there a way to use ax.spines to alter the radial axis in a polar plot like this?

My code is pretty long and probably rather inefficient (I am a beginner, sorry), but if you think that might be helpful to see here it is: (.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions