tolerance = 15
res = compare_images(ROOT + "/master_matrixplot.png", outfile.name, tolerance)
assert res is None, res
os.remove(outfile.name)
// test matrixplot numeric column and alternative cmap
After Change
def test_matrixplot():
adata = sc.datasets.krumsiek11()
sc.pl.matrixplot(adata, adata.var_names, "cell_type", use_raw=False, show=False)
save_and_compare_images("master_matrixplot", tolerance=15)
// test matrixplot numeric column and alternative cmap
adata.obs["Gata2"] = adata.X[:, 0]
sc.pl.matrixplot(adata, adata.var_names, "Gata2", use_raw=False,