Skip to content

Commit 364265f

Browse files
committed
Merge branch 'patches-from-python3'
Sync with 'python3' at 7761373.
2 parents 9098123 + 96f2f6e commit 364265f

15 files changed

Lines changed: 30 additions & 24 deletions

doc/examples/coreshellnp.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -142,8 +142,8 @@ def plotResults(recipe):
142142
pylab.plot(r, gcalc,'r-',label="G(r) Fit")
143143
pylab.plot(r,diff,'g-',label="G(r) diff")
144144
pylab.plot(r,diffzero,'k-')
145-
pylab.xlabel("$r (\AA)$")
146-
pylab.ylabel("$G (\AA^{-2})$")
145+
pylab.xlabel(r"$r (\AA)$")
146+
pylab.ylabel(r"$G (\AA^{-2})$")
147147
pylab.legend(loc=1)
148148

149149
pylab.show()

doc/examples/crystalpdf.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -138,8 +138,8 @@ def plotResults(recipe):
138138
pylab.plot(r, gcalc,'r-',label="G(r) Fit")
139139
pylab.plot(r,diff,'g-',label="G(r) diff")
140140
pylab.plot(r,diffzero,'k-')
141-
pylab.xlabel("$r (\AA)$")
142-
pylab.ylabel("$G (\AA^{-2})$")
141+
pylab.xlabel(r"$r (\AA)$")
142+
pylab.ylabel(r"$G (\AA^{-2})$")
143143
pylab.legend(loc=1)
144144

145145
pylab.show()

doc/examples/crystalpdfall.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -176,8 +176,8 @@ def plotResults(recipe):
176176
pylab.plot(xr_ni,xgcalc_ni,'r-',label="G(r) x-ray nickel Fit")
177177
pylab.plot(xr_ni,xdiff_ni,'g-',label="G(r) x-ray nickel diff")
178178
pylab.plot(xr_ni,xdiffzero_ni,'k-')
179-
pylab.xlabel("$r (\AA)$")
180-
pylab.ylabel("$G (\AA^{-2})$")
179+
pylab.xlabel(r"$r (\AA)$")
180+
pylab.ylabel(r"$G (\AA^{-2})$")
181181
pylab.legend(loc=1)
182182

183183
pylab.subplot(2, 2, 2)

doc/examples/crystalpdftwodata.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -161,8 +161,8 @@ def plotResults(recipe):
161161
pylab.plot(nr,ngcalc,'r-',label="G(r) neutron Fit")
162162
pylab.plot(nr,ndiff,'g-',label="G(r) neutron diff")
163163
pylab.plot(nr,ndiffzero,'k-')
164-
pylab.xlabel("$r (\AA)$")
165-
pylab.ylabel("$G (\AA^{-2})$")
164+
pylab.xlabel(r"$r (\AA)$")
165+
pylab.ylabel(r"$G (\AA^{-2})$")
166166
pylab.legend(loc=1)
167167

168168
pylab.show()

doc/examples/crystalpdftwophase.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -152,8 +152,8 @@ def plotResults(recipe):
152152
pylab.plot(r, gcalc,'r-',label="G(r) Fit")
153153
pylab.plot(r,diff,'g-',label="G(r) diff")
154154
pylab.plot(r,diffzero,'k-')
155-
pylab.xlabel("$r (\AA)$")
156-
pylab.ylabel("$G (\AA^{-2})$")
155+
pylab.xlabel(r"$r (\AA)$")
156+
pylab.ylabel(r"$G (\AA^{-2})$")
157157
pylab.legend(loc=1)
158158

159159
pylab.show()

doc/examples/debyemodel.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -166,7 +166,7 @@ def plotResults(recipe):
166166
pylab.plot(T,U,'o',label="Pb $U_{iso}$ Data")
167167
pylab.plot(T,Ucalc)
168168
pylab.xlabel("T (K)")
169-
pylab.ylabel("$U_{iso} (\AA^2)$")
169+
pylab.ylabel(r"$U_{iso} (\AA^2)$")
170170
pylab.legend(loc = (0.0,0.8))
171171

172172
pylab.show()

doc/examples/debyemodelII.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -115,12 +115,12 @@ def plotResults(recipe):
115115
# Now we can plot this.
116116
import pylab
117117
pylab.plot(T,U,'o',label="Pb $U_{iso}$ Data")
118-
lbl1 = "$T_d$=%3.1f K, lowToff=%1.5f $\AA^2$"% (abs(thetaD),lowToffset)
119-
lbl2 = "$T_d$=%3.1f K, highToff=%1.5f $\AA^2$"% (abs(thetaD),highToffset)
118+
lbl1 = r"$T_d$=%3.1f K, lowToff=%1.5f $\AA^2$"% (abs(thetaD),lowToffset)
119+
lbl2 = r"$T_d$=%3.1f K, highToff=%1.5f $\AA^2$"% (abs(thetaD),highToffset)
120120
pylab.plot(T,lowU,label=lbl1)
121121
pylab.plot(T,highU,label=lbl2)
122122
pylab.xlabel("T (K)")
123-
pylab.ylabel("$U_{iso} (\AA^2)$")
123+
pylab.ylabel(r"$U_{iso} (\AA^2)$")
124124
pylab.legend(loc = (0.0,0.8))
125125

126126
pylab.show()

doc/examples/ellipsoidsas.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@ def plotResults(recipe):
9494
pylab.loglog(r,y,'bo',label="I(Q) Data")
9595
pylab.loglog(r, ycalc,'r-',label="I(Q) Fit")
9696
pylab.loglog(r,diff,'g-',label="I(Q) diff")
97-
pylab.xlabel("$Q (\AA^{-1})$")
97+
pylab.xlabel(r"$Q (\AA^{-1})$")
9898
pylab.ylabel("$I (arb. units)$")
9999
pylab.legend(loc=1)
100100

doc/examples/npintensity.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -339,7 +339,7 @@ def plotResults(recipe):
339339
pylab.plot(q,Icalc,'r-',label="I(Q) Fit")
340340
pylab.plot(q,diff,'g-',label="I(Q) diff")
341341
pylab.plot(q,bkgd,'c-',label="Bkgd. Fit")
342-
pylab.xlabel("$Q (\AA^{-1})$")
342+
pylab.xlabel(r"$Q (\AA^{-1})$")
343343
pylab.ylabel("Intensity (arb. units)")
344344
pylab.legend(loc=1)
345345

doc/examples/npintensityII.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -209,7 +209,7 @@ def plotResults(recipe):
209209
pylab.plot(q,Icalc2,'r-',label="I2(Q) Fit")
210210
pylab.plot(q,diff2,'g-',label="I2(Q) diff")
211211
pylab.plot(q,bkgd2,'c-',label="Bkgd2 Fit")
212-
pylab.xlabel("$Q (\AA^{-1})$")
212+
pylab.xlabel(r"$Q (\AA^{-1})$")
213213
pylab.ylabel("Intensity (arb. units)")
214214
pylab.legend(loc=1)
215215

0 commit comments

Comments
 (0)