Skip to content

Commit

Permalink
fixed colorbar axis error
Browse files Browse the repository at this point in the history
  • Loading branch information
carolinesands committed Aug 9, 2024
1 parent 9f076e8 commit d0f639d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion nPYc/plotting/_multivariatePlotting.py
Original file line number Diff line number Diff line change
Expand Up @@ -543,7 +543,7 @@ def plotLoadings(pcaModel, msData, title='', figures=None, savePath=None, figure
plt.ylim(Yvals.min() * 1.2, Yvals.max() * 1.2)
plt.gca().invert_xaxis()

cbar = plt.colorbar(cb)
cbar = plt.colorbar(cb, ax=ax)
cbar.set_label('Loadings')
ax.set_xlabel(Xlabel)
ax.set_ylabel(Ylabel)
Expand Down

0 comments on commit d0f639d

Please sign in to comment.