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
I have checked that this issue has not already been reported.
I have confirmed this bug exists on the latest version of scanpy.
(optional) I have confirmed this bug exists on the main branch of scanpy.
What happened?
sc.pl.paga_path is supposed to output a heatmap. However, with the default parameter n_avg=1, the plotting fails. Internally, the function passes an array X, X = np.asarray(X).squeeze() to ax.imshow img = ax.imshow(X, aspect="auto", interpolation="nearest", cmap=color_map). X is one dimensional because of the squeeze() and imshow only accepts 2d arrays. It's fixed for n_avg=1 when squeeze is removed but still fails when n_avg is other numbers
Please make sure these conditions are met
What happened?
sc.pl.paga_path is supposed to output a heatmap. However, with the default parameter n_avg=1, the plotting fails. Internally, the function passes an array X,
X = np.asarray(X).squeeze()
to ax.imshowimg = ax.imshow(X, aspect="auto", interpolation="nearest", cmap=color_map)
. X is one dimensional because of the squeeze() and imshow only accepts 2d arrays. It's fixed for n_avg=1 when squeeze is removed but still fails when n_avg is other numbersMinimal code sample
Error output
Versions
The text was updated successfully, but these errors were encountered: