changed structure to redefine axis via plotitem.setAxes#391
Merged
j9ac9k merged 5 commits intopyqtgraph:developfrom Jun 1, 2020
Merged
changed structure to redefine axis via plotitem.setAxes#391j9ac9k merged 5 commits intopyqtgraph:developfrom
j9ac9k merged 5 commits intopyqtgraph:developfrom
Conversation
plotitem.setAxes
Current coverage is 34.08% (diff: 89.47%)@@ develop #391 diff @@
==========================================
Files 198 198
Lines 27249 27254 +5
Methods 0 0
Messages 0 0
Branches 4568 4569 +1
==========================================
+ Hits 9280 9289 +9
+ Misses 17143 17140 -3
+ Partials 826 825 -1
|
lesauxvi
reviewed
Nov 19, 2016
| self.plot(**kargs) | ||
|
|
||
|
|
||
| def setAxes(self, axisItems): |
Contributor
There was a problem hiding this comment.
if self.axes is actually non empty when this method is called, should not they be removed from the layout before adding the new axes?
Contributor
Author
There was a problem hiding this comment.
you are right. changed that. see last commit.
Contributor
|
OK, good to me. Do you agree @campagnola and @ericdill ? |
NEW AxisItem.setOrientation (needed by plotitem.setAxes) show/hide right axes after .setAxes()
radjkarl
commented
Nov 27, 2016
| self.label.setRotation(-90) | ||
| if self.orientation: | ||
| self._updateWidth() | ||
| self.setMaximumHeight(16777215) |
Contributor
Author
There was a problem hiding this comment.
this restores origin value
Contributor
Author
Member
|
Thanks for the PR @radjkarl LTGM, merging, sorry it's taken so long for us to get to this. |
Member
|
Going to revert this PR due to some incompatibilities with PRs merged after this PR was created. |
This was referenced Jun 8, 2020
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.



this allows to redefine the plotItems axes after creation.