Skip to content

Commit

Permalink
zero matrix with markersize
Browse files Browse the repository at this point in the history
  • Loading branch information
jamesmkrieger committed Nov 15, 2024
1 parent fcf1360 commit 6f00e1d
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions prody/utilities/catchall.py
Original file line number Diff line number Diff line change
Expand Up @@ -739,6 +739,8 @@ def showMatrix(matrix, x_array=None, y_array=None, **kwargs):
im = ax3.imshow(matrix, aspect=aspect, vmin=vmin, vmax=vmax,
norm=norm, cmap=cmap, origin=origin, **kwargs)
else:
zeros_matrix = np.zeros(matrix.shape)
im = ax3.imshow(zeros_matrix, vmin=-1, vmax=1, cmap='seismic')
plot_list = []
for rows,cols in zip(np.where(matrix!=0)[0],np.where(matrix!=0)[1]):
plot_list.append([cols,rows,matrix[rows,cols]])
Expand Down

0 comments on commit 6f00e1d

Please sign in to comment.