I have a sparse matrix (140 x 363) with many zeroes. This matrix only has positive float values.
I would like to generate a scatter pairs matrix plot discarding all zero values (0.0, 0.0) without affecting the display of the example values (0.0, 7.2), (7.2, 0.0), etc.
I have investigated sns.pairplot
, sns.pairgrid
, pd.scatter_matrix
, Altair, and Plotty without getting a solution.
Unfortunately, none of these tools accept crs, coo, etc.
I have also tried plotting with the full matrix by passing nonzero instructions to the dataframe but it doesn't work either.
Is there a solution?
Can't you convert your sparse matrix to a coo format and then take the x and y coordinates?