Skip to content

Commit

Permalink
removed matplotlib < 3.3 stick plot error supression
Browse files Browse the repository at this point in the history
  • Loading branch information
sametz committed Dec 8, 2023
1 parent ffe9c49 commit b4d4db0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/nmrsim/plt.py
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@ def mplplot_stick(peaklist, y_min=-0.01, y_max=1, limits=None, hidden=False):
y = np.append(y, [0.001, 0.001])
plt.xlim(r_limit, l_limit)
plt.ylim(y_min, y_max)
ax.stem(x, y, markerfmt=" ", basefmt="C0-", use_line_collection=True) # suppress warning until mpl 3.3
ax.stem(x, y, markerfmt=" ", basefmt="C0-")
if not hidden:
plt.show()
return x, y
Expand Down

0 comments on commit b4d4db0

Please sign in to comment.