Skip to content

Unable to change vmax in scanpy.pl.scatter #875

@alm8517

Description

@alm8517

Hi Scanpy team,

A potentially silly question. I'm having problems changing vmax in sc.pl.scatter.

I want to set 'dpt_pseudotime' vmax to 0.5, similar to how vmax and vmin can be changed, for example, in sc.pl.umap.

I tried the following:

with axes_style({'axes.grid': False}):
sc.pl.scatter(adata_0_1, x='Vim', y='Lyz2', color='dpt_pseudotime', size=5, use_raw=False,
color_map='RdYlBu_r', vmax=0.5)

But get the following error:

image

I read in the scanpy.pl.scatter documentation that kwargs can be used to set vmax. I tried this approach, but got the same result as above:

kwargs={'vmax':0.5}

with axes_style({'axes.grid': False}):
sc.pl.scatter(adata_0_1, x='Vim', y='Lyz2',
color='dpt_pseudotime', size=5, use_raw=False, color_map='RdYlBu_r', **kwargs)

I tried to find a solution online with no success. Any help/suggestions will be appreciated

P.S: This is my first post and I'm a huge fan of your package. Keep up the great work!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions