-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathplot_w.gplot
More file actions
executable file
·164 lines (144 loc) · 3.91 KB
/
Copy pathplot_w.gplot
File metadata and controls
executable file
·164 lines (144 loc) · 3.91 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
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
159
160
161
162
163
164
#!/usr/bin/env gnuplot
#
# plot_w.gplot
# NonintegerCollatz: Collatz for non-integers
#
# Copyright (c) 2025-2026 Bryan Franklin. All rights reserved.
#
set terminal png size 1600,1000
set encoding utf8
#set title ""
orange = '#F5B63F'
blue = '#008ebc'
purple = '#B300BD'
set grid x
set grid y
set mytics 5
set mxtics 5
set term wxt
set logscale x
set xrange [0:1.1e7]
set yrange [-20000:20000]
#plot 'divfree_data_ints.txt' using 1:($4/$5) with points, \
# 'divfree_data.txt' using 1:($4/$5) with dots;
#pause -1
set term png
set terminal png size 600,400
set xlabel 'w'
set ylabel 'x_0'
set key right bottom box
set xrange [*:1e52]
set output 'divfree_x_vs_w_only.png'
plot 'divfree_w_sampled.txt' using 1:($4/$5) with dots title 'Sampled W';
set terminal png size 600,400
set key right bottom box
set logscale x
set logscale y
set mytics 10
set xrange [1:1e11]
set yrange [1:1e17]
set output 'sampled_w_vs_x.png'
set xlabel 'x_0'
set ylabel 'w'
plot 'divfree_w_sampled.txt' using ($4/$5):1 \
linecolor rgb '#F5B63F' \
with dots title 'Sampled w', \
'divfree_x_sampled.txt' using ($4/$5):1 \
linecolor rgb '#008ebc' \
with dots title 'Integer x_0';
set term pdf size 5in,3in
set output "sampled_w_vs_x.pdf"
replot
set terminal png size 600,400
set key left top box
unset logscale x
unset logscale y
set xrange [1:5e17]
set yrange [1:*]
#set output 'sampled_steps_vs_x.png'
set xlabel 'x_0'
set ylabel '"steps to 1" (m+d)'
#plot 'divfree_w_sampled.txt' using ($4/$5):($2+$3) \
linecolor rgb '#F5B63F' \
with dots title 'Sampled w', \
'divfree_x_sampled.txt' using ($4/$5):($2+$3) \
linecolor rgb '#008ebc' \
with dots title 'Sampled x';
#set term pdf size 5in,3in
#set output "sampled_steps_vs_x.pdf"
#replot
set terminal png size 600,400
set key right bottom box
set logscale x
set logscale y
set mytics 10
set xrange [1:100000]
set yrange [1:100000]
set output 'enumerated_w_vs_x.png'
set xlabel 'x_0'
set ylabel 'w'
plot 'divfree_w_enumerated.txt' using ($4/$5):1 \
linecolor rgb '#F5B63F' \
with dots title 'Enumerated w', \
'divfree_x_enumerated.txt' using ($4/$5):1 \
linecolor rgb '#008ebc' \
with points title 'Integer x_0';
set term pdf size 5in,3in
set output "enumerated_w_vs_x.pdf"
replot
set terminal png size 600,400
set key right bottom box
unset logscale x
set logscale y
set mytics 10
set xrange [1:5000]
set yrange [1:300]
set output 'enumerated_steps_vs_x.png'
set xlabel 'x_0'
set ylabel '"steps to 1" (m+d)'
plot 'divfree_w_enumerated.txt' using ($4/$5):($2+$3) \
linecolor rgb '#F5B63F' \
with dots title 'Enumerated w', \
'divfree_x_enumerated.txt' using ($4/$5):($2+$3) \
linecolor rgb '#008ebc' \
with points title 'Integer x_0';
set term pdf size 5in,3in
set output "enumerated_steps_vs_x.pdf"
replot
set terminal png size 600,400
set key right bottom box
unset logscale x
unset logscale y
set mytics 5
set xrange [1:25]
set yrange [0:25]
set output 'enumerated_steps_vs_x_2.png'
set xlabel 'x_0'
set ylabel '"steps to 1" (m+d)'
plot 'divfree_w_enumerated.txt' using ($4/$5):($2+$3) \
linecolor rgb '#F5B63F' \
with dots title 'Enumerated w', \
'divfree_x_enumerated.txt' using ($4/$5):($2+$3) \
linecolor rgb '#008ebc' \
with points title 'Integer x_0';
set term pdf size 5in,3in
set output "enumerated_steps_vs_x_2.pdf"
replot
set terminal png size 600,400
set key right bottom box
set logscale x
unset logscale y
set xrange [1:1e5]
set yrange [1:*]
#set output 'enumerated_steps_vs_w.png'
set xlabel 'w'
set ylabel '"steps to 1" (m+d)'
#plot 'divfree_w_enumerated.txt' using 1:($2+$3) \
linecolor rgb '#F5B63F' \
with dots title 'Enumerated w', \
'divfree_x_enumerated.txt' using 1:($2+$3) \
linecolor rgb '#008ebc' \
with points title 'Integer x_0';
#set term pdf size 5in,3in
#set output "enumerated_steps_vs_w.pdf"
#replot