Skip to content

[Bug]: Inner border is not rendered correctly when using log-scale and polar projection. #30179

Open
@tillboehringer

Description

@tillboehringer

Bug summary

When changing to a log-scale on a polar plot and changing the radial origin. The inner border is not in the correct place, it stays in the centre.

Code for reproduction

import numpy as np
import matplotlib.pyplot as plt

angles = np.radians(np.linspace(15, 145, 10))
r = np.logspace(-30, -28, len(angles))

fig = plt.figure()
ax = plt.axes(projection='polar')

ax.scatter(angles, r)

ax.set_theta_zero_location('N')
ax.set_theta_direction(-1)
ax.set_rscale('log')
ax.set_thetamin(15)
ax.set_thetamax(145)

ax.set_rorigin(10**-33)

Actual outcome

Image

Expected outcome

Image

The inner Border should look like this one.

Additional information

No response

Operating system

OS/X

Matplotlib Version

3.10.3

Matplotlib Backend

backend_inline

Python version

3.13.2

Jupyter version

No response

Installation

pip

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions