8000 Cannot save a very large (pixels) figure · Issue #19462 · matplotlib/matplotlib · GitHub
[go: up one dir, main page]

Skip to content
Cannot save a very large (pixels) figure #19462
Closed
@miguelpenc

Description

@miguelpenc

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

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0