Skip to content

Commit

Permalink
rank_size_plot_typo
Browse files Browse the repository at this point in the history
  • Loading branch information
shlff committed May 12, 2020
1 parent 0e56dba commit 05c3fd7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion quantecon/inequality.py
Original file line number Diff line number Diff line change
Expand Up @@ -144,7 +144,7 @@ def rank_size_plot(data, ax, label=None, c=1.0):
for plotting on, has method ax.loglog
"""
w = - np.sort(- data) # Reverse sort
w = w[:int(len(w) * c)] # extract top c%
w = w[:int(len(w) * c)] # extract top (c * 100)%
rank_data = np.arange(len(w)) + 1
size_data = w
ax.loglog(rank_data, size_data, 'o', markersize=3.0, alpha=0.5, label=label)
Expand Down

0 comments on commit 05c3fd7

Please sign in to comment.