Skip to content

Transparency of overlaid contour fill without effect on underlying isocontours #2767

@jfrieben

Description

@jfrieben

I have tried to overlay two contour plots by setting the transparency of the first lower one to something like 0.2 and that of the upper one to about 0.8 for both of fill and line colours. While the fill colours of the lower plot appear washed out as expected, the transparency value of the upper plot has no effect at all.
In the attached sample picture, the colour of a number of isocontours in the lower plot has been set to white and the transparency to 1.0. Moreover, the alpha values of fill and contour colours of the upper plot have been set to 1.0. As can be seen from the figure, the colour of the lower contour lines is bold white even in the region where they should be hidden by the second overlaid plot.
This issue affects all matplotlib versions from 0.99.1.2 when I tried this first up to the current release 1.3.1.
test

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