## Priority and overlap on filled contours with Getdist

Use of Cobaya. camb, CLASS, cosmomc, compilers, etc.
Dournac Fabien
Posts: 45
Joined: May 18 2019
Affiliation: IRAP
Contact:

### Priority and overlap on filled contours with Getdist

Hello,

currently, I generate a triplot with 2 covariance matrixes where I have this kind of subplot :

As you can see, there is a almost totally masked red zone area (not shaded red) by the blue zone (shaded blue + true blue).

The blue zone seems to have priority in the drawing of contours whereas I would like that true red filled disk not te masked by the blue shaded zone (Nevertheless, I want the blue contours not be affected and keep their displaying).

How to change this priority in the overlapping of different area, especially when one wants to draw/put a 1 sigma filled contour of plain color over a 2 sigma shaded filled contour knowing the 1 sigma filled contour is smaller (plain red masked in my case) than the 2 shaded filled contour (blue shaded) ?

Code: Select all

# Call triplot
g.triangle_plot([matrix1, matrix2],
names,
filled = True,
legend_labels = ['Red contours - Surface of 2 sigma bigger, 'Blue ccontours - Surface of 2 sigma smaller'],
legend_loc = 'upper right',
contour_colors = ['red','darkblue'],
line_args = [{'lw':2, 'color':'red'},
{'lw':2, 'color':'darkblue'}],
)
Here below an example where the 2 plain - 1 sigma contours red and blue are drawing (without affecting the contours). Don't take into accounf of yellow contours.

On this image, you can see clearly that both (1 sigma blue and red filled disk) are drawing with true red and blue colors (I mean not shaded).

Is it possible to do the same with some options of GetDist (in my case) ?

Regards

Antony Lewis
Posts: 1685
Joined: September 23 2004
Affiliation: University of Sussex
Contact:

### Re: Priority and overlap on filled contours with Getdist

You can maybe get it by playing with the alpha parameters, not sure

Dournac Fabien
Posts: 45
Joined: May 18 2019
Affiliation: IRAP
Contact:

### Re: Priority and overlap on filled contours with Getdist

Hi Antony,

I have already tried to play with alpha_filled_add parameter but the original colors of legend don't correspond anymore to the colors present in the contours (there is a mix of both colors, here red and darkblue). Here below different illustrations by taking successively :

: current version. It illustrates my original post : the box representing the joint distribution $h$ vs $\sigma_8$ is masking the red 1 sigma filled contour by the shaded 2 sigma blue filled ellipse and set all in front of the plane the darkblue (plain and shaded) color.