Difference between revisions of "Relax disp.spin lock offset+field figure"

From relax wiki
Jump to navigation Jump to search
(Using the {{lowercase title}} template.)
(→‎See also: Fix for the category.)
 
(4 intermediate revisions by the same user not shown)
Line 4: Line 4:
  
 
== Reference to original figure ==
 
== Reference to original figure ==
Comparing to Figure 1 and 10 the reference.
+
Comparing to Figure 1 and 10 the reference:
Palmer, A.G. & Massi, F. (2006). Characterization of the dynamics of biomacromolecules using rotating-frame spin relaxation NMR spectroscopy. Chem. Rev. 106, 1700-1719
 
  
[http://dx.doi.org/10.1021/cr04042875 DOI]
+
* {{#lst:Citations|PalmerMassi06}}
  
 
[[File:Fig1 Palmer Massi 2006.png|thumb|center|upright=4|Try to reproduce Figure 1.]]
 
[[File:Fig1 Palmer Massi 2006.png|thumb|center|upright=4|Try to reproduce Figure 1.]]
  
 
== Script to produce figure ==
 
== Script to produce figure ==
<source lang="python">
+
 
 +
{{collapsible script
 +
| type  = Python script
 +
| title  = Reproduce figure 1 of Palmer and Massi, 2006 using matplotlib.
 +
| lang   = python
 +
| script =
 
#############
 
#############
 
# Made by Troels E. Linnet
 
# Made by Troels E. Linnet
Line 228: Line 232:
 
# Make Sx
 
# Make Sx
 
x, y, z = Sx
 
x, y, z = Sx
Sx = Arrow3D([-1, x],[0, y], [0, z], mutation_scale=20, lw=1, arrowstyle="-|>", color="k")
+
Sx = Arrow3D([-1, x],[0, y], [0, z], mutation_scale=20, lw=1, arrowstyle="-{{!}}>", color="k")
 
ax.add_artist(Sx)
 
ax.add_artist(Sx)
  
 
# Make Sy
 
# Make Sy
 
x, y, z = Sy
 
x, y, z = Sy
fSy = Arrow3D([0, x],[1, y], [0, z], mutation_scale=20, lw=1, arrowstyle="-|>", color="k")
+
fSy = Arrow3D([0, x],[1, y], [0, z], mutation_scale=20, lw=1, arrowstyle="-{{!}}>", color="k")
 
ax.add_artist(fSy)
 
ax.add_artist(fSy)
  
 
# Make Sz
 
# Make Sz
 
x, y, z = Sz
 
x, y, z = Sz
fSz = Arrow3D([0, x],[0, y], [-1, z], mutation_scale=20, lw=1, arrowstyle="-|>", color="k")
+
fSz = Arrow3D([0, x],[0, y], [-1, z], mutation_scale=20, lw=1, arrowstyle="-{{!}}>", color="k")
 
ax.add_artist(fSz)
 
ax.add_artist(fSz)
  
 
# Make Szp
 
# Make Szp
 
x, y, z = Szp
 
x, y, z = Szp
fSzp = Arrow3D([0, x],[0, y], [0, z], mutation_scale=20, lw=3, arrowstyle="-|>", color="k")
+
fSzp = Arrow3D([0, x],[0, y], [0, z], mutation_scale=20, lw=3, arrowstyle="-{{!}}>", color="k")
 
ax.add_artist(fSzp)
 
ax.add_artist(fSzp)
  
 
# Make Sxp
 
# Make Sxp
 
x, y, z = Sxp
 
x, y, z = Sxp
fSxp = Arrow3D([0, x],[0, y], [0, z], mutation_scale=20, lw=3, arrowstyle="-|>", color="k")
+
fSxp = Arrow3D([0, x],[0, y], [0, z], mutation_scale=20, lw=3, arrowstyle="-{{!}}>", color="k")
 
ax.add_artist(fSxp)
 
ax.add_artist(fSxp)
  
Line 263: Line 267:
 
# Make we1
 
# Make we1
 
x, y, z = we1
 
x, y, z = we1
fwe1 = Arrow3D([0, x],[0, y], [0, z], mutation_scale=20, lw=1, arrowstyle="-|>", color="b")
+
fwe1 = Arrow3D([0, x],[0, y], [0, z], mutation_scale=20, lw=1, arrowstyle="-{{!}}>", color="b")
 
ax.add_artist(fwe1)
 
ax.add_artist(fwe1)
  
Line 277: Line 281:
 
# Make we
 
# Make we
 
x, y, z = we
 
x, y, z = we
fwe = Arrow3D([0, x],[0, y], [0, z], mutation_scale=20, lw=1, arrowstyle="-|>", color="r")
+
fwe = Arrow3D([0, x],[0, y], [0, z], mutation_scale=20, lw=1, arrowstyle="-{{!}}>", color="r")
 
ax.add_artist(fwe)
 
ax.add_artist(fwe)
  
Line 295: Line 299:
 
fig.canvas.mpl_connect('button_release_event', update_position)
 
fig.canvas.mpl_connect('button_release_event', update_position)
 
plt.show()
 
plt.show()
</source>
+
}}
 +
 
 +
== See also ==
 +
 
 +
[[Category:Relaxation dispersion analysis]]

Latest revision as of 17:35, 6 November 2015


Reference to original figure

Comparing to Figure 1 and 10 the reference:

  • Palmer, 3rd, A. G. and Massi, F. (2006). Characterization of the dynamics of biomacromolecules using rotating-frame spin relaxation NMR spectroscopy. Chem. Rev., 106(5), 1700-1719. (DOI: 10.1021/cr0404287)
Try to reproduce Figure 1.

Script to produce figure

See also