forked from dentearl/quick_plot
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
158 lines (125 loc) · 6 KB
/
Makefile
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
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
SHELL:=/bin/bash -e
export SHELLOPTS=pipefail
image_files = $(foreach i, 01 02 03 04 05 06 07 08 09 10 11 11_a 11_b 11_c 12 12_a 13 13_a 14 15 16 17 18 19 20 20_a 21 22, img/example_$(i).png)
.PHONY = clean images
all: bin/quick_plot
bin/%: src/%.py
mkdir -p $(dir $@)
cp $< [email protected]
chmod 755 [email protected]
mv [email protected] $@
images: all $(image_files)
img/example_01.png: example/data_2d_1.txt
mkdir -p $(dir $@)
bin/quick_plot $^ --mode scatter --markersize 7.0 --out_format png --out [email protected] --title '2D scatter data from example/data_2d_1.txt' --xlabel 'The x-axis' --ylabel 'The y-axis' --no_legend
mv [email protected] $@
img/example_02.png: example/data_2d_1.txt example/data_2d_2.txt
mkdir -p $(dir $@)
bin/quick_plot $^ --mode scatter --markersize 7.0 --out_format png --out [email protected]
mv [email protected] $@
img/example_03.png: example/data_2d_3.txt example/data_2d_4.txt
mkdir -p $(dir $@)
bin/quick_plot $^ --mode line --out_format png --out [email protected]
mv [email protected] $@
img/example_04.png: example/data_2d_5.txt example/data_2d_6.txt example/data_2d_7.txt
mkdir -p $(dir $@)
bin/quick_plot $^ --mode line --out_format png --out [email protected]
mv [email protected] $@
img/example_05.png: example/data_1d_1.txt example/data_1d_2.txt
mkdir -p $(dir $@)
bin/quick_plot $^ --mode bar --out_format png --out [email protected]
mv [email protected] $@
img/example_06.png: example/data_1d_1.txt example/data_1d_2.txt
mkdir -p $(dir $@)
bin/quick_plot $^ --mode tick --out_format png --out [email protected]
mv [email protected] $@
img/example_07.png: example/data_1d_1.txt example/data_1d_2.txt
mkdir -p $(dir $@)
bin/quick_plot $^ --mode point --out_format png --out [email protected]
mv [email protected] $@
img/example_08.png: example/data_1d_1.txt example/data_1d_2.txt
mkdir -p $(dir $@)
bin/quick_plot $^ --mode point --jitter --out_format png --out [email protected] --random_seed=127
mv [email protected] $@
img/example_09.png: example/data_1d_3.txt example/data_1d_4.txt example/data_1d_5.txt
mkdir -p $(dir $@)
bin/quick_plot $^ --mode hist --out_format png --out [email protected]
mv [email protected] $@
img/example_10.png: example/data_2d_8.txt
mkdir -p $(dir $@)
bin/quick_plot $^ --mode scatter --markersize 5.0 --out_format png --out [email protected]
mv [email protected] $@
img/example_11.png: example/data_2d_8.txt
mkdir -p $(dir $@)
bin/quick_plot $^ --mode scatter --markersize 5.0 --out_format png --out [email protected] --alpha 0.1
mv [email protected] $@
img/example_11_a.png: example/data_2d_8.txt
mkdir -p $(dir $@)
bin/quick_plot $^ --mode scatter --markersize 5.0 --out_format png --out [email protected] --alpha 0.1 --aspect_equal
mv [email protected] $@
img/example_11_b.png: example/data_2d_8.txt
mkdir -p $(dir $@)
bin/quick_plot $^ --mode scatter --markersize 5.0 --out_format png --out [email protected] --aspect_equal --downsample 1000 --random_seed=127 --title 'Downsampled to 1000 points'
mv [email protected] $@
img/example_11_c.png: example/data_2d_8.txt
mkdir -p $(dir $@)
bin/quick_plot $^ --mode scatter --markersize 5.0 --out_format png --out [email protected] --aspect_equal --downsample 100 --random_seed=127 --title 'Downsampled to 100 points'
mv [email protected] $@
img/example_12.png: example/data_1d_7.txt
mkdir -p $(dir $@)
bin/quick_plot $^ --mode density --out_format png --out [email protected] --title 'data_2d_8.txt x marginal'
mv [email protected] $@
img/example_12_a.png: example/data_2d_8.txt
mkdir -p $(dir $@)
bin/quick_plot $^ --mode density --out_format png --out [email protected] --title 'data_2d_8.txt x marginal' --columns 1
mv [email protected] $@
img/example_13.png: example/data_1d_8.txt
mkdir -p $(dir $@)
bin/quick_plot $^ --mode density --out_format png --out [email protected] --title 'data_2d_8.txt y marginal'
mv [email protected] $@
img/example_13_a.png: example/data_2d_8.txt
mkdir -p $(dir $@)
bin/quick_plot $^ --mode density --out_format png --out [email protected] --title 'data_2d_8.txt y marginal' --columns 2
mv [email protected] $@
img/example_14.png: example/data_2d_8.txt
mkdir -p $(dir $@)
bin/quick_plot $^ --mode contour --out_format png --out [email protected] --title 'A hard example for a contour plot'
mv [email protected] $@
img/example_15.png: example/data_2d_9.txt
mkdir -p $(dir $@)
bin/quick_plot $^ --mode contour --out_format png --out [email protected] --title 'An easier example for a contour plot'
mv [email protected] $@
img/example_16.png: example/anscombe.txt
mkdir -p $(dir $@)
bin/quick_plot $^ --mode scatter --out_format png --out [email protected] --title 'Anscombe_i' --regression --markersize 5.0 --ymin 3 --ymax 13 --xmin 3 --xmax 20 --no_legend
mv [email protected] $@
img/example_17.png: example/anscombe.txt
mkdir -p $(dir $@)
bin/quick_plot $^ --mode scatter --out_format png --out [email protected] --title 'Anscombe_ii' --regression --markersize 5.0 --ymin 3 --ymax 13 --xmin 3 --xmax 20 --no_legend --columns 3,4
mv [email protected] $@
img/example_18.png: example/anscombe.txt
mkdir -p $(dir $@)
bin/quick_plot $^ --mode scatter --out_format png --out [email protected] --title 'Anscombe_iii' --regression --markersize 5.0 --ymin 3 --ymax 13 --xmin 3 --xmax 20 --no_legend --columns 5,6
mv [email protected] $@
img/example_19.png: example/anscombe.txt
mkdir -p $(dir $@)
bin/quick_plot $^ --mode scatter --out_format png --out [email protected] --title 'Anscombe_iv' --regression --markersize 5.0 --ymin 3 --ymax 13 --xmin 3 --xmax 20 --no_legend --columns 7,8
mv [email protected] $@
img/example_20.png: example/distance_matrix.txt
mkdir -p $(dir $@)
bin/quick_plot $^ --mode matrix --out_format png --out [email protected] --title 'Heatmap' --matrix_cmap Reds --width 6
mv [email protected] $@
img/example_20_a.png: example/distance_matrix.txt
mkdir -p $(dir $@)
bin/quick_plot $^ --mode matrix --out_format png --out [email protected] --title 'Heatmap, Censored' --matrix_cmap Reds --width 6 --matrix_colormap_max 0.20
mv [email protected] $@
img/example_21.png: example/distance_matrix_1.txt
mkdir -p $(dir $@)
bin/quick_plot $^ --mode matrix --out_format png --out [email protected] --title 'Heatmap 2' --width 6 --matrix_discritize_colormap 6
mv [email protected] $@
img/example_22.png: example/distance_matrix_2.txt
mkdir -p $(dir $@)
bin/quick_plot $^ --mode matrix --out_format png --out [email protected] --title 'Heatmap 3' --matrix_cmap Oranges --width 6 --matrix_discritize_colormap 10 --matrix_no_colorbar
mv [email protected] $@
clean:
rm -rf bin/ img/*