From 05c3fd73b4148af060627c7fff51a67d04c9da92 Mon Sep 17 00:00:00 2001 From: Shu Date: Tue, 12 May 2020 10:55:18 +1000 Subject: [PATCH] rank_size_plot_typo --- quantecon/inequality.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/quantecon/inequality.py b/quantecon/inequality.py index 809b5022b..eb7b64b14 100644 --- a/quantecon/inequality.py +++ b/quantecon/inequality.py @@ -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)