X Tutup
Skip to content

Rendering really large image #8558

@sandeep-gh

Description

@sandeep-gh

Bug report

Running python/matplotlib/basemap on 3TB memory machine to create a large 400x240 inch image with 80 dpi.
This ends in segmentation fault. If memory and time permits, shouldn't matplotlib be able to handle it?

Bug summary
Segfault on rendering large image

Code for reproduction

import matplotlib
matplotlib.use('Agg') # Must be before importing matplotlib.pyplot or pylab!
from mpl_toolkits.basemap import Basemap
import matplotlib.pyplot as plt


plt.figure(figsize=(400,240))
map = Basemap(llcrnrlon=-119,llcrnrlat=22,urcrnrlon=-64,urcrnrlat=49,
              projection='lcc',lat_1=33,lat_2=45,lon_0=-95, resolution='l') #l for low resolution
map.drawcoastlines()
map.drawcountries()
plt.savefig("us_map.png",dpi=80)

Actual outcome

# If applicable, paste the console output here
#
#
  warnings.warn("tight_layout : falling back to Agg renderer")
[1]    9040 segmentation fault  ipython

Expected outcome

Matplotlib version

  • Operating System: linux
  • Matplotlib Version: 1.5.3
  • Python Version: 2.7
  • Jupyter Version (if applicable):
  • Other Libraries: Basemap

Installed using easybuild, i.e., compiled from source

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      X Tutup