We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e17b65f commit 4f2cd03Copy full SHA for 4f2cd03
toyplot/canvas.py
@@ -760,7 +760,7 @@ def matrix(
760
colormap = toyplot.require.instance(data[1], toyplot.color.Map)
761
else:
762
matrix = toyplot.require.scalar_matrix(data)
763
- colormap = toyplot.color.brewer.map("BlueRed")
+ colormap = toyplot.color.brewer.map("BlueRed", domain_min=matrix.min(), domain_max=matrix.max())
764
765
colors = colormap.colors(matrix)
766
0 commit comments