Skip to content

Commit

Permalink
String should be on one line (#235)
Browse files Browse the repository at this point in the history
  • Loading branch information
mmcky authored Jun 22, 2022
1 parent f61c844 commit 4d5d1f0
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions lectures/samuelson.md
Original file line number Diff line number Diff line change
Expand Up @@ -1145,8 +1145,7 @@ class Samuelson():
if isinstance(root, complex):
# Need to fill operator for positive as string is split apart
operator = ['+', '']
label = rf'$\lambda_{i+1} = {sam.roots[i].real:.2f} \
{operator[i]} {sam.roots[i].imag:.2f}i$'
label = rf'$\lambda_{i+1} = {sam.roots[i].real:.2f} {operator[i]} {sam.roots[i].imag:.2f}i$'
else:
label = rf'$\lambda_{i+1} = {sam.roots[i].real:.2f}$'
ax.scatter(0, 0, 0, label=label) # dummy to add to legend
Expand Down

0 comments on commit 4d5d1f0

Please sign in to comment.