correction of y label in zipf graphic
authorPierre <ratinaud@univ-tlse2.fr>
Wed, 12 Feb 2014 20:12:08 +0000 (21:12 +0100)
committerPierre <ratinaud@univ-tlse2.fr>
Wed, 12 Feb 2014 20:12:08 +0000 (21:12 +0100)
textstat.py

index 54c8b4d..ee0e4ef 100644 (file)
@@ -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)