Docker-in-Docker (DinD) capabilities of public runners deactivated. More info

Commit 95029c63 authored by perdereau's avatar perdereau
Browse files

proposed modif

parent 60eba629
......@@ -1357,7 +1357,8 @@ class prof:
# print(param_line)
for val in self._s:
data = self._point_minimum( val)
# print( " ".join([str(data[p]) for p in params]))
# print( " ".join([str(data[p]) for p in params]))
print params
f.write( " ".join([str(data[p]) for p in params])+"\n")
f.close()
......@@ -1638,20 +1639,21 @@ class prof:
if extent==None:
extent = (self._v[0],self._v[-1])
ax.plot(self._v,self._p-self.ymin,color=color,marker=marker,linestyle='')
ax.set_xlabel(parname.get(self._nameforclass,self._nameforclass),fontsize=fontsize)
ax.set_ylabel("$\chi^2-\chi^2_{min}$",fontsize=fontsize)
ax.set_ylim((-0.1,5))
if draw_CL and self.CL==68:
plt.axhline(y=1,color='k',linestyle='--')
#plot fit if done
if self._result:
#use min(ftopot) to set the y shift
vartoplot=np.linspace(*extent, num=1000)
ftoplot=self.f(vartoplot)
ax.plot(vartoplot,ftoplot-self.ymin, color=color, linestyle=linestyle, label=label, **kwargs)
ax.plot(self._v,self._p-min(ftoplot),color=color,marker=marker,linestyle='')
ax.set_xlabel(parname.get(self._nameforclass,self._nameforclass),fontsize=fontsize)
ax.set_ylabel("$\chi^2-\chi^2_{min}$",fontsize=fontsize)
ax.set_ylim((-0.1,5))
if draw_CL and self.CL==68:
plt.axhline(y=1,color='k',linestyle='--')
ax.plot(vartoplot,ftoplot-min(ftoplot), color=color, linestyle=linestyle, label=label, **kwargs)
CI = (self._xlow,self._xhigh)
if draw_CL:
......@@ -1667,5 +1669,14 @@ class prof:
ax.text(max([self._xmin,0.]), 4, ' '+self._result, horizontalalignment='left' )
else:
ax.text(self._xmin, 4, self._result, horizontalalignment='center')
else:
ax.plot(self._v,self._p-self.ymin,color=color,marker=marker,linestyle='')
ax.set_xlabel(parname.get(self._nameforclass,self._nameforclass),fontsize=fontsize)
ax.set_ylabel("$\chi^2-\chi^2_{min}$",fontsize=fontsize)
ax.set_ylim((-0.1,5))
if draw_CL and self.CL==68:
plt.axhline(y=1,color='k',linestyle='--')
########################################################################
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