Skip to content

Commit

Permalink
Updated F2 images to be prettier
Browse files Browse the repository at this point in the history
  • Loading branch information
jslyemath committed Jul 30, 2024
1 parent 36a3b5a commit 11188d4
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions outcomes/F2/generate_graphics.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ def plot_circles(num, denom, filename='outcomes/F2/example_area_model.png'):

ax.set_aspect('equal')
ax.set_xlim(-1, 2.1 * n -1)
ax.set_ylim(-1, 1)
ax.set_ylim(-1.1, 1.1)
ax.axis('off')

# Save the plot to a file
Expand Down Expand Up @@ -127,7 +127,7 @@ def plot_trapezoids(num, denom, filename='outcomes/F2/example_area_model.png'):

ax.set_aspect('equal')
ax.set_xlim(-1, 2.1 * n - 1)
ax.set_ylim(0,1)
ax.set_ylim(-0.1,1.1)
ax.axis('off')

# Save the plot to a file
Expand Down Expand Up @@ -196,7 +196,7 @@ def plot_triangles(num, denom, filename='outcomes/F2/example_area_model.png'):

ax.set_aspect('equal')
ax.set_xlim(-0.5, 1.1 * n - 0.6)
ax.set_ylim(0, np.sqrt(3) / 2)
ax.set_ylim(-0.1, np.sqrt(3) / 2 + 0.1)
ax.axis('off')

# Save the plot to a file
Expand Down Expand Up @@ -312,7 +312,7 @@ def plot_rectangles(num, denom, filename='outcomes/F2/example_area_model.png'):

ax.set_aspect('equal')
ax.set_xlim(0, 2.6 * n -0.6)
ax.set_ylim(0, 1)
ax.set_ylim(-0.1, 1.1)
ax.axis('off')

# Save the plot to a file
Expand Down Expand Up @@ -355,7 +355,7 @@ def plot_semicircles(num, denom, filename='outcomes/F2/example_area_model.png'):

ax.set_aspect('equal')
ax.set_xlim(-1, 2.5 * n -1.5)
ax.set_ylim(0, 1)
ax.set_ylim(-0.1, 1.1)
ax.axis('off')

# Save the plot to a file
Expand Down Expand Up @@ -498,7 +498,7 @@ def create_graphics_set(data, dir_path='outcomes/F2/'):

print('Generating...')
# matplotlib has memory leaks that I can't figure out - do the ranges in batches
for i in range(900, 1000):
for i in range(0, 50):
data = seeds_dict['seeds'][i]['data']

seed_folder = os.path.join(generated_folder, data['__seed__'])
Expand Down

0 comments on commit 11188d4

Please sign in to comment.