KrishnaswamyLab / scprep

A collection of scripts and tools for loading, processing, and handling single cell data.
MIT License
72 stars 21 forks source link

MatplotlibDeprecationWarning: Passing parameters norm and vmin/vmax simultaneously is deprecated #107

Closed dburkhardt closed 3 years ago

dburkhardt commented 3 years ago

Describe the bug MatplotlibDeprecationWarning: Passing parameters norm and vmin/vmax simultaneously is deprecated since 3.3 and will become an error two minor releases later. Please pass vmin/vmax directly to the norm when creating it.

https://matplotlib.org/3.3.0/api/prev_api_changes/api_changes_3.3.0/deprecations.html#parameters-norm-and-vmin-vmax-should-not-be-used-simultaneously

To Reproduce import scprep import numpy as np

X = np.random.normal(size=(100,2))

scprep.plot.scatter2d(X, c=X[:,0], vmin=-1, vmax=1)

scprep version 1.0.5.post2