Skip to content

Commit 2391d32

Browse files
committed
Fixed Latex notation.
1 parent d5c8b12 commit 2391d32

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

diffpy/pdfmorph/pdfplot.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -53,8 +53,8 @@ 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 (\AA)$")
57-
plt.ylabel("$G (\AA^{-1})$")
56+
plt.xlabel("$r \mathrm{\AA}$")
57+
plt.ylabel("$G \mathrm{\AA}^{-1}$")
5858

5959
plt.show()
6060
return
@@ -179,8 +179,8 @@ def comparePDFs(pairlist, labels=None, rmin = None, rmax = None, show = True,
179179
plt.ylim(ymin, ymax)
180180

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

0 commit comments

Comments
 (0)