Skip to content

figimage does not work when the output format is pdf. #8791

Closed
@szsdk

Description

@szsdk

Bug report

figimage does not plot image expected when the output file is pdf.

Code for reproduction

import matplotlib.pylab as plt
import numpy as np

fig = plt.figure()
img = np.random.rand(50,50)
fig.figimage(img, 20, 20)
plt.savefig('test.png')
plt.savefig('test.pdf')

Matplotlib version

  • Operating System: Ubuntu 16.04
  • Matplotlib Version: 2.0.2
  • Python Version: 3.6.1

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions