From 3563d5ffbef160a381af784d9d8cce2ce26e11d9 Mon Sep 17 00:00:00 2001 From: Pierre Date: Wed, 12 Feb 2014 21:12:08 +0100 Subject: [PATCH] correction of y label in zipf graphic --- textstat.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/textstat.py b/textstat.py index 54c8b4d..ee0e4ef 100644 --- a/textstat.py +++ b/textstat.py @@ -88,7 +88,7 @@ class Stat(AnalyseText) : """ % self.pathout['hapax.csv'] txt += """ open_file_graph("%s", width = 400, height = 400) - plot(log(tot[,1]), log = 'x', xlab='log(rangs)', ylab = 'log(frequences)', col = 'red', pch=16) + plot(tot[,1], log = 'xy', xlab='log(rangs)', ylab = 'log(frequences)', col = 'red', pch=16) dev.off() """ % (self.pathout['zipf.png']) tmpscript = tempfile.mktemp(dir=self.parent.TEMPDIR) -- 2.7.4