Skip to content

Commit

Permalink
Fix for canvas_set_window_title
Browse files Browse the repository at this point in the history
  • Loading branch information
erdogant committed Oct 14, 2022
1 parent a888e75 commit 34d02b7
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion benfordslaw/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

__author__ = 'Erdogan Tasksen'
__email__ = 'erdogant@gmail.com'
__version__ = '1.2.0'
__version__ = '1.2.1'

# module level doc-string
__doc__ = """
Expand Down
1 change: 0 additions & 1 deletion benfordslaw/benfordslaw.py
Original file line number Diff line number Diff line change
Expand Up @@ -183,7 +183,6 @@ def plot(self, title='', fontsize=16, barcolor='black', barwidth=0.3, label='Emp
title = title + "\nNo anomaly detected. P=%g, Tstat=%g" %(self.results['P'], self.results['t'])

# Add some text for labels, title and custom x-axis tick labels, etc.
fig.canvas.set_window_title('Percentage First Digits')
ax.set_title(title, fontsize=fontsize)
ax.set_ylabel('Frequency (%)', fontsize=fontsize)
ax.set_xlabel('Digits', fontsize=fontsize)
Expand Down
2 changes: 2 additions & 0 deletions benfordslaw/examples.py
Original file line number Diff line number Diff line change
Expand Up @@ -141,3 +141,5 @@
X = df['votes'].loc[Iloc].values
bl.fit(X)
bl.plot(title=candidate)

# %%

0 comments on commit 34d02b7

Please sign in to comment.