Skip to content

Commit

Permalink
remove dupicate axis
Browse files Browse the repository at this point in the history
  • Loading branch information
crvernon committed Feb 23, 2023
1 parent a6220a4 commit c257c9b
Show file tree
Hide file tree
Showing 3 changed files with 22 additions and 1,298 deletions.

Large diffs are not rendered by default.

This file was deleted.

8 changes: 5 additions & 3 deletions notebooks/functions/plotdist.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,8 @@ def plotDistribution(Q, mus, sigmas, P):
pi[1]*ss.norm.pdf(x,mus[1],sigmas[1])


fig, ax = plt.subplots(figsize=(12, 8))
ax = fig.add_subplot(111)
fig, ax = plt.subplots(1, 1, figsize=(12, 8))

ax.hist(Q, color='k', alpha=0.5, density=True)
l1, = ax.plot(x_0, fx_0, c='r', linewidth=2, label='Dry State Distn')
l2, = ax.plot(x_1, fx_1, c='b', linewidth=2, label='Wet State Distn')
Expand All @@ -33,9 +33,11 @@ def plotDistribution(Q, mus, sigmas, P):
handles, labels = plt.gca().get_legend_handles_labels()
matplotlib.rc('legend', fontsize = 16)
plt.legend()

plt.xticks(fontsize = 14)
plt.yticks(fontsize = 14)

plt.show()
plt.close(fig)
plt.close()

return None

0 comments on commit c257c9b

Please sign in to comment.