Commit dc80de71 authored by Matthieu Tristram's avatar Matthieu Tristram
Browse files

triangle: Add rotation keyword

parent 2b65901a
......@@ -568,7 +568,7 @@ def hist2d( chain, par1, par2, *args, **kwargs):
def triangle( chains, params, nbin=50, parnames=None, names=[], colors=[], linestyles=[], smooth=1., fontsize=12,
def triangle( chains, params, nbin=50, parnames=None, names=[], colors=[], linestyles=[], smooth=1., fontsize=12, rotation=0,
contour=True, fill=False, cmaps=[], bestfit=None, Norm=True, weights=None):
import matplotlib.ticker as mtick
......@@ -678,6 +678,7 @@ def triangle( chains, params, nbin=50, parnames=None, names=[], colors=[], lines
ax=plt.subplot( npar, npar, (npar-1)*npar+xpar+1)
ax.set_xlabel(parname.get(parnames[xpar],parnames[xpar]))
ax.tick_params(axis='both', which='major', labelsize=fontsize)
plt.xticks(rotation=rotation)
# plt.locator_params(tight=True, nbins=5)
#write legend
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment