Difference between revisions of "Plot 3d.m"

From Spinach Documentation Wiki
Jump to: navigation, search
(→‎See also)
(removed link to deleted function page bloch_sph_plot.m (removed per IK instruction 2026-08-30))
 
(3 intermediate revisions by the same user not shown)
Line 6: Line 6:
 
     plot_3d(spin_system,spectrum,parameters,nsurf,delta,k,signs)
 
     plot_3d(spin_system,spectrum,parameters,nsurf,delta,k,signs)
  
−
==Arguments==
+
==Parameters==
  
 
     spectrum    - a real cube containing the 3D NMR spectrum
 
     spectrum    - a real cube containing the 3D NMR spectrum
Line 49: Line 49:
  
 
==See also==
 
==See also==
−
[[plot_1d.m]], [[plot_2d.m]], [[int_2d.m]], [[volplot.m]], [[molplot.m]], [[mri_2d_plot.m]], [[slice_2d.m]], [[hfc_display.m]], [[cst_display.m]]
+
[[plot_1d.m]], [[plot_2d.m]], [[int_2d.m]], [[volplot.m]], [[molplot.m]], [[mri_2d_plot.m]], [[slice_2d.m]], [[hfc_display.m]], [[cst_display.m]], [[apodisation.m]], [[axis_1d.m]], [[bwr_cmap.m]], [[contspacing.m]], [[crop_2d.m]], [[cylgrid.m]], [[fid2ascii.m]], [[ft_axis.m]], [[heterodyne.m]], [[plot_uf.m]], [[s2json.m]], [[scale_figure.m]], [[stack_2d.m]], [[sweep2ticks.m]], [[write_movie.m]], [[xyz2pd.m]], [[zoom_3d.m]], [[Import,_export,_and_visualisation]], [[Kernel_utilities]]
−
 
 
  
 
''Version 2.3, authors: [[Ilya Kuprov]]''
 
''Version 2.3, authors: [[Ilya Kuprov]]''

Latest revision as of 09:10, 30 August 2026

Volume isosurface plotting utility with non-linear adaptive surface spacing. The function plots the 3D volume and the three projections onto the coordinate planes.

Syntax

    plot_3d(spin_system,spectrum,parameters,nsurf,delta,k,signs)

Parameters

    spectrum     - a real cube containing the 3D NMR spectrum

    parameters.sweep       -  three sweep widths, Hz

    parameters.spins       -  cell array with three character
                              strings specifying the working 
                              spins.

    parameters.offset      -  three transmitter offsets, Hz

    parameters.axis_units  -  axis units ('ppm','Hz','Gauss')

    nsurf     - the number of surfaces, a reasonable value is 20

    delta     - minimum and maximum elevation (as a fraction of the
                total intensity) of the surfaces above the baseline.
                A good starting value is [0.02 0.2 0.02 0.2]. The
                first pair of numbers refers to the positive surfa-
                ces and the second pair to the negative ones.

    k    - a coefficient that controls the curvature of the surface
           spacing function: k=1 corresponds to linear spacing and
           k>1 bends the spacing curve to increase the sampling den-
           sity near the baseline. A reasonable value is 2.

    signs   - can be set to 'positive', 'negative' or 'both' - this
              will cause the corresponding surfaces to be plotted.

Outputs

    this function creates a figure

Notes

The following functions are used to compute surface levels:

 cont_levs_pos=delta(2)*smax*linspace(0,1,ncont).^k+smax*delta(1);
 cont_levs_neg=delta(2)*smin*linspace(0,1,ncont).^k+smin*delta(1);

where smin and smax are computed from the spectrum cube.

See also

plot_1d.m, plot_2d.m, int_2d.m, volplot.m, molplot.m, mri_2d_plot.m, slice_2d.m, hfc_display.m, cst_display.m, apodisation.m, axis_1d.m, bwr_cmap.m, contspacing.m, crop_2d.m, cylgrid.m, fid2ascii.m, ft_axis.m, heterodyne.m, plot_uf.m, s2json.m, scale_figure.m, stack_2d.m, sweep2ticks.m, write_movie.m, xyz2pd.m, zoom_3d.m, Import,_export,_and_visualisation, Kernel_utilities

Version 2.3, authors: Ilya Kuprov