From ffc3373b1ffcb4d73c113def330e40f1affe9952 Mon Sep 17 00:00:00 2001 From: Steffen Remus <steremus@gmail.com> Date: Wed, 17 Apr 2024 15:21:22 +0200 Subject: [PATCH] Plot frequency against rank on log-log axes --- bin/plotcounts.py | 1 + 1 file changed, 1 insertion(+) diff --git a/bin/plotcounts.py b/bin/plotcounts.py index 86e8e54..63c6710 100755 --- a/bin/plotcounts.py +++ b/bin/plotcounts.py @@ -94,6 +94,7 @@ def main(args): names=('word', 'word_frequency')) df['rank'] = df['word_frequency'].rank(ascending=False, method='max') + ax = df.plot.scatter(x='word_frequency', y='rank', loglog=True, figsize=[12, 6], -- GitLab