Repository navigation
Changing scanpy.pl.dotplot to return the matplotlib figure instead of GridSpec - #1069
Closed
atarashansky wants to merge 3 commits into
Closed
atarashansky wants to merge 3 commits into
atarashansky wants to merge 3 commits into
Conversation
flying-sheep
requested changes
Apr 11, 2020
flying-sheep
left a comment
Member
There was a problem hiding this comment.
I think it would be better if this behaved the way all plotting functions behave:
They usually either return a single Axes object (if show=False) or a Figure object if return_fig=True.
|
Any updates on this? scanpy=1.4.6 is still not to return matplotlib figure but still GridSpec even with "show=False". Or is there any other way to modify the figure/ax and save it after? |
Collaborator
|
I am trying to address this and other issues in #1127 In the new implementation, a dictionary of axes is returned. |
|
Yes, this would be much appreciated! I'd like to be able to combine dotplots |
Collaborator
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.
Fixes issue #979
Note that if you wish to modify the figure in the same jupyter notebook cell in which the plotting function is called, you should set
show=False: