Skip to content

Commit

Permalink
indicate python raw string to protect LaTeX commands
Browse files Browse the repository at this point in the history
  • Loading branch information
ibressler committed Sep 8, 2022
1 parent 247973a commit 4483cb5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion distrib.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ def normalizeDistrib(x, y, u=None):

def area(xvec, yvec, showArea = True):
"""Returns a string with the area value of the given discrete curve points."""
return " $\int${:.3g}".format(integrate(xvec, yvec)) if showArea else ""
return r" $\int${:.3g}".format(integrate(xvec, yvec)) if showArea else ""

def findPeakRanges(x, y, tol=1e-16):
"""Returns the location of data/peak above a base line.
Expand Down

0 comments on commit 4483cb5

Please sign in to comment.