Skip to content

Commit 9064bd4

Browse files
authored
Merge pull request #13 from bobbolous/patch-1
Fix unknown glyph error in legend caused by "\1sl" instead of "1sl".
2 parents efd50bc + 9c80b77 commit 9064bd4

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/predictr.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1836,7 +1836,7 @@ def inverse_weibull(perc, beta, eta):
18361836
'\nuncorrected MLE:\n'
18371837
+ r'$\widehat\beta={:.3f}$ | '.format(self.beta)
18381838
+ r'$\widehat\eta={:.3f}$'.format(self.eta),
1839-
'\n{}:\1sl @{}%'.format((bounds_legend), self.cl * 100)),
1839+
'\n{}:\n1sl @{}%'.format((bounds_legend), self.cl * 100)),
18401840
loc='lower left', bbox_to_anchor=(0.65, 0.0),
18411841
fontsize=self.legend_fontsize, title=leg_title)
18421842
else:
@@ -1933,7 +1933,7 @@ def inverse_weibull(perc, beta, eta):
19331933
'\nuncorrected MLE:\n'
19341934
+ r'$\widehat\beta={:.3f}$ | '.format(self.beta)
19351935
+ r'$\widehat\eta={:.3f}$'.format(self.eta),
1936-
'\n{}:\1sl @{}%'.format((bounds_legend), self.cl * 100)),
1936+
'\n{}:\n1sl @{}%'.format((bounds_legend), self.cl * 100)),
19371937
loc='lower left', bbox_to_anchor=(0.65, 0.0),
19381938
fontsize=self.legend_fontsize, title=leg_title)
19391939
else:
@@ -3126,4 +3126,4 @@ def simple_weibull(self, beta, eta, unit='-', x_label = 'Time to Failure',
31263126
0.8394342818048925, 0.9118100898948334, 1.0110147142055477, 1.0180126386295232,
31273127
1.3201853093496474, 1.492172669340363]
31283128
x = Analysis(df=failures_a, bounds='npbb', bounds_type='2s', show=True)
3129-
#x.mle()
3129+
#x.mle()

0 commit comments

Comments
 (0)