Skip to content

Commit d4b8abc

Browse files
committed
Fixed Latex syntax.
2 parents 099aa20 + 2391d32 commit d4b8abc

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

diffpy/pdfmorph/pdfplot.py

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -53,8 +53,9 @@ def plotPDFs(pairlist, labels=None, offset ='auto', rmin = None, rmax = None):
5353
if gap == 0:
5454
plt.legend(loc = 0)
5555

56-
plt.xlabel("$r (\mathrm(\AA))$")
57-
plt.ylabel("$G (\mathrm(\AA)^{-1})$")
56+
57+
plt.xlabel("$r \mathrm{\AA}$")
58+
plt.ylabel("$G \mathrm{\AA}^{-1}$")
5859

5960
plt.show()
6061
return
@@ -179,8 +180,8 @@ def comparePDFs(pairlist, labels=None, rmin = None, rmax = None, show = True,
179180
plt.ylim(ymin, ymax)
180181

181182
# Make labels and legends
182-
plt.xlabel("r $\mathrm(\AA)$")
183-
plt.ylabel("G $\mathrm(\AA)^{-1}$")
183+
plt.xlabel("r $\mathrm{\AA}$")
184+
plt.ylabel("G $(\mathrm{\AA}^{-1})$")
184185
if legend:
185186
plt.legend(bbox_to_anchor=(0.005, 1.02, 0.99, .10), loc=3,
186187
ncol=3, mode="expand", borderaxespad=0)

0 commit comments

Comments
 (0)