I am using the triangle/corner plot from python and I follow the simple guide in this webpage . Everything is ok but I was thinking about adding another point in the triangle plot. As you can see from the example, the command to draw the triangle plot with a particular point is:
fig = triangle.corner(samples, labels=["$m$", "$b$"],truths=[m_true, b_true])
in which m_true
and b_true
are the coordinates of the blue square. How can I add another point with different coordinates, let's say {b_true2, m_true2}
?
You have to edit over the ax
. So if you want to plot something above, you have to do:
figure, ax = pl.subplots(1, 1)
figure = triangle.corner(samples, labels=["$m$", "$b$"],truths=[m_true, b_true])
ax.plot(...)
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.