Skip to content

Commit 099aa20

Browse files
committed
Modified Angstrom labels, removed commented code.
1 parent f4940b8 commit 099aa20

File tree

1 file changed

+4
-7
lines changed

1 file changed

+4
-7
lines changed

diffpy/pdfmorph/pdfplot.py

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -45,8 +45,6 @@ def plotPDFs(pairlist, labels=None, offset ='auto', rmin = None, rmax = None):
4545
labels = list(labels)
4646
labels.extend([""] * gap)
4747

48-
#plt.clf()
49-
#plt.ioff()
5048
for idx, pair in enumerate(pairlist):
5149
r, gr = pair
5250
plt.plot(r, gr + idx * offset, label = labels[idx])
@@ -55,8 +53,8 @@ def plotPDFs(pairlist, labels=None, offset ='auto', rmin = None, rmax = None):
5553
if gap == 0:
5654
plt.legend(loc = 0)
5755

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

6159
plt.show()
6260
return
@@ -181,9 +179,8 @@ def comparePDFs(pairlist, labels=None, rmin = None, rmax = None, show = True,
181179
plt.ylim(ymin, ymax)
182180

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

0 commit comments

Comments
 (0)