plthelpers¶
-
plthelpers.
discrete_cmap
(N, base_cmap=None)¶ Create an N-bin discrete colormap from the specified input map
-
plthelpers.
fit_chi2
(func, datax, datay, datayerror, p_init=None)¶
-
plthelpers.
fit_line
(datax, datay, datayerror=None, p_init=None)¶
-
plthelpers.
fit_pol2
(datax, datay, datayerror=None, p_init=None)¶
-
plthelpers.
fit_gaus
(datax, datay, datayerror, p_init=None)¶
-
plthelpers.
plot_fit_stats
(ax, popt, cov, chi2ndf, posx=0.95, posy=0.95, ha='right', significant_figure=False, color='k', funcstring='', parnames=None)¶
-
plthelpers.
plot_fit_stats2
(ax, popt, cov, chi2ndf, posx=0.95, posy=0.95)¶
-
plthelpers.
plot_hist_stats
(ax, data, weights=None, posx=0.05, posy=0.95, overflow=None, underflow=None, rel=False, additional_text='', additional_text_pre='', fontsize=22, color='k', va='top', ha='left', median=True, quantiles=True, mean=True, std=True, N=True)¶
-
plthelpers.
get_graph
(x_data, y_data, filename=None, show=False, xerr=None, yerr=None, funcs=None, xlabel='', ylabel='', title='', fmt='bo', fit_stats=None, xmin=None, xmax=None, ymin=None, ymax=None, hlines=None, **kwargs)¶
-
plthelpers.
save_graph
(filename=None, **kwargs)¶
-
plthelpers.
get_histograms
(histograms, bins=None, xlabels=None, ylabels=None, stats=True, fig=None, axes=None, histtype=u'bar', titles=None, weights=None, figsize=4, stat_kwargs=None, kwargs={'alpha': 1, 'facecolor': '0.7', 'edgecolor': 'k'})¶
-
plthelpers.
get_histogram
(data, bins=10, xlabel='', ylabel='entries', weights=None, title='', stats=True, show=False, stat_kwargs=None, funcs=None, overflow=True, ax=None, kwargs={'alpha': 1, 'facecolor': '0.7', 'edgecolor': 'k'}, figsize=None)¶ creates a histogram using matplotlib from array
-
plthelpers.
save_histogram
(filename, *args, **kwargs)¶
-
plthelpers.
varname
(p)¶
-
plthelpers.
make_dir
(path)¶
-
plthelpers.
get_marker
(i)¶
-
plthelpers.
get_marker2
(i)¶
-
plthelpers.
get_color
(i)¶