Skip to content

Commit d7587d1

Browse files
authored
Use correct URL parameter for raw pictures from GitHub (#16)
This helps local markdown viewers and third-party websites like flora.pm to recover the raw PNG and display it properly
1 parent b902b8c commit d7587d1

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

README.md

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ A library for producing terminal plots. It depends only on Haskell's base and te
1515
## Examples
1616

1717
### Scatter plot
18-
![Scatter Plot](https://github.com/mchav/granite/blob/main/static/scatter_plot.png)
18+
![Scatter Plot](https://github.com/mchav/granite/blob/main/static/scatter_plot.png?raw=true)
1919

2020
```haskell
2121
import Control.Monad
@@ -36,7 +36,7 @@ main = do
3636
```
3737

3838
### Bar chart
39-
![Bar chart](https://github.com/mchav/granite/blob/main/static/bar_chart.png)
39+
![Bar chart](https://github.com/mchav/granite/blob/main/static/bar_chart.png?raw=true)
4040

4141
```haskell
4242
{-# LANGUAGE OverloadedStrings #-}
@@ -49,7 +49,7 @@ main = T.putStrLn (bars [("Q1",12),("Q2",18),("Q3",9),("Q4",15)] defPlot {plotTi
4949
```
5050

5151
### Stacked bar chart
52-
![Stacked bar chart](https://github.com/mchav/granite/blob/main/static/stacked_bar.png)
52+
![Stacked bar chart](https://github.com/mchav/granite/blob/main/static/stacked_bar.png?raw=true)
5353

5454
```haskell
5555
{-# LANGUAGE OverloadedStrings #-}
@@ -66,7 +66,7 @@ main = T.putStrLn (stackedBars [ ("Q1", [("Hardware", 120), ("Software", 200),
6666
```
6767

6868
### Pie chart
69-
![Pie chart](https://github.com/mchav/granite/blob/main/static/pie_chart.png)
69+
![Pie chart](https://github.com/mchav/granite/blob/main/static/pie_chart.png?raw=true)
7070

7171
```haskell
7272
{-# LANGUAGE OverloadedStrings #-}
@@ -79,7 +79,7 @@ main = T.putStrLn (pie [("Alpha",0.35),("Beta",0.25),("Gamma",0.20),("Delta",0.2
7979
```
8080

8181
### Box plot
82-
![Box plot](https://github.com/mchav/granite/blob/main/static/box_plot.png)
82+
![Box plot](https://github.com/mchav/granite/blob/main/static/box_plot.png?raw=true)
8383

8484
```haskell
8585
{-# LANGUAGE OverloadedStrings #-}
@@ -96,7 +96,7 @@ main = T.putStrLn $ boxPlot [ ("Class A", [78, 82, 85, 88, 90, 92, 85, 87, 89, 9
9696
```
9797

9898
### Line graph
99-
![Line graph](https://github.com/mchav/granite/blob/main/static/line_graph.png)
99+
![Line graph](https://github.com/mchav/granite/blob/main/static/line_graph.png?raw=true)
100100

101101
```haskell
102102
{-# LANGUAGE OverloadedStrings #-}
@@ -112,7 +112,7 @@ main = T.putStrLn $ lineGraph [ ("Product A", [(1, 100), (2, 120), (3, 115), (4,
112112
```
113113

114114
### Heatmap
115-
![Heatmap](https://github.com/mchav/granite/blob/main/static/heatmap.png)
115+
![Heatmap](https://github.com/mchav/granite/blob/main/static/heatmap.png?raw=true)
116116

117117
```haskell
118118
{-# LANGUAGE OverloadedStrings #-}
@@ -132,7 +132,7 @@ main = do
132132
```
133133

134134
### Histogram
135-
![Histogram](https://github.com/mchav/granite/blob/main/static/histogram.png)
135+
![Histogram](https://github.com/mchav/granite/blob/main/static/histogram.png?raw=true)
136136

137137
```haskell
138138
{-# LANGUAGE OverloadedStrings #-}

0 commit comments

Comments
 (0)