Skip to content

Commit

Permalink
update(linux-gnuplot): basic demo of gnuplot
Browse files Browse the repository at this point in the history
issue #104
  • Loading branch information
sabertazimi committed Dec 12, 2018
1 parent c30af6c commit 874c5f6
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions programming/linux/linuxBasicNotes.md
Original file line number Diff line number Diff line change
Expand Up @@ -1021,6 +1021,20 @@ fit
plot 'data.dat' using 1:2, 'data.dat' using 1:3
```

```bash
#!/usr/bin/gnuplot -c

set terminal png enhanced
set output ARG1.".png"
set style data linespoints
show timestamp
set title ARG1
set xlabel "time (seconds)"
set ylabel "Segments (cwnd, ssthresh)"
plot ARG1 using 1:7 title "snd_cwnd", \
ARG1 using 1:($8>=2147483647 ? 0 : $8) title "snd_ssthresh"
```

### Other Command

#### Time
Expand Down

0 comments on commit 874c5f6

Please sign in to comment.