Skip to content

Commit

Permalink
flt.cc:
Browse files Browse the repository at this point in the history
  Rearranged some methods.
flt_test.cc:
  Extended current tests. Stuck on overflow issue.
data.txt:
  Added more datapoints.
zengraph.rb:
  Fixed stupid bugs.
scripts/p4:
  Fixed env regexen.
  Implemented .rc file thingy.
  Implemented connect
  Cleaned odd.

[git-p4: depot-paths = "//src/ZenGraph/dev/": change = 773]
  • Loading branch information
zenspider committed Apr 6, 2001
1 parent 0c057af commit bf10b27
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
3 changes: 3 additions & 0 deletions data.txt
Expand Up @@ -9,6 +9,9 @@
2001-03-08: data 242
2001-03-15: data 239.5
2001-03-22: data 236.5
2001-03-29: data 235.5
2001-03-31: data 233
2001-04-05: data 230.5

2001-01-01: goal 255
2001-02-01: goal 245
Expand Down
6 changes: 3 additions & 3 deletions zengraph.rb
Expand Up @@ -96,14 +96,14 @@ def process_files(files)
def save(file)
generate_gnuplot unless @generated

`cp temp.$$.png #{file}`
`cp temp.#{$$}.png #{file}`

end

def view
generate_gnuplot unless @generated

`xv temp.$$.png`
`xv temp.#{$$}.png`
end

protected
Expand Down Expand Up @@ -150,7 +150,7 @@ def generate_gnuplot

# TODO these should all be customizable
out.print "set terminal png small color\n";
out.print "set output 'temp.$$.png'\n";
out.print "set output 'temp.#{$$}.png'\n";
out.print "set timefmt '%Y-%m-%d'\n";
out.print "set xdata time\n";
out.print "set ylabel 'Count'\n";
Expand Down

0 comments on commit bf10b27

Please sign in to comment.