You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Some of the parameters documented online for pl.scatter are not accepted by the method: ncols, wspace, hspace. And some are not documented: right_margin, left_margin.
The difference seems to come from the parameters described in {scatter_bulk} and used for pl.scatter documentation.
What should be fixed scatter_bulk or inputs for pl.scatter?
Hi Bérénice, ncols, wspace and hspace should work although they are only
meaningful when more than one plot is present. I think that right_margin
and left_margin were used in the initial implementation but no longer.
On Mon, Feb 4, 2019 at 9:50 AM Bérénice Batut ***@***.***> wrote:
Hi,
Some of the parameters documented online for pl.scatter are not accepted
by the method: ncols, wspace, hspace. And some are not documented:
right_margin, left_margin.
The difference seems to come from the parameters described in
{scatter_bulk} and used for pl.scatter documentation.
What should be fixed scatter_bulk or inputs for pl.scatter?
Bérénice
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
<#458>, or mute the thread
<https://github.com/notifications/unsubscribe-auth/AEu_1bLyz9mimlEZzQ3hbnyiW45MtBHJks5vJ_Q_gaJpZM4agxAk>
.
We have the badge. I think we should remove that if we’re not actually recommending installation that way. If there’s a “[On ]bioconda” badge to put next to the PyPI badge, I’d prefer that.
/edit: The badges are custom, we can control the text. I replaced it to match the PyPI badge, except that we can’t get a version, so I put a cute snake:
I also just realised that pl.scatter does not take ncols as an argument. I am also using scanpy v1.4 from bioconda. The online documentation also does not mention ncols as an argument: scanpy.pl.scatter(adata, x=None, y=None, color=None, use_raw=None, layers='X', sort_order=True, alpha=None, basis=None, groups=None, components=None, projection='2d', legend_loc='right margin', legend_fontsize=None, legend_fontweight=None, color_map=None, palette=None, frameon=None, right_margin=None, left_margin=None, size=None, title=None, show=None, save=None, ax=None) (copy-paste from https://icb-scanpy.readthedocs-hosted.com/en/latest/api/scanpy.pl.scatter.html), but it does mention ncols below in the description.
pl.scatter is, unfortunately, not in the best shape anymore. Since Fidel rewrote a large part of the plotting API, it's not used by any of the frequently used embeddings scatters anymore and would need to be simplified a lot, before actually adding new functionality (like ncols).
Would you mind correcting the docs? What are you using pl.scatter for?
@fabianrost84 The 'layers' were not added to anndata until recently and had not been implemented in all functions. However, adding this functionality to the different scatter plot functions is straightforward.
As @bebatut pointed out, pl.scatter uses doc_scatter_bulk for the documentation. It does not seem to make sense to remove ncols from doc_scatter_bulk as it is used for pl.umap and so on.
How should the docs for pl.scatter be corrected? Should we remove doc_scatter_bulk and copy-paste the relevant documentation from doc_scatter_bulk to the pl.scatter doc string? At least until pl.scatter is in good shape again.
Activity
fidelram commentedon Feb 4, 2019
bebatut commentedon Feb 4, 2019
right_marginandleft_marginare still listed as parameters forpl.scatter:https://github.com/theislab/scanpy/blob/c15a5e8763097082c82cd8ef6fee697954c487dc/scanpy/plotting/_anndata.py#L49
And
ncols,wspaceandhspaceare not accepted (with the current version on conda) 😟fidelram commentedon Feb 4, 2019
falexwolf commentedon Feb 5, 2019
We're not maintaining the bioconda version, but it looks as if it was up to date: https://bioconda.github.io/recipes/scanpy/README.html
How is it working, anyways? Does somebody know? Does it automatically pull from PyPI?
flying-sheep commentedon Feb 5, 2019
We have the
badge. I think we should remove that if we’re not actually recommending installation that way. If there’s a “[On ]bioconda” badge to put next to the PyPI badge, I’d prefer that.
/edit: The badges are custom, we can control the text. I replaced it to match the PyPI badge, except that we can’t get a version, so I put a cute snake:

flying-sheep commentedon Feb 5, 2019
yes: bioconda/bioconda-recipes#12958
falexwolf commentedon Feb 5, 2019
Thanks! Makes sense! (Both the badge and the automatic update from PyPI).
fbnrst commentedon Mar 22, 2019
I also just realised that
pl.scatterdoes not takencolsas an argument. I am also using scanpy v1.4 from bioconda. The online documentation also does not mention ncols as an argument:scanpy.pl.scatter(adata, x=None, y=None, color=None, use_raw=None, layers='X', sort_order=True, alpha=None, basis=None, groups=None, components=None, projection='2d', legend_loc='right margin', legend_fontsize=None, legend_fontweight=None, color_map=None, palette=None, frameon=None, right_margin=None, left_margin=None, size=None, title=None, show=None, save=None, ax=None)(copy-paste from https://icb-scanpy.readthedocs-hosted.com/en/latest/api/scanpy.pl.scatter.html), but it does mentionncolsbelow in the description.falexwolf commentedon Mar 24, 2019
pl.scatteris, unfortunately, not in the best shape anymore. Since Fidel rewrote a large part of the plotting API, it's not used by any of the frequently used embeddings scatters anymore and would need to be simplified a lot, before actually adding new functionality (likencols).Would you mind correcting the docs? What are you using
pl.scatterfor?fbnrst commentedon Mar 24, 2019
Sure, I can have a look at the docs. I've been using it because of the
layersargument sincepl.umapdoes not seem to have it.fidelram commentedon Mar 25, 2019
@fabianrost84 The 'layers' were not added to anndata until recently and had not been implemented in all functions. However, adding this functionality to the different scatter plot functions is straightforward.
Let me prepare a quick PR.
fbnrst commentedon Mar 25, 2019
As @bebatut pointed out,
pl.scatterusesdoc_scatter_bulkfor the documentation. It does not seem to make sense to removencolsfromdoc_scatter_bulkas it is used forpl.umapand so on.How should the docs for
pl.scatterbe corrected? Should we removedoc_scatter_bulkand copy-paste the relevant documentation fromdoc_scatter_bulkto thepl.scatterdoc string? At least untilpl.scatteris in good shape again.fidelram commentedon Mar 25, 2019
@fabianrost84 The best would be to remove
doc_scatter_bulkand copy paste the relevant documentation.flying-sheep commentedon Mar 26, 2019
please never say those words when speaking about code again 😜
No but seriously: There’s at least 6 reasons not to do that and to introduce a second (temporary) variable instead: #557 (comment)
DOC: remove ncols, wspace, hspace from pl.scatter doc (#557)
DOC: remove ncols, wspace, hspace from pl.scatter doc (scverse#557)
DOC: remove ncols, wspace, hspace from pl.scatter doc (scverse#557)