Skip to content

Commit

Permalink
specify match_original as kwarg
Browse files Browse the repository at this point in the history
  • Loading branch information
Kip Hart committed Oct 5, 2023
1 parent d6f530e commit 7193b79
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/microstructpy/seeding/seedlist.py
Original file line number Diff line number Diff line change
Expand Up @@ -575,7 +575,7 @@ def plot(self, index_by='seed', material=[], loc=0, **kwargs):
rects = [Rectangle(xy=xyi, width=wi, height=hi, angle=ai) for
xyi, wi, hi, ai in zip(rect_data['xy'], rect_data['w'],
rect_data['h'], rect_data['angle'])]
rc = collections.PatchCollection(rects, False, **rect_kwargs)
rc = collections.PatchCollection(rects, match_original=False, **rect_kwargs)
ax.add_collection(rc)

# Plot Polygons
Expand Down Expand Up @@ -1161,7 +1161,7 @@ def _plot_2d(ax, seeds, seed_args):

# Plot Rectangles
rects = [Rectangle(**rect_inps) for rect_inps in rect_data]
rc = collections.PatchCollection(rects, False, **rect_kwargs)
rc = collections.PatchCollection(rects, match_original=False, **rect_kwargs)
ax.add_collection(rc)

ax.autoscale_view()
Expand Down

0 comments on commit 7193b79

Please sign in to comment.