Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.graphics.apps.gnuplot > #1002

Plot spam campaigns from text files

From Dennis <dennis.sprengers@gmail.com>
Newsgroups comp.graphics.apps.gnuplot
Subject Plot spam campaigns from text files
Date 2012-03-29 14:36 -0700
Organization http://groups.google.com
Message-ID <5e6d82a0-aa08-429f-81c5-7b65850cd9f6@k14g2000vbe.googlegroups.com> (permalink)

Show all headers | View raw


I've just started using gnuplot, so perhaps I'm asking for the obvious
here.

I have the following script (with thanks to Gianluca):

set terminal png medium
set output "campaigns.png"
set size 12,12
set xdata time
set timefmt "%Y-%m-%d"
set xrange["2009-04-01":"2010-05-25"]
set yrange[0:12]
unset ytics
set xlabel "Day"
set ylabel "Campaign"


plot "campaign1.txt" using 2:1:($3/sqrt($3)) title "Campaign 1" with
points lw 10 pointsize variable pt 7, "campaign2.txt" using 2:1:($3/
sqrt($3)) title "Campaign 2" with points pointsize variable lw 10 pt 7

# both campaign1.txt and campaign2.txt look like
1 2009-6-27 2
1 2009-6-20 5
1 2009-6-21 15
1 2009-6-22 7
1 2009-6-23 13
1 2009-12-20 3

When I run the script (1), an empty png image with only the x- and y-
axis are being created. My question is: by this information, can you
tell why the datapoints from the textfiles aren't being plotted?

Back to comp.graphics.apps.gnuplot | Previous | NextNext in thread | Find similar


Thread

Plot spam campaigns from text files Dennis <dennis.sprengers@gmail.com> - 2012-03-29 14:36 -0700
  Re: Plot spam campaigns from text files "Alex van der Spek" <zdoor@xs4all.nl> - 2012-04-12 17:49 +0200

csiph-web