Merge pull request #2313 from valeriogiusti/valeriogiusti-patch-2

Update universe.py
This commit is contained in:
Paul Romano 2022-12-06 06:52:27 -06:00 committed by GitHub
commit 772810a643
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -361,7 +361,7 @@ class Universe(UniverseBase):
img_path = Path(tmpdir) / f'plot_{plot.id}.png'
if not img_path.is_file():
img_path = img_path.with_suffix('.ppm')
img = mpimg.imread(img_path)
img = mpimg.imread(str(img_path))
# Create a figure sized such that the size of the axes within
# exactly matches the number of pixels specified