X Tutup
Skip to content

Sample data not found #8194

@Atcold

Description

@Atcold

Bug report

python3.5/site-packages/matplotlib/mpl-data/sample_data/grace_hopper.png not found.

>>> image_file = cbook.get_sample_data('grace_hopper.png')
>>> image = plt.imread(image_file)

---------------------------------------------------------------------------
FileNotFoundError                         Traceback (most recent call last)
<ipython-input-1-dd6f8285e5f3> in <module>()
      4 
      5 
----> 6 image_file = cbook.get_sample_data('grace_hopper.png')
      7 image = plt.imread(image_file)
      8 

/home/atcold/anaconda3/lib/python3.5/site-packages/matplotlib/cbook.py in get_sample_data(fname, asfileobj)
    831             return gzip.open(path, mode)
    832         else:
--> 833             return open(path, mode)
    834     else:
    835         return path

FileNotFoundError: [Errno 2] No such file or directory: '/home/atcold/anaconda3/lib/python3.5/site-packages/matplotlib/mpl-data/sample_data/grace_hopper.png'

Matplotlib version
Latest Matplotlib installed with Conda on Python 3, Ubuntu 16.

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

      X Tutup