From 6f00e1d49c9fa1b9d01b03c0cb356064098a6f00 Mon Sep 17 00:00:00 2001 From: James Krieger Date: Fri, 15 Nov 2024 12:41:29 +0100 Subject: [PATCH] zero matrix with markersize --- prody/utilities/catchall.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/prody/utilities/catchall.py b/prody/utilities/catchall.py index 33d166dcc..94a9de640 100644 --- a/prody/utilities/catchall.py +++ b/prody/utilities/catchall.py @@ -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]])