-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathREADME.html
More file actions
40 lines (26 loc) · 1.09 KB
/
Copy pathREADME.html
File metadata and controls
40 lines (26 loc) · 1.09 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>README.html</title>
</head>
<body>
<h1>Data visualization</h1>
<p>Just a collection of python scripts for visualizing data.</p>
<h1>Barycentric legend</h1>
<p>Given a pixel density and number of rows the script creates a triangular RGB legend based off
barycentric coordinates, useful when mapping trivariate data where variables always add to 1,
like <a href="https://en.wikipedia.org/wiki/Soil_texture">soil texture</a>.</p>
<h2>Script:</h2>
<pre><code>barycentric_triangle_legend.py
</code></pre>
<h2>Requirements:</h2>
<pre><code>- numpy
- pycairo
</code></pre>
<p>10 Rows | 25 Rows | 50 rows
:-------------------------:|:-------------------------:|:-------------------------:
<img src="examples/triangle_200_10.png" alt="" title="" /> | <img src="examples/triangle_200_25.png" alt="" title="" /> | <img src="examples/triangle_200_50.png" alt="" title="" /></p>
</body>
</html>