-
Notifications
You must be signed in to change notification settings - Fork 0
/
Grapher.py
89 lines (75 loc) · 23.6 KB
/
Grapher.py
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
import matplotlib.pyplot as plt
import numpy as np
import math
from itertools import cycle
def continued_fraction_sqrt(n, max_length=20):
"""Compute the continued fraction representation of the square root of an integer."""
m, d, a0 = 0, 1, int(math.sqrt(n))
a = a0
cf = [a]
if a * a == n:
return cf # Terminate if n is a perfect square
for _ in range(1, max_length):
m = d * a - m
d = (n - m * m) / d
a = int((a0 + m) / d)
cf.append(a)
return cf
def plot_incremental_steps(sequences, custom_sequences=None, node_size=5, target_x=None, coordinates=None):
plt.figure(figsize=(12, 8))
color_cycle = cycle(plt.rcParams['axes.prop_cycle'].by_key()['color'])
# Determine plot range if coordinates are provided
if coordinates:
x_min, x_max, y_min, y_max = coordinates
elif target_x:
x_min, x_max = 0, target_x
y_min, y_max = None, None # Auto-scale y-axis based on data
else:
x_min, x_max, y_min, y_max = None, None, None, None
for seq in sequences:
color = next(color_cycle)
x, y = [0], [0] # Starting points
step_count = 0
for index, value in enumerate(seq):
direction = 1 if index % 2 == 0 else -1
for _ in range(value):
if target_x and step_count >= target_x:
break # Stop if reached target_x
x.append(x[-1] + 1)
y.append(y[-1] + direction)
step_count += 1
plt.plot(x, y, marker='o', linestyle='-', color=color, markersize=node_size)
if custom_sequences:
for custom_seq in custom_sequences: # Iterate over multiple custom sequences
color = next(color_cycle)
x, y = [0], [0]
step_count = 0
for index, value in enumerate(custom_seq):
direction = 1 if index % 2 == 0 else -1
for _ in range(value):
if target_x and step_count >= target_x:
break
x.append(x[-1] + 1)
y.append(y[-1] + direction)
step_count += 1
plt.plot(x, y, marker='o', linestyle='--', color=color, markersize=node_size)
if any(v is not None for v in [x_min, x_max, y_min, y_max]):
plt.xlim(x_min, x_max)
plt.ylim(y_min, y_max)
plt.title('Incremental Steps for Each Number in Sequences')
plt.xlabel('Step')
plt.ylabel('Position')
plt.grid(True)
plt.show()
# Example usage
input_numbers = list(range(1, 1)) # Example range
sequences = [continued_fraction_sqrt(n) for n in input_numbers]
# Including multiple custom sequences
custom_sequences = [
[54, 1, 1, 2, 21, 4, 1, 1, 57, 2, 1, 9, 1, 1, 13, 6, 2, 20, 2, 4, 1, 17, 1, 3, 2, 7, 2, 1, 1, 1, 1, 3, 2, 1, 11, 4, 2, 1, 3, 2, 1, 7, 1, 7, 1, 12, 2, 8, 7, 6, 1, 2, 1, 7, 2, 37, 2, 3, 66, 1, 1, 1, 2, 1, 2, 1, 1, 2, 1, 1, 1, 1, 2, 3, 1, 1, 2, 10, 18, 2, 19, 4, 2, 1, 9, 1, 9, 2, 1, 1, 1, 1, 4, 5, 1, 125, 1, 4, 1, 12, 10, 1, 1, 1, 15, 15, 11, 1, 40, 1, 1, 1, 4, 11, 1, 26, 1, 14, 12, 1, 1, 2, 1, 2, 1, 1, 72, 1, 1, 19, 1, 758, 1, 11, 8, 3, 18, 53, 1, 10, 1, 3, 2, 1, 3, 1, 3, 1, 6, 5, 1, 1, 9, 2, 1, 3, 2, 1, 3, 1, 164, 1, 3, 2, 6, 2, 1, 1, 4, 1, 63, 1, 54, 1, 1, 3, 1, 112, 1, 1, 1, 1, 8, 76, 1, 4, 5, 1, 3, 37, 1, 8, 1, 1, 22, 1, 3, 1, 1, 1, 40, 1, 28, 2, 2, 25, 11, 2, 33, 1, 1, 1, 1, 57, 8, 15, 1, 4, 4, 4, 3, 1, 4, 1, 1, 18, 2, 3, 2, 3, 1, 1, 1, 1, 5, 1, 1, 394, 31, 1, 13, 7, 10, 3, 3, 5, 3, 22, 1, 1, 1, 3, 14, 1, 6, 6, 1, 4, 1, 1, 1, 3, 1, 5, 5, 1, 29, 1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144, 1, 1, 146, 1, 1, 148, 1, 1, 150, 1, 1, 152, 1, 1, 154, 1, 1, 156, 1, 1, 158, 1, 1, 160, 1, 1, 162, 1, 1, 164, 1, 1, 166, 1, 1, 168, 1, 1, 170, 1, 1, 172, 1, 1, 174, 1, 1, 176, 1, 1, 178, 1, 1, 180, 1, 1, 182, 1, 1, 184, 1, 1, 186, 1, 1, 188, 1, 1, 190, 1, 1, 192, 1, 1, 194, 1, 1, 196, 1, 1, 198, 1, 1, 200, 1, 1, 202, 1, 1, 204, 1, 1, 206, 1, 1, 208, 1, 1, 210, 1, 1, 212, 1, 1, 214, 1, 1, 216, 1, 1, 218, 1, 1, 220, 1, 1, 222, 1, 1, 224, 1, 1, 226, 1, 1, 228, 1, 1, 230, 1, 1, 232, 1, 1, 234, 1, 1, 236, 1, 1, 238, 1, 1, 240, 1, 1, 242, 1, 1, 244, 1, 1, 246, 1, 1, 248, 1, 1, 250, 1, 1, 252, 1, 1, 254, 1, 1, 256, 1, 1, 258, 1, 1, 260, 1, 1, 262, 1, 1, 264, 1, 1, 266, 1, 1, 268, 1, 1, 270, 1, 1, 272, 1, 1, 274, 1, 1, 276, 1, 1, 278, 1, 1, 280, 1, 1, 282, 1, 1, 284, 1, 1, 286, 1, 1, 288, 1, 1, 290, 1, 1, 292, 1, 1, 294, 1, 1, 296, 1, 1, 298, 1, 1, 300, 1, 1, 302, 1, 1, 304, 1, 1, 306, 1, 1, 308, 1, 1, 310, 1, 1, 312, 1, 1, 314, 1, 1, 316, 1, 1, 318, 1, 1, 320, 1, 1, 322, 1, 1, 324, 1, 1, 326, 1, 1, 328, 1, 1, 330, 1, 1, 332, 1, 1, 334, 1, 1, 336, 1, 1, 338, 1, 1, 340, 1, 1, 342, 1, 1, 344, 1, 1, 346, 1, 1, 348, 1, 1, 350, 1, 1, 352, 1, 1, 354, 1, 1, 356, 1, 1, 358, 1, 1, 360, 1, 1, 362, 1, 1, 364, 1, 1, 366, 1, 1, 368, 1, 1, 370, 1, 1, 372, 1, 1, 374, 1, 1, 376, 1, 1, 378, 1, 1, 380, 1, 1, 382, 1, 1, 384, 1, 1, 386, 1, 1, 388, 1, 1, 390, 1, 1, 392, 1, 1, 394, 1, 1, 396, 1, 1, 398, 1, 1, 400, 1, 1, 402, 1, 1, 404, 1, 1, 406, 1, 1, 408, 1, 1, 410, 1, 1, 412, 1, 1, 414, 1, 1, 416, 1, 1, 418, 1, 1, 420, 1, 1, 422, 1, 1, 424, 1, 1, 426, 1, 1, 428, 1, 1, 430, 1, 1, 432, 1, 1, 434, 1, 1, 436, 1, 1, 438, 1, 1, 440, 1, 1, 442, 1, 1, 444, 1, 1, 446, 1, 1, 448, 1, 1, 450, 1, 1, 452, 1, 1, 454, 1, 1, 456, 1, 1, 458, 1, 1, 460, 1, 1, 462, 1, 1, 464, 1, 1, 466, 1, 1, 468, 1, 1, 470, 1, 1, 472, 1, 1, 474, 1, 1, 476, 1, 1, 478, 1, 1, 480, 1, 1, 482, 1, 1, 484, 1, 1, 486, 1, 1, 488, 1, 1, 490, 1, 1, 492, 1, 1, 494, 1, 1, 496, 1, 1, 498, 1, 1, 500, 1, 1, 502, 1, 1, 504, 1, 1, 506, 1, 1, 508, 1, 1, 510, 1, 1, 512, 1, 1, 514, 1, 1, 516, 1, 1, 518, 1, 1, 520, 1, 1, 522, 1, 1, 524, 1, 1, 526, 1, 1, 528, 1, 1, 530, 1, 1, 532, 1, 1, 534, 1, 1, 536, 1, 1, 538, 1, 1, 540, 1, 1, 542, 1, 1, 544, 1, 1, 546, 1, 1, 548, 1, 1, 550, 1, 1, 552, 1, 1, 554, 1, 1, 556, 1, 1, 558, 1, 1, 560, 1, 1, 562, 1, 1, 564, 1, 1, 566, 1, 1, 568, 1, 1, 570, 1, 1, 572, 1, 1, 574, 1, 1, 576, 1, 1, 578, 1, 1, 580, 1, 1, 582, 1, 1, 584, 1, 1, 586, 1, 1, 588, 1, 1, 590, 1, 1, 592, 1, 1, 594, 1, 1, 596, 1, 1, 598, 1, 1, 600, 1, 1, 602, 1, 1, 604, 1, 1, 606, 1, 1, 608, 1, 1, 610, 1, 1, 612, 1, 1, 614, 1, 1, 616, 1, 1, 618, 1, 1, 620, 1, 1, 622, 1, 1, 624, 1, 1, 626, 1, 1, 628, 1, 1, 630, 1, 1, 632, 1, 1, 634, 1, 1, 636, 1, 1, 638, 1, 1, 640, 1, 1, 642, 1, 1, 644, 1, 1, 646, 1, 1, 648, 1, 1, 650, 1, 1, 652, 1, 1, 654, 1, 1, 656, 1, 1, 658, 1, 1, 660, 1, 1, 662, 1, 1, 664, 1, 1, 666, 1, 1, 668, 1, 1, 670, 1, 1, 672, 1, 1, 674, 1, 1, 676, 1, 1, 678, 1, 1, 680, 1, 1, 682, 1, 1, 684, 1, 1, 686, 1, 1, 688, 1, 1, 690, 1, 1, 692, 1, 1, 694, 1, 1, 696, 1, 1, 698, 1, 1, 700, 1, 1, 702, 1, 1, 704, 1, 1, 706, 1, 1, 708, 1, 1, 710, 1, 1, 712, 1, 1, 714, 1, 1, 716, 1, 1, 718, 1, 1, 720, 1, 1, 722, 1, 1, 724, 1, 1, 726, 1, 1, 728, 1, 1, 730, 1, 1, 732, 1, 1, 734, 1, 1, 736, 1, 1, 738, 1, 1, 740, 1, 1, 742, 1, 1, 744, 1, 1, 746, 1, 1, 748, 1, 1, 750, 1, 1, 752, 1, 1, 754, 1, 1, 756, 1, 1, 758, 1, 1, 760, 1, 1, 762, 1, 1, 764, 1, 1, 766, 1, 1, 768, 1, 1, 770, 1, 1, 772, 1, 1, 774, 1, 1, 776, 1, 1, 778, 1, 1, 780, 1, 1, 782, 1, 1, 784, 1, 1, 786, 1, 1, 788, 1, 1, 790, 1, 1, 792, 1, 1, 794, 1, 1, 796, 1, 1, 798, 1, 1, 800, 1, 1, 802, 1, 1, 804, 1, 1, 806, 1, 1, 808, 1, 1, 810, 1, 1, 812, 1, 1, 814, 1, 1, 816, 1, 1, 818, 1, 1, 820, 1, 1, 822, 1, 1, 824, 1, 1, 826, 1, 1, 828, 1, 1, 830, 1, 1, 832, 1, 1, 834, 1, 1, 836, 1, 1, 838, 1, 1, 840, 1, 1, 842, 1, 1, 844, 1, 1, 846, 1, 1, 848, 1, 1, 850, 1, 1, 852, 1, 1, 854, 1, 1, 856, 1, 1, 858, 1, 1, 860, 1, 1, 862, 1, 1, 864, 1, 1, 866, 1, 1, 868, 1, 1, 870, 1, 1, 872, 1, 1, 874, 1, 1, 876, 1, 1, 878, 1, 1, 880, 1, 1, 882, 1, 1, 884, 1, 1, 886, 1, 1, 888, 1, 1, 890, 1, 1, 892, 1, 1, 894, 1, 1, 896, 1, 1, 898, 1, 1, 900, 1, 1, 902, 1, 1, 904, 1, 1, 906, 1, 1, 908, 1, 1, 910, 1, 1, 912, 1, 1, 914, 1, 1, 916, 1, 1, 918, 1, 1, 920, 1, 1, 922, 1, 1, 924, 1, 1, 926, 1, 1, 928, 1, 1, 930, 1, 1, 932, 1, 1, 934, 1, 1, 936, 1, 1, 938, 1, 1, 940, 1, 1, 942, 1, 1, 944, 1, 1, 946, 1, 1, 948, 1, 1, 950, 1, 1, 952, 1, 1, 954, 1, 1, 956, 1, 1, 958, 1, 1, 960, 1, 1, 962, 1, 1, 964, 1, 1, 966, 1, 1, 968, 1, 1, 970, 1, 1, 9],
[7, 2, 1, 1, 3, 18, 5, 1, 1, 6, 30, 8, 1, 1, 9, 42, 11, 1, 1, 12, 54, 14, 1, 1, 15, 66, 17, 1, 1, 18, 78, 20, 1, 1, 21, 90, 23, 1, 1, 24, 102, 26, 1, 1, 27, 114, 29, 1, 1, 30, 126, 32, 1, 1, 33, 138, 35, 1, 1, 36, 150, 38, 1, 1, 39, 162, 41, 1, 1, 42, 174, 44, 1, 1, 45, 186, 47, 1, 1, 48, 198, 50, 1, 1, 51, 210, 53, 1, 1, 54, 222, 56, 1, 1, 57, 234, 59, 1, 1, 60, 246, 62, 1, 1, 63, 258, 65, 1, 1, 66, 270, 68, 1, 1, 69, 282, 71, 1, 1, 72, 294, 74, 1, 1, 75, 306, 77, 1, 1, 78, 318, 80, 1, 1, 81, 330, 83, 1, 1, 84, 342, 86, 1, 1, 87, 354, 89, 1, 1, 90, 366, 92, 1, 1, 93, 378, 95, 1, 1, 96, 390, 98, 1, 1, 99, 402, 101, 1, 1, 102, 414, 104, 1, 1, 105, 426, 107, 1, 1, 108, 438, 110, 1, 1, 111, 450, 113, 1, 1, 114, 462, 116, 1, 1, 117, 474, 119, 1, 1, 120, 486, 122, 1, 1, 123, 498, 125, 1, 1, 126, 510, 128, 1, 1, 129, 522, 131, 1, 1, 132, 534, 134, 1, 1, 135, 546, 137, 1, 1, 138, 558, 140, 1, 1, 141, 570, 143, 1, 1, 144, 582, 146, 1, 1, 147, 594, 149, 1, 1, 150, 606, 152, 1, 1, 153, 618, 155, 1, 1, 156, 630, 158, 1, 1, 159, 642, 161, 1, 1, 162, 654, 164, 1, 1, 165, 666, 167, 1, 1, 168, 678, 170, 1, 1, 171, 690, 173, 1, 1, 174, 702, 176, 1, 1, 177, 714, 179, 1, 1, 180, 726, 182, 1, 1, 183, 738, 185, 1, 1, 186, 750, 188, 1, 1, 189, 762, 191, 1, 1, 192, 774, 194, 1, 1, 195, 786, 197, 1, 1, 198, 798, 200, 1, 1, 201, 810, 203, 1, 1, 204, 822, 206, 1, 1, 207, 834, 209, 1, 1, 210, 846, 212, 1, 1, 213, 858, 215, 1, 1, 216, 870, 218, 1, 1, 219, 882, 221, 1, 1, 222, 894, 224, 1, 1, 225, 906, 227, 1, 1, 228, 918, 230, 1, 1, 231, 930, 233, 1, 1, 234, 942, 236, 1, 1, 237, 954, 239, 1, 1, 240, 966, 242, 1, 1, 243, 978, 245, 1, 1, 246, 990, 248, 1, 1, 249, 1002, 251, 1, 1, 252, 1014, 254, 1, 1, 255, 1026, 257, 1, 1, 258, 1038, 260, 1, 1, 261, 1050, 263, 1, 1, 264, 1062, 266, 1, 1, 267, 1074, 269, 1, 1, 270, 1086, 272, 1, 1, 273, 1098, 275, 1, 1, 276, 1110, 278, 1, 1, 279, 1122, 281, 1, 1, 282, 1134, 284, 1, 1, 285, 1146, 287, 1, 1, 288, 1158, 290, 1, 1, 291, 1170, 293, 1, 1, 294, 1182, 296, 1, 1, 297, 1194, 299, 1, 1, 300, 1206, 302, 1, 1, 303, 1218, 305, 1, 1, 306, 1230, 308, 1, 1, 309, 1242, 311, 1, 1, 312, 1254, 314, 1, 1, 315, 1266, 317, 1, 1, 318, 1278, 320, 1, 1, 321, 1290, 323, 1, 1, 324, 1302, 326, 1, 1, 327, 1314, 329, 1, 1, 330, 1326, 332, 1, 1, 333, 1338, 335, 1, 1, 336, 1350, 338, 1, 1, 339, 1362, 341, 1, 1, 342, 1374, 344, 1, 1, 345, 1386, 347, 1, 1, 348, 1398, 350, 1, 1, 351, 1410, 353, 1, 1, 354, 1422, 356, 1, 1, 357, 1434, 359, 1, 1, 360, 1446, 362, 1, 1, 363, 1458, 365, 1, 1, 366, 1470, 368, 1, 1, 369, 1482, 371, 1, 1, 372, 1494, 374, 1, 1, 375, 1506, 377, 1, 1, 378, 1518, 380, 1, 1, 381, 1530, 383, 1, 1, 384, 1542, 386, 1, 1, 387, 1554, 389, 1, 1, 390, 1566, 392, 1, 1, 393, 1578, 395, 1, 1, 396, 1590, 398, 1, 1, 399, 1602, 401, 1, 1, 402, 1614, 404, 1, 1, 405, 1626, 407, 1, 1, 408, 1638, 410, 1, 1, 411, 1650, 413, 1, 1, 414, 1662, 416, 1, 1, 417, 1674, 419, 1, 1, 420, 1686, 422, 1, 1, 423, 1698, 425, 1, 1, 426, 1710, 428, 1, 1, 429, 1722, 431, 1, 1, 432, 1734, 434, 1, 1, 435, 1746, 437, 1, 1, 438, 1758, 440, 1, 1, 441, 1770, 443, 1, 1, 444, 1782, 446, 1, 1, 447, 1794, 449, 1, 1, 450, 1806, 452, 1, 1, 453, 1818, 455, 1, 1, 456, 1830, 458, 1, 1, 459, 1842, 461, 1, 1, 462, 1854, 464, 1, 1, 465, 1866, 467, 1, 1, 468, 1878, 470, 1, 1, 471, 1890, 473, 1, 1, 474, 1902, 476, 1, 1, 477, 1914, 479, 1, 1, 480, 1926, 482, 1, 1, 483, 1938, 485, 1, 1, 486, 1950, 488, 1, 1, 489, 1962, 491, 1, 1, 492, 1974, 494, 1, 1, 495, 1986, 497, 1, 1, 498, 1998, 500, 1, 1, 501, 2010, 503, 1, 1, 504, 2022, 506, 1, 1, 507, 2034, 509, 1, 1, 510, 2046, 512, 1, 1, 513, 2058, 515, 1, 1, 516, 2070, 518, 1, 1, 519, 2082, 521, 1, 1, 522, 2094, 524, 1, 1, 525, 2106, 527, 1, 1, 528, 2118, 530, 1, 1, 531, 2130, 533, 1, 1, 534, 2142, 536, 1, 1, 537, 2154, 539, 1, 1, 540, 2166, 542, 1, 1, 543, 2178, 545, 1, 1, 546, 2190, 548, 1, 1, 549, 2202, 551, 1, 1, 552, 2214, 554, 1, 1, 555, 2226, 557, 1, 1, 558, 2238, 560, 1, 1, 561, 2250, 563, 1, 1, 564, 2262, 566, 1, 1, 567, 2274, 569, 1, 1, 570, 2286, 572, 1, 1, 573, 2298, 575, 1, 1, 576, 2310, 578, 1, 1, 579, 2322, 581, 1, 1, 582, 2334, 584, 1, 1, 585, 2346, 587, 1, 1, 588, 2358, 590, 1, 1, 591, 2370, 593, 1, 1, 594, 2382, 596, 1, 1, 597, 2394, 599, 1, 1, 600, 2406, 602, 1, 1, 603, 2418, 605, 1, 1, 606, 2430, 608, 1, 1, 609, 2442, 611, 1, 1, 612, 2454, 614, 1, 1, 615, 2466, 617, 1, 1, 618, 2478, 620, 1, 1, 621, 2490, 623, 1, 1, 624, 2502, 626, 1, 1, 627, 2514, 629, 1, 1, 630, 2526, 632, 1, 1, 633, 2538, 635, 1, 1, 636, 2550, 638, 1, 1, 639, 2562, 641, 1, 1, 642, 2574, 644, 1, 1, 645, 2586, 647, 1, 1, 648, 2598, 650, 1, 1, 651, 2610, 653, 1, 1, 654, 2622, 656, 1, 1, 657, 2634, 659, 1, 1, 660, 2646, 662, 1, 1, 663, 2658, 665, 1, 1, 666, 2670, 668, 1, 1, 669, 2682, 671, 1, 1, 672, 2694, 674, 1, 1, 675, 2706, 677, 1, 1, 678, 2718, 680, 1, 1, 681, 2730], # Another example custom sequence
[20, 11, 1, 2, 4, 3, 1, 5, 1, 2, 16, 1, 1, 16, 2, 13, 14, 4, 6, 2, 1, 1, 2, 2, 2, 3, 5, 1, 3, 1, 1, 68, 7, 5, 1, 4, 2, 1, 1, 1, 1, 1, 1, 7, 3, 1, 6, 1, 2, 5, 4, 7, 2, 1, 3, 2, 2, 1, 2, 1, 4, 1, 1, 13, 1, 1, 2, 1, 1, 1, 1, 3, 7, 11, 18, 54, 1, 2, 2, 2, 1, 1, 6, 2, 2, 46, 2, 189, 1, 24, 1, 8, 13, 4, 1, 1, 1, 3, 1, 1, 1, 1, 1, 2, 7, 5, 4, 3, 8, 1, 1, 1, 2, 8, 1, 1, 1, 1, 3, 1, 3, 2, 1, 2, 6, 3, 15, 4, 1, 1, 77, 1, 2, 492, 1, 1, 48, 4, 6, 2, 7, 1, 9, 2, 1, 3, 6, 1, 15, 1, 4, 7, 1, 1, 1, 4, 1, 3, 1, 34, 3, 5, 16, 4, 1, 6, 4, 1, 1, 9, 2, 67, 3, 3, 3, 110, 1, 1, 1, 2, 1, 1, 4, 27, 6, 2, 11, 1, 3, 4, 1, 8, 4, 1, 1, 13, 9, 1, 2, 1, 2, 1, 19, 2, 4, 3, 24, 1, 5, 3, 1, 739, 1, 62, 1, 1, 2, 1, 5, 1, 2, 5, 1, 1, 6, 1, 1, 23, 1, 3, 1, 2, 3, 35, 1, 2, 2, 1, 3, 2, 3, 4, 1, 9, 2566, 12, 8, 3, 9, 1, 2, 2, 1, 1, 1, 13, 5, 1, 1, 1, 3, 1, 1, 1, 423, 1, 3, 1, 1, 2, 4, 1, 1, 1, 1, 11, 9, 1, 1, 71, 1, 1, 2, 1, 1, 3, 2, 1, 1, 3, 694, 1, 1, 3, 1, 1, 21, 3, 3, 1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 12, 1, 10, 6, 1, 15, 1, 12, 1, 4, 4, 1, 1, 1, 2, 1, 1, 1, 114, 3, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 4, 1, 1, 3, 1, 7, 1, 3, 1, 1, 11, 23, 1, 1, 4, 1, 1, 5, 17, 6, 2, 1, 3, 1, 1, 1, 44, 2, 1, 11, 2, 6, 5, 1, 8, 1, 2, 14, 1, 11, 4, 4, 1, 1, 1, 1, 1, 37, 91, 1, 2, 3, 1, 1, 42, 14, 2, 4, 1, 7, 2, 1] # And another
]
# Example of customizing plot features
plot_incremental_steps(sequences, custom_sequences, node_size=0.2, target_x=10000)