Skip to content

Commit

Permalink
fix logic of plotInitialConditions in fittingModel.plotResults
Browse files Browse the repository at this point in the history
  • Loading branch information
bcdaniels committed Jun 13, 2022
1 parent bb33c16 commit f81af43
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions SirIsaac/fittingProblem.py
Original file line number Diff line number Diff line change
Expand Up @@ -1340,9 +1340,10 @@ def plotResults(self,fittingData,indepParamsList,numCols=None,
lw=linewidth,color=colorToUse,
**kwargs) )

if plotInitialConditions and (i<len(indepParamsList[j])):
if plotInitialConditions and (name+'_init' in self.indepParamNames):
if ICmarker is None: ICmarker = colorWheelFmt[1]
Plotting.plot([0],[indepParamsList[j][i]],
idx = self.indepParamNames.index(name+'_init')
Plotting.plot([0],[indepParamsList[idx][i]],
marker=ICmarker,
clip_on=False,ms=markerSize,zorder=5,
mfc="None",mec=colorWheelFmt[0],mew=markerSize/3.)
Expand Down

0 comments on commit f81af43

Please sign in to comment.