Skip to main content

All Questions

Tagged with
1 vote
1 answer
186 views

Displaying row sum in a secondary colorbar while plotting matrix

I'm plotting a matrix using matshow. I have an array sum = np.sum(A, axis=0) I'd like to display the values stored in sum as a secondary legend. import numpy as np import matplotlib.pyplot as plt ...
Natasha's user avatar
  • 1,431
2 votes
1 answer
136 views

How to plot the legend of this graph of which there are many functions?

I have a matrix X contains only 1 row that serves as an input. I have a matrix Y of which each row serves as an output of a function. If Y has 5 rows, then we have 5 different functions. I plot all ...
Akira's user avatar
  • 2,780