Skip to content

Commit 83acd0f

Browse files
authored
rank_size_plot_typo (#545)
1 parent 0e56dba commit 83acd0f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

quantecon/inequality.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -144,7 +144,7 @@ def rank_size_plot(data, ax, label=None, c=1.0):
144144
for plotting on, has method ax.loglog
145145
"""
146146
w = - np.sort(- data) # Reverse sort
147-
w = w[:int(len(w) * c)] # extract top c%
147+
w = w[:int(len(w) * c)] # extract top (c * 100)%
148148
rank_data = np.arange(len(w)) + 1
149149
size_data = w
150150
ax.loglog(rank_data, size_data, 'o', markersize=3.0, alpha=0.5, label=label)

0 commit comments

Comments
 (0)