<jupyter_start><jupyter_text>Try 2<jupyter_code># make page
paper_size = '17x23.5 inches'
border:float=55
paper = Paper(paper_size)

drawbox = paper.get_drawbox(border)
center = drawbox.centroid
n_lines = 500
thetas = np.linspace(0, np.pi*10, n_lines)
radii = np.linspace(.75, 3.45, n_lines)
pts = []
for theta, radius in zip(thetas, radii):
    x = np.cos(theta) * radius - 3.3
    y = np.sin(theta) * radius + 0.5
    pts.append(Point(x, y))
def ode2(y, t, a, b, c, d):
    v, u = y
    dvdt = np.sin(u * v + (a * v) + (b * u))
    dudt = np.cos(u) + np.sin(u * v) + (c * v) + (d * u)
    dydt = [dvdt, dudt]
    return dydt
lfs = []


t_max = 2.7
t = np.linspace(0, t_max, 1801)
a = -0.2
b = -0.2
c = 0.04
d = -0.25



for pt in tqdm(pts):
    sol = odeint(ode2, [pt.x, pt.y], t, args=(a, b, c, d))
    lfs.append(LineString(sol))
    

lines = gp.make_like(MultiLineString(lfs), drawbox)
layers = []
layers.append(lines[:250])
layers.append(lines[250:])
sk = vsketch.Vsketch()
sk.size(paper.page_format_mm)
sk.scale('1mm')
sk.penWidth('0.3mm')

for i, layer in enumerate(layers):
    sk.stroke(i+1)
    sk.geometry(layer)

sk.penWidth('0.3')
sk.vpype('linesimplify')

sk.display(color_mode='layer')
sk.save('/mnt/c/code/side/plotter_images/oned_outputs/249_500_lines.svg')<jupyter_output><empty_output><jupyter_text>Try 3<jupyter_code># make page
paper_size = '17x23.5 inches'
border:float=35
paper = Paper(paper_size)

drawbox = paper.get_drawbox(border)
center = drawbox.centroid
n_lines = 3500
thetas = np.linspace(0, np.pi*14, n_lines)
radii = np.linspace(.5, 5.45, n_lines)
pts = []
for theta, radius in zip(thetas, radii):
    x = np.cos(theta) * radius - 3.3
    y = np.sin(theta) * radius + 0.5
    pts.append(Point(x, y))
def ode2(y, t, a, b, c, d):
    v, u = y
    dvdt = np.sin(u * v + (a * v) + (b * u))
    dudt = np.cos(u) + np.sin(u * v) + np.cos(c * v) + (d * u)
    dydt = [dvdt, dudt]
    return dydt
lfs = []


t_max = 2.7
t = np.linspace(0, t_max, 701)
a = -0.2
b = -0.25
c = 0.04
d = -0.25



for pt in tqdm(pts):
    sol = odeint(ode2, [pt.x, pt.y], t, args=(a, b, c, d))
    lfs.append(LineString(sol))
    

lines = gp.make_like(MultiLineString(lfs), drawbox)
lbs = lines.buffer(0.07, cap_style=2, join_style=2).boundary
lbs = gp.merge_LineStrings([l for l in lbs if l.length > 0.9])
n_layers = 1
layer_inds = np.split(np.arange(len(lbs)), n_layers)
layers = []
for ind_set in layer_inds:
    layer = [lbs[i] for i in ind_set]
    layers.append(gp.merge_LineStrings(layer))
    
sk = vsketch.Vsketch()
sk.size(paper.page_format_mm)
sk.scale('1mm')
sk.penWidth('0.3mm')

for i, layer in enumerate(layers):
    sk.stroke(i+1)
    sk.geometry(layer)

sk.penWidth('0.3')
sk.vpype('linesimplify')

sk.display(color_mode='layer')
sk.save('/mnt/c/code/side/plotter_images/oned_outputs/251_3500_lines.svg')<jupyter_output><empty_output><jupyter_text>Try 4<jupyter_code># make page
paper_size = '11x14 inches'
border:float=25
paper = Paper(paper_size)

drawbox = paper.get_drawbox(border)
center = drawbox.centroid
n_lines = 500
thetas = np.linspace(0, np.pi*14, n_lines)
radii = np.linspace(.5, 5.45, n_lines)
pts = []
for theta, radius in zip(thetas, radii):
    x = np.cos(theta) * radius - 3.3
    y = np.sin(theta) * radius + 0.5
    pts.append(Point(x, y))
def ode2(y, t, a, b, c, d):
    v, u = y
    dvdt = np.sin(u * v + (a * v) + (b * u))
    dudt = np.cos(u) + np.sin(u * v) + np.cos(c * v) + (d * u)
    dydt = [dvdt, dudt]
    return dydt
lfs = []


t_max = 2.7
t = np.linspace(0, t_max, 701)
a = -0.2
b = -0.25
c = 0.04
d = -0.25



for pt in tqdm(pts):
    sol = odeint(ode2, [pt.x, pt.y], t, args=(a, b, c, d))
    lfs.append(LineString(sol))
    

lines = gp.make_like(MultiLineString(lfs), drawbox)
lbs = lines.buffer(0.07, cap_style=2, join_style=2).boundary
lbs = gp.merge_LineStrings([l for l in lbs if l.length > 0.9])
n_layers = 1
layer_inds = np.split(np.arange(len(lbs)), n_layers)
layers = []
for ind_set in layer_inds:
    layer = [lbs[i] for i in ind_set]
    layers.append(gp.merge_LineStrings(layer))
    
sk = vsketch.Vsketch()
sk.size(paper.page_format_mm)
sk.scale('1mm')
sk.penWidth('0.3mm')

for i, layer in enumerate(layers):
    sk.stroke(i+1)
    sk.geometry(layer)

sk.penWidth('0.3')
sk.vpype('linesimplify')

sk.display(color_mode='layer')
plot_id = fn.new_plot_id()
savedir='/home/naka/art/plotter_svgs'
savepath = Path(savedir).joinpath(f'{plot_id}.svg').as_posix()
sk.save(savepath)<jupyter_output><empty_output>
{'fraction_non_alphanumeric': 0.17962466487935658, 'fraction_numerical': 0.039544235924932974, 'mean_word_length': 3.67816091954023, 'pattern_counts': {'":': 0, '<': 13, '<?xml version=': 0, '>': 15, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'chain_length': '3', 'dir': 'jupyter-structured-clean-dedup', 'id': '12302', 'license': 'MIT', 'n_tokens_mistral': 2131, 'n_tokens_neox': 2021, 'n_words': 423, 'path': 'scratch/028_500_lines.ipynb', 'repo_name': 'ANaka/genpen', 'size': '4476'}