Repository navigation
Conversation
fidelram
added a commit
that referenced
this pull request
Jul 10, 2020
fidelram
added a commit
that referenced
this pull request
Jul 13, 2020
…s to style(); added padding parameter to style to address #1270; add legend width units to documentation.
Collaborator
|
@falexwolf I added a padding argument to dotplot (already merged into master): adata = sc.datasets.pbmc68k_reduced()
markers = {'T-cell': ['CD3D', 'CD3E', 'IL32'], 'B-cell': ['CD79A', 'CD79B', 'MS4A1'], 'myeloid': ['CST3', 'LYZ']}
fig, (ax1, ax2) = plt.subplots(1, 2, figsize=(12,5), gridspec_kw={'width_ratios': [1.2, 1], 'wspace':0.6}, sharex=False, sharey=False)
ax1 = sc.pl.dotplot(adata, markers, groupby='bulk_labels', ax=ax1, dendrogram=True, show=False)
ax2 = sc.pl.dotplot(adata, markers, groupby='bulk_labels', ax=ax2, dendrogram=True, show=False, return_fig=True).\
style(x_padding=0.5, y_padding=0.5, cmap='Reds').show()The units for the |
esrice
pushed a commit
to WarrenLab/scanpy
that referenced
this pull request
Jul 15, 2020
…s to style(); added padding parameter to style to address scverse#1270; add legend width units to documentation. (scverse#1316)
Member
|
I think we're good to close this PR then, right? Let me know if I should reopen it. |
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.

@fidelram, I'm not sure whether I'm breaking things you intended differently. But for us, this removes the strange scaling of the white space above and below the dots, and makes it behave like the x-axis.
Just a suggestion, no need to follow up.