better axes padding for tick labels, settable axis label#1049
Merged
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Textboundaries to world bounding box ifTextis in screen space pygfx/pygfx#967 (comment) , but I think that's fine at least for now.subplot.axes.x.label.set_text("..."), label is just apygfx.Textobject, placed at the midpoint of the current visible extent of the corresponding axis, works with perspective projections as well.fastplotlib.axeswhich has the axes module, cleaner, prevents circular imports which occur when placed infastplotlib.tools.fastplotlib.utilstofastplotlib.graphics.utils, in order to get the API docs to auto generate.LLM usage disclosure: I used claude for the
_update_label()method, too lazy to work out the geometry but it seems right.No performance impact (tested with spinning spiral example)
axis-labels-2026-05-09_03.42.50.mp4
@cwindolf