question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Changing scale for plotting functions

See original GitHub issue

Hello there,

Is it possible to customise the expression range scale when using for example pl.umap? I thought I could try use_raw=True, but got the same issue as in #370.

Thank you for your help!

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:6 (1 by maintainers)

github_iconTop GitHub Comments

1reaction
fidelramcommented, Nov 22, 2018

you can use vmin and vmax to control the scale range. You can also change the colormap using cmap. For example:

rcParams['figure.figsize'] = 4,4
adata = sc.datasets.pbmc68k_reduced()
sc.pl.umap(adata, color=['CD3D'], use_raw=False, cmap='bwr', vmin=-3, vmax=3)

image

0reactions
fidelramcommented, Aug 15, 2019

We are discussing that at the moment. See https://github.com/theislab/scanpy/issues/775

Read more comments on GitHub >

github_iconTop Results From Across the Web

How to Change the Scale of the Graph of a Function Horizontally
How to Change the Scale of the Graph of a Function Horizontally. Step 1: Identify several points on the original graph and create...
Read more >
Shifting and Scaling
What is Shifting and Scaling in mathmatic graphs? ... A translation in which the size and shape of the graph of a function...
Read more >
Vertical Scaling | Definitions | Graphs | Examples - Cuemath
Vertical scaling refers to changing the shape and size of the graph of the function along the y-axis and is done by multiplying...
Read more >
How to Change Axis Scales in R Plots (With Examples)
To change the axis scales on a plot in base R, we can use the xlim() and ylim() functions. The following code shows...
Read more >
How to Change Axis Scales in R Plots? - GeeksforGeeks
To convert the axis scale log scale in the base R plot, we use the log argument of the plot() function. The log...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found