Skip to content

Commit

Permalink
force contiguous image input for logo example
Browse files Browse the repository at this point in the history
  • Loading branch information
kip-hart committed Dec 25, 2020
1 parent 154ebc8 commit ddadd25
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/microstructpy/examples/logo.py
Original file line number Diff line number Diff line change
Expand Up @@ -133,9 +133,9 @@ def main(n_seeds, size_rng, pos_rng, k_lw):
doc_im = np.concatenate((logo_pad, pad_im, logo_pad), axis=1)

plt.imsave(logo_filename, logo_im, dpi=dpi)
plt.imsave(logo_filename.replace('.svg', '.png'), logo_im, dpi=dpi)
plt.imsave(logo_filename.replace('.svg', '.png'), np.ascontiguousarray(logo_im), dpi=dpi)
plt.imsave(pad_filename, pad_im, dpi=dpi)
plt.imsave(pad_filename.replace('.svg', '.png'), doc_im, dpi=dpi)
plt.imsave(pad_filename.replace('.svg', '.png'), np.ascontiguousarray(doc_im), dpi=dpi)

# Create the Favicon
fav_im = np.copy(logo_im)
Expand Down

0 comments on commit ddadd25

Please sign in to comment.