Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Fix log formatter tickrange crash#507

Merged
cvanelteren merged 7 commits into
mainUltraplot/UltraPlot:mainfrom
fix-log-formatter-tickrangeUltraplot/UltraPlot:fix-log-formatter-tickrangeCopy head branch name to clipboard
Jan 27, 2026
Merged

Fix log formatter tickrange crash#507
cvanelteren merged 7 commits into
mainUltraplot/UltraPlot:mainfrom
fix-log-formatter-tickrangeUltraplot/UltraPlot:fix-log-formatter-tickrangeCopy head branch name to clipboard

Conversation

@cvanelteren

@cvanelteren cvanelteren commented Jan 26, 2026

Copy link
Copy Markdown
Collaborator

Fix the log colorbar formatter crash by filtering out unsupported tickrange kwargs when constructing Matplotlib formatters, and add a regression test that exercises a log‑norm colorbar with formatter="log".

Closes #506

Drop unsupported tickrange kwarg for non-UltraPlot formatters and add a regression test for log colorbars.
Retry formatter construction without tickrange on TypeError to avoid crashes for formatters lacking that kwarg.
Drop signature inspection and rely on a TypeError retry without tickrange for maximum compatibility.
@cvanelteren

Copy link
Copy Markdown
Collaborator Author

Need to fix the CI, not sure why it keeps on reporting red while the tests are passing.

@cvanelteren cvanelteren merged commit be34fec into main Jan 27, 2026
17 of 25 checks passed
@cvanelteren cvanelteren deleted the fix-log-formatter-tickrange branch January 27, 2026 00:32
K-Mirembe-Mercy pushed a commit to K-Mirembe-Mercy/UltraPlot that referenced this pull request Mar 22, 2026
* Fix log formatter tickrange crash

Drop unsupported tickrange kwarg for non-UltraPlot formatters and add a regression test for log colorbars.

* Harden formatter tickrange handling

Retry formatter construction without tickrange on TypeError to avoid crashes for formatters lacking that kwarg.

* Simplify formatter tickrange handling

Drop signature inspection and rely on a TypeError retry without tickrange for maximum compatibility.

* Add img cmp
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

colorbar(formatter="log") doesn't work

2 participants

Morty Proxy This is a proxified and sanitized view of the page, visit original site.