mirror of
https://github.com/fjosw/pyerrors.git
synced 2025-05-14 19:43:41 +02:00
correlators.show appearence changed
This commit is contained in:
parent
c07f0629fa
commit
63037fd98f
1 changed files with 8 additions and 9 deletions
|
@ -23,7 +23,7 @@ class Corr:
|
|||
def __init__(self, data_input,padding_front=0,padding_back=0):
|
||||
#All data_input should be a list of things at different timeslices. This needs to be verified
|
||||
|
||||
if not isinstance(data_input,list):
|
||||
if not (isinstance(data_input,list)):
|
||||
raise TypeError('Corr__init__ expects a list of timeslices.')
|
||||
# data_input can have multiple shapes. The simplest one is a list of Obs.
|
||||
#We check, if this is the case
|
||||
|
@ -265,7 +265,7 @@ class Corr:
|
|||
xrange=[0,self.T]
|
||||
|
||||
x,y,y_err=self.plottable()
|
||||
plt.errorbar(x,y,y_err,fmt="o-")
|
||||
plt.errorbar(x,y,y_err)
|
||||
if logscale:
|
||||
plt.yscale("log")
|
||||
else:
|
||||
|
@ -274,10 +274,9 @@ class Corr:
|
|||
y_max=max([ (x[0].value+x[0].dvalue) for x in self.content[xrange[0]:xrange[1]] if(not x is None)])
|
||||
plt.ylim([y_min-0.1*(y_max-y_min),y_max+0.1*(y_max-y_min)])
|
||||
|
||||
plt.xlabel(r"$n_t$ [a]")
|
||||
plt.xlim(xrange)
|
||||
plt.xlabel(r"$an_t$")
|
||||
plt.xlim([xrange[0] - 0.5, xrange[1] + 0.5])
|
||||
plt.title("Quickplot")
|
||||
plt.grid()
|
||||
|
||||
plt.show()
|
||||
plt.clf()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue