How to reproduce Figure 1A of srep07370
by Daniel Kim
Daniel Kim et al. Sci. Rep. 4:7370 (2014).
This is one of my representative papers. It was posted on Nature.com, being selected as a Nature Research Highlight (also held the first rank of the most viewed research highlight on Nature.com from 14 December 2014 to 14 January 2015). Full list of media press.
Here I introduce the way to plot Figure 1A of the paper in detail.
1. Save color usages as file.
Suppose we’ve already got rank ordered usages for each color.
Let’s save rank ordered color usages as a tab separated file without header.
For example, if we have the following table,
Rank | Color Usage | Red | Green | Blue |
---|---|---|---|---|
1 | 0.003395 | 228 | 236 | 239 |
2 | 0.003363 | 227 | 235 | 238 |
3 | 0.002813 | 229 | 237 | 240 |
4 | 0.002767 | 224 | 233 | 238 |
5 | 0.002750 | 202 | 229 | 240 |
where Color Usage is normalized and 0 ≤ Red, Green, Blue ≤ 255.
A tab separated file will be
1 0.003395 228 236 239
2 0.003363 227 235 238
3 0.002813 229 237 240
4 0.002767 224 233 238
5 0.002750 202 229 240
2. Install Gnuplot.
You may download Gnuplot here.
Please install it.
3. Draw
You can draw your own tsv file with the following Gnuplot script.
Example
As an example, download schloss.tsv
at here.
Copy and paste the below code into a file. Its extension should be plt
.
Now, let’s double click the plt
file. Then the figure will be shown. It may take over 10 seconds.
Replace schloss.tsv
with your own file path, and check your figure.
Subscribe via RSS