X Tutup
Skip to content

imshow with pgf backend does not render transparency #6278

@owlas

Description

@owlas

Using python 3.5.1, matplotlib 1.5.1, OpenSuse 13.2

I am getting odd behaviour using imshow alpha with the pgf backend. The following code produces an image and a colorbar, the alpha matches with the agg backend.

import matplotlib
matplotlib.use('agg')
import matplotlib.pyplot as plt
fg, ax = plt.subplots()
cb = ax.imshow([[0, 1], [0.5, 0.5]], alpha=0.5)
fg.colorbar(cb)
plt.savefig('pic.png')

agg

Using the pgf backend, I lose the alpha on the image but not the colorbar.

pgf

I want to write my plot as a .pgf file but that requires pngs for the colour bar and the image, so I lose alpha for my nice latex pgf files.

Has anybody else had this problem?

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      X Tutup