Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
sgreben committed Mar 29, 2018
1 parent ef658b5 commit 53ecae9
Showing 1 changed file with 70 additions and 71 deletions.
141 changes: 70 additions & 71 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -153,91 +153,90 @@ $ echo '[[-3, 5], [-2, 0], [-1, 0.1], [0, 1], [1, 2], [2, 3]]' | jp -xy '[*][0,

```bash
$ jq -n '[range(200)/20 | [., sin]]' | jp -x '[*][0]' -y '[*][1]'

1.059955│ ▄▄▄▄▖ ▄▄▄▄▖
│ ▗▀ ▝▚▖ ▗▛▘ ▝▚▖
│ ▟▘ ▀▖ ▄▘ ▝▖
│ ▟ ▝▖ ▞▘ ▝▖
│ ▟ ▝▖ ▞▘ ▝▖
│ ▐ ▐ ▗▘ ▐▖
│ ▐▘ ▚ ▗▘ ▐
│▗▘ ▚ ▞ ▚
│▞ ▝▖ ▞ ▌
│ ▝▖ ▐ ▝▖
│ ▐ ▗▘ ▀▖
│ ▚ ▗▘ ▚
│ ▚ ▗▞ ▙
│ ▝▚ ▞ ▘
│ ▝▄ ▗▞
│ ▝▙ ▞
│ ▚▖ ▄▛
│ ▝▀▀▀▀▘
1.059955│ ▄▄▄▖ ▗▄▄▄▖
│ ▄▀▘ ▝▜▖ ▗▞▘ ▝▚
│ ▟ ▝▄ ▗▀ ▜
│ ▟ ▝▄ ▗▀ ▜
│ ▐ ▝▖ ▗▞ ▚▖
│ ▗▘ ▝▖ ▞ ▚
│ ▗▘ ▚ ▞ ▌
│ ▌ ▌ ▗▘ ▝▖
│ ▞ ▝▖ ▌ ▚
│▗▘ ▚ ▞ ▌
│▌ ▌ ▗▘ ▝▖
│ ▝▖ ▗▘ ▐
│ ▐ ▞ ▚
│ ▚ ▐ ▝▖
│ ▝▖ ▗▘ ▐
│ ▐ ▞ ▚
│ ▀▖ ▐
│ ▚ ▄▘
│ ▙ ▗▘
│ ▚ ▄▘
│ ▚▄ ▗▞▘
│ ▝▀▀▀▘
-1.059955└─────────────────────────────────────────────────────────────────────
0 10.547
0 9.95
```

#### Array data, XY pairs

```bash
$ jq -n '[range(200)/20 | [., sin]]' | jp -xy '[*][0, 1]'

1.059955│ ▄▄▄▄▖ ▄▄▄▄▖
│ ▗▀ ▝▚▖ ▗▛▘ ▝▚▖
│ ▟▘ ▀▖ ▄▘ ▝▖
│ ▟ ▝▖ ▞▘ ▝▖
│ ▟ ▝▖ ▞▘ ▝▖
│ ▐ ▐ ▗▘ ▐▖
│ ▐▘ ▚ ▗▘ ▐
│▗▘ ▚ ▞ ▚
│▞ ▝▖ ▞ ▌
│ ▝▖ ▐ ▝▖
│ ▐ ▗▘ ▀▖
│ ▚ ▗▘ ▚
│ ▚ ▗▞ ▙
│ ▝▚ ▞ ▘
│ ▝▄ ▗▞
│ ▝▙ ▞
│ ▚▖ ▄▛
│ ▝▀▀▀▀▘
1.059955│ ▄▄▄▖ ▗▄▄▄▖
│ ▄▀▘ ▝▜▖ ▗▞▘ ▝▚
│ ▟ ▝▄ ▗▀ ▜
│ ▟ ▝▄ ▗▀ ▜
│ ▐ ▝▖ ▗▞ ▚▖
│ ▗▘ ▝▖ ▞ ▚
│ ▗▘ ▚ ▞ ▌
│ ▌ ▌ ▗▘ ▝▖
│ ▞ ▝▖ ▌ ▚
│▗▘ ▚ ▞ ▌
│▌ ▌ ▗▘ ▝▖
│ ▝▖ ▗▘ ▐
│ ▐ ▞ ▚
│ ▚ ▐ ▝▖
│ ▝▖ ▗▘ ▐
│ ▐ ▞ ▚
│ ▀▖ ▐
│ ▚ ▄▘
│ ▙ ▗▘
│ ▚ ▄▘
│ ▚▄ ▗▞▘
│ ▝▀▀▀▘
-1.059955└─────────────────────────────────────────────────────────────────────
0 10.547
0 9.95
```

#### Y values only (X=index)

```bash
$ cat examples/tcp-time.json | jp -y ..Duration

5.342888e+07│▐▌
│▐▌
│▐▐
│▐▐ ▐
│▐▐ ▐
│▐▐ ▐
│▐▐ ▐
│▞▐ ▐▖
│▌▐ ▐▌
│▌▐ ▐▌
│▌▐ ▞▌ ▌
│▌▐ ▗ ▄ ▌▌ ▌
│▘▐ ▗ ▐ ▞▐ ▌▌ ▌
│ ▐ ▗ ▟ █ ▌▐ ▌▌ ▗▌
│ ▐ ▙ ▐▌ █ █ ▌▐ ▟ ▌▌ ▐▌
│ ▌ ▛▖ ▐▐ ▗▜ █ ▌ ▌▗ █ ▌▌ ▐▌
│ ▌ ▟ ▚ ▌▐▗ ▐▝▟▐ ▌ ▌▟▐ ▌ ▌▚ ▐▌ ▖
│ ▌ █ ▐ ▌▐▐▌▐ █ ▌▗ ▐ ▌▛▟ ▌▗ ▌▐ ▐▐ ▌
│ ▌▗▀ ▝▄▘ ▛▐▌ ▛ ▌▟ ▐ ▀ ▌ ▌▐ ▌▐ ▐▐ ▗▚
│ ▌▐ ▘ ▌ ▘ ▌ ▌█ ▐ ▘ ▐▛▖▌▐ ▐▐ ▗▌ ▖ ▖ ▐▐
│ ▙▐ ▘ ▘ █▐ ▐ ▝▌▌▌▐▄ ▞▐ ▌▌▗▜ ▐▌ ▐▐ ▗▖
│ ▜▐ ▌ ▌▟ █ ▌▌▐ ▄▘▚▐▐ ▗▄ ▌▐▖ ▗ ▞▐▐ ▞▚ ▗ ▖▗▌▐▄
│ ▝▞ ▙▘ ▜ ▐▌▐▐▜ ▐▞ ▌▐▝▟ ▝▄▀▄▘▝▞▀▘▝▖ ▞▄▌▌▌▌
│ ▌ ▛ ▐ ▌▐▌▝ ▝▌ ▚▌ ▌ ▚▞▘▜▐ ▐▘
│ ▘ ▘ ▝ ▝▌ ▘ ▝ ▝
4.591664e+07└──────────────────────────────────────────────────────────────────
0 97.02
5.726165e+07│
│ ▗
│ ▟
│ █
│▐▝▖
│▐ ▌ ▌
│▐ ▌ ▌
│▌ ▌ ▐▚
│▌ ▌ ▗ ▗ ▐▐ ▌
│▘ ▌ ▖ ▐ ▞▀▖ ▐▐ ▌
│ ▚ ▐▚ ▗▀▖ ▗▚ ▌▌ ▗▘ ▌ ▖▗▀▌ ▌▐ █
│ ▐ ▛▌ ▚▖▞ ▚▐▖ ▞▐ ▌▌ ▗ ▐ ▐▟▐▞ ▚ ▗ ▌▝▖ ▐▐ ▐
│ ▐ ▐ ▝ ▝▌▝▀ ▝▟ ▚▗▜ ▞ ▘ ▐▖█▗▘ ▌ ▐▐ ▗ ▄▖ ▄▖ ▌▌
│ ▝▚▐ ▘ ▘ ▐▘▝▖▄▌ ▝▝▟ ▀▀▚▟ ▌ ▖▞▘▌▐ ▚ ▗▄ ▐ ▚▄▖ ▄ ▄▘▌▞▄▄▀▚ ▄ ▄▗▞▖▞▄▄▚
│ ▝▌ ▛ ▌ ▝ ▙▞▝ ▝▘ ▝▚▘ ▀▘ ▝▀ ▀ ▐▘ ▚▞▀ ▀ ▘ ▚▘
4.446018e+07└──────────────────────────────────────────────────────────────────────────────────────
0 99
```

### Scatter plot
Expand Down

0 comments on commit 53ecae9

Please sign in to comment.