allow conditional siPrefixing of axis labels#3136
Merged
j9ac9k merged 2 commits intopyqtgraph:masterfrom Oct 13, 2024
Merged
Conversation
Contributor
outofculture
commented
Aug 26, 2024
- siPrefixEnableRanges argument to AxisItem.setLabel and all pass-through callers thereof
- reduce duplication
- f-strings where % were encountered during development
- use ValueError when appropriate
- simplify logic
- closes Request: limit upper/bottom units when auto SI-scaling #3126
- siPrefixEnableRanges argument to AxisItem.setLabel and all pass-through callers thereof - reduce duplication - f-strings where % were encountered during development - use ValueError when appropriate - simplify logic
Member
|
readthedocs failure is due to the following: Would recommend switching to numpydoc style, some examples here: https://github.com/pyqtgraph/pyqtgraph/blob/master/pyqtgraph/graphicsItems/PlotDataItem.py |
Member
|
Thanks @outofculture for the PR and the updating of the docstring format <3 |
j9ac9k
pushed a commit
to j9ac9k/pyqtgraph
that referenced
this pull request
Mar 25, 2025
* allow conditional siPrefixing of axis labels - siPrefixEnableRanges argument to AxisItem.setLabel and all pass-through callers thereof - reduce duplication - f-strings where % were encountered during development - use ValueError when appropriate - simplify logic * I touched them, therefore update to numpy docstrings; delete trailing whitespace
nstelter-slac
added a commit
to nstelter-slac/Badger
that referenced
this pull request
Nov 20, 2025
…1)' is label not 'iterations' seems like new release of pyqtgraph broke the test, in specific: pyqtgraph/pyqtgraph#3136. related to added 'siPrefixEnableRanges' arg for graph axis labels, which results in the added scaling text "(x0.001)".
nstelter-slac
added a commit
to nstelter-slac/Badger
that referenced
this pull request
Nov 20, 2025
…1)' is label not 'iterations' seems like new release of pyqtgraph broke the test, in specific: pyqtgraph/pyqtgraph#3136. related to added 'siPrefixEnableRanges' arg for graph axis labels, which results in the added scaling text "(x0.001)". lets update the test itself to pass for both axis label text, so tests can still pass with older pyqtgraph versions.
nstelter-slac
added a commit
to nstelter-slac/Badger
that referenced
this pull request
Nov 20, 2025
…1)' is label not 'iterations' seems like new release of pyqtgraph broke the test, in specific: pyqtgraph/pyqtgraph#3136. related to added 'siPrefixEnableRanges' arg for graph axis labels, which results in the added scaling text "(x0.001)". lets update the test itself to pass for both axis label text, so tests can still pass with older pyqtgraph versions. also display testing result (last run on main) on main github page (so easier to tell when tests break)
nstelter-slac
added a commit
to nstelter-slac/Badger
that referenced
this pull request
Nov 20, 2025
…e, ex: 'iterations (x0.001)' instead of expected 'iterations' seems like new release of pyqtgraph (0.14.0) broke the test, in specific: pyqtgraph/pyqtgraph#3136. related to added 'siPrefixEnableRanges' arg for graph axis labels, which results in the added scaling text "(x0.001)". lets update the test itself to pass for both axis label text, so tests can still pass with older pyqtgraph versions. also add display of testing result (the last run on main) to github page (so easier to tell when tests break).
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.