Plot only 1 sigma or 2 sigma contours
Posted: August 01 2020
Hello,
In a context of covariane matrix with Fisher's formism, I would like to plot, with triangle_plot function only 1 sigma contour or 2 sigma contours, not the both in the same time.
Here is below my current code snippet that plots 1 and 2 sigma at the same time of 2 covariance matrixes (matrix1 and matrix 2) :
I saw during my researches a paramater called contour_levels for example in the function add_2d_contours but I don't know how to use it
in triangle_plot for plotting only 1 or 2 sigma contours.
If anyone could help, this would be fine.
In a context of covariane matrix with Fisher's formism, I would like to plot, with triangle_plot function only 1 sigma contour or 2 sigma contours, not the both in the same time.
Here is below my current code snippet that plots 1 and 2 sigma at the same time of 2 covariance matrixes (matrix1 and matrix 2) :
Code: Select all
# Call triplot
g.triangle_plot([matrix1, matrix2],
names,
filled = True,
legend_labels = ['1240', '1565'],
legend_loc = 'upper right',
contour_colors = ['red','darkblue'],
line_args = [{'lw':2, 'color':'red'},
{'lw':2, 'color':'darkblue'}],
)
in triangle_plot for plotting only 1 or 2 sigma contours.
If anyone could help, this would be fine.