Skip to content

Commit

Permalink
ensure integer x axis for pmf (#298)
Browse files Browse the repository at this point in the history
  • Loading branch information
aloctavodia authored Nov 22, 2023
1 parent 7d69e17 commit ae6e188
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions preliz/internal/plot_helper.py
Original file line number Diff line number Diff line change
Expand Up @@ -141,6 +141,7 @@ def plot_pdfpmf(
ax.axhline(0, color="0.8", ls="--", zorder=0)
ax.plot(x_c, mass_c, ls="dotted", color=color, alpha=alpha)
ax.plot(x, mass, "o", label=label, color=color, alpha=alpha)
ax.xaxis.set_major_locator(MaxNLocator(integer=True))

if pointinterval:
plot_pointinterval(dist, interval, levels, ax=ax)
Expand Down

0 comments on commit ae6e188

Please sign in to comment.