Skip to content

Polar log scale: fix inner patch boundary and spine location #30223

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jun 30, 2025

Conversation

rcomer
Copy link
Member

@rcomer rcomer commented Jun 28, 2025

PR summary

Fixes #30179. The inner patch and spine positions are calculated in linear space, so we need to apply the scale's transform to min, max and origin.

The code from the OP now gives
image

The code from #30179 (comment) now gives
image

The test image looks like
test_polar_log_rorigin png -expected

I note there is an existing PR at #30185, but it appears to me unlikely to progress.

PR checklist

@rcomer rcomer added this to the v3.10.4 milestone Jun 28, 2025
@rcomer rcomer added topic: polar PR: bugfix Pull requests that fix identified bugs labels Jun 28, 2025
@rcomer

This comment was marked as outdated.

@rcomer rcomer marked this pull request as draft June 28, 2025 17:02
@rcomer rcomer force-pushed the polar-log-spine branch from a3c3149 to 41b50c0 Compare June 28, 2025 17:10
@rcomer rcomer marked this pull request as ready for review June 28, 2025 17:35
@rcomer rcomer force-pushed the polar-log-spine branch from 41b50c0 to 2d00775 Compare June 28, 2025 17:39
@rcomer rcomer changed the title Fix polar inner patch boundary and spine location for log scale Polar log scale: fix inner patch boundary and spine location Jun 28, 2025
@rcomer rcomer force-pushed the polar-log-spine branch from 2d00775 to b607c8c Compare June 29, 2025 10:14
@rcomer rcomer force-pushed the polar-log-spine branch from b607c8c to 99480b9 Compare June 29, 2025 14:45
@timhoffm timhoffm merged commit f47f9a2 into matplotlib:main Jun 30, 2025
39 of 40 checks passed
meeseeksmachine pushed a commit to meeseeksmachine/matplotlib that referenced this pull request Jun 30, 2025
@rcomer rcomer deleted the polar-log-spine branch June 30, 2025 09:44
oscargus pushed a commit that referenced this pull request Jun 30, 2025
…ne location (#30227)

Co-authored-by: Tim Hoffmann <2836374+timhoffm@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
PR: bugfix Pull requests that fix identified bugs topic: polar
Projects
None yet
Development

Successfully merging this pull request may close these issues.

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