Skip to content

Commit

Permalink
Provisionally supply labels for x and y axis.
Browse files Browse the repository at this point in the history
labels can be None if you don't want a label.
  • Loading branch information
rlabbe committed Dec 20, 2015
1 parent 098fcb1 commit c8f3568
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions filterpy/stats/stats.py
Original file line number Diff line number Diff line change
Expand Up @@ -362,8 +362,10 @@ def plot_gaussian_pdf(mean=0., variance=1.,
if mean_line:
plt.axvline(mean)

ax.set_xlabel(xlabel)
ax.set_ylabel(ylabel)
if xlabel is not None:
ax.set_xlabel(xlabel)
if ylabel is not None:
ax.set_ylabel(ylabel)
return ax


Expand Down

0 comments on commit c8f3568

Please sign in to comment.