Closed
Description
anaconda:
- python version: 3.7.4
- matplotlib version: 3.0.3
Trying to save a pixel-perfect image from an array of 32768x32768 I get a segmentation fault.
Step to reproduce:
# imm is a 32768x32768 numpy array of int32.
n_inch = int(2**6)
fig = figure(frameon=False, figsize=(n_inch, n_inch))
ax = fig.add_axes([0, 0, 1, 1])
ax.imshow(imm, origin='lower', cmap='bone_r', interpolation='none')
fig.savefig('./very_large.tiff', dpi=imm.shape[0]//n_inch) # This line gives segmentation fault
Metadata
Metadata
Assignees
Labels
No labels