Skip to content

Commit

Permalink
Fix image urls
Browse files Browse the repository at this point in the history
  • Loading branch information
tammoippen committed Dec 14, 2021
1 parent 60ecebe commit ea9e8fc
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 11 deletions.
20 changes: 10 additions & 10 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ In [21] fig.plot(X, (X+2)**2 , lc=200, label='square')
In [22] print(fig.show(legend=True))
```

![Example figure](./imgs/figure.png)
![Example figure](https://github.com/tammoippen/plotille/raw/master/imgs/figure.png)

The available plotting functions are:

Expand Down Expand Up @@ -170,7 +170,7 @@ Returns:
In [5]: print(plotille.plot(X, np.sin(X), height=30, width=60))
```

![Example plot](./imgs/plot.png)
![Example plot](https://github.com/tammoippen/plotille/raw/master/imgs/plot.png)

#### Scatter

Expand Down Expand Up @@ -224,7 +224,7 @@ Returns:
In [7]: print(plotille.scatter(X, np.sin(X), height=30, width=60))
```

![Example scatter](./imgs/scatter.png)
![Example scatter](https://github.com/tammoippen/plotille/raw/master/imgs/scatter.png)

#### Hist

Expand Down Expand Up @@ -266,7 +266,7 @@ Returns:
In [9]: print(plotille.hist(np.random.normal(size=10000)))
```

![Example hist](./imgs/hist.png)
![Example hist](https://github.com/tammoippen/plotille/raw/master/imgs/hist.png)

#### Histogram

Expand Down Expand Up @@ -318,7 +318,7 @@ Returns:
In [11]: print(plotille.histogram(np.random.normal(size=10000)))
```

![Example histogram](./imgs/histogram.png)
![Example histogram](https://github.com/tammoippen/plotille/raw/master/imgs/histogram.png)

### Canvas

Expand Down Expand Up @@ -522,33 +522,33 @@ In [22]: c.line(0.35, 0.8, 0.6, 0.6)
In [23]: print(c.plot())
```

![House](./imgs/house.png)
![House](https://github.com/tammoippen/plotille/raw/master/imgs/house.png)

Or you could render images with braille dots:

```python
In [24]: img = Image.open('./imgs/ich.jpg')
In [24]: img = Image.open('https://github.com/tammoippen/plotille/raw/master/imgs/ich.jpg')
In [25]: img = img.convert('L')
In [26]: img = img.resize((80, 80))
In [27]: cvs = Canvas(40, 20)
In [28]: cvs.braille_image(img.getdata())
In [29]: print(cvs.plot())
```

![Me with dots](./imgs/ich-dots.png)
![Me with dots](https://github.com/tammoippen/plotille/raw/master/imgs/ich-dots.png)

Or you could render images with the background color of characters:

```python
In [24]: img = Image.open('./imgs/ich.jpg')
In [24]: img = Image.open('https://github.com/tammoippen/plotille/raw/master/imgs/ich.jpg')
In [25]: img = img.convert('RGB')
In [25]: img = img.resize((80, 40))
In [27]: cvs = Canvas(80, 40, mode="rgb")
In [28]: cvs.image(img.getdata())
In [29]: print(cvs.plot())
```

![Me with chars](./imgs/ich-chars.png)
![Me with chars](https://github.com/tammoippen/plotille/raw/master/imgs/ich-chars.png)

## Stargazers over time

Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
[tool.poetry]

name = "plotille"
version = "4.0.0"
version = "4.0.1"
description = "Plot in the terminal using braille dots."
authors = ["Tammo Ippen <tammo.ippen@posteo.de>"]
license = "MIT"
Expand Down

0 comments on commit ea9e8fc

Please sign in to comment.