Skip to content

Commit ca540d9

Browse files
Philipp Savakisbgoli
authored andcommitted
replaced normed=False with density=False
1 parent 078a6ce commit ca540d9

File tree

1 file changed

+10
-4
lines changed

1 file changed

+10
-4
lines changed

stochpy/modules/Analysis.py

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -543,7 +543,7 @@ def Distributions(self,distributions,datatype,labels,trajectory_index,linestyle,
543543
"""
544544
Plots the distributions of species and/or propensities
545545
546-
Normed=False because the total probability is determined by summation not by integration.
546+
density=False because the total probability is determined by summation not by integration.
547547
548548
Input:
549549
- *distributions* (nested list)
@@ -587,13 +587,19 @@ def Distributions(self,distributions,datatype,labels,trajectory_index,linestyle,
587587
j=0
588588

589589
if colors == None:
590-
output = plt.hist(distributions[i][0],L_bin_edges,weights = distributions[i][1],ls = linestyle,lw = linewidth,color = self.colors[j],histtype = histtype,orientation=orientation,normed=False)
590+
print('#'*20)
591+
output = plt.hist(distributions[i][0], L_bin_edges, weights = distributions[i][1], ls = linestyle, lw = linewidth, color = self.colors[j], histtype = histtype, orientation=orientation, )
592+
print('just ran this line')
593+
output = plt.hist(distributions[i][0], L_bin_edges, weights = distributions[i][1], ls = linestyle, lw = linewidth, color = self.colors[j], histtype = histtype, orientation=orientation, density=False)
594+
print('just ran this line')
595+
print('#'*20)
596+
591597
else:
592598
if clr.is_color_like(colors[j]):
593-
output = plt.hist(distributions[i][0],L_bin_edges,weights = distributions[i][1],ls = linestyle,lw = linewidth,color = colors[j],histtype = histtype,orientation=orientation,normed=False)
599+
output = plt.hist(distributions[i][0],L_bin_edges,weights = distributions[i][1],ls = linestyle,lw = linewidth,color = colors[j],histtype = histtype,orientation=orientation,density=False)
594600
else:
595601
print("*** WARNING ***: '{0}' is not recognized as a valid color code".format(colors[j]) )
596-
output = plt.hist(distributions[i][0],L_bin_edges,weights = distributions[i][1],ls = linestyle,lw = linewidth,color = self.colors[j],histtype = histtype,orientation=orientation,normed=False)
602+
output = plt.hist(distributions[i][0],L_bin_edges,weights = distributions[i][1],ls = linestyle,lw = linewidth,color = self.colors[j],histtype = histtype,orientation=orientation,density=False)
597603
colors = None
598604
j+=1
599605
if is_legend:

0 commit comments

Comments
 (0)