Difference between revisions of "Plot 1d.m"

From Spinach Documentation Wiki
Jump to: navigation, search
(Created page with "1D plotting utility. Uses the same parameters structure as 1D pulse sequences. Input syntax: plot_1d(spin_system,spectrum,parameters) Input parameters: pa...")
 
(removed link to deleted function page bloch_sph_plot.m (removed per IK instruction 2026-08-30))
 
(7 intermediate revisions by 2 users not shown)
Line 1: Line 1:
−
1D plotting utility. Uses the same parameters structure as 1D pulse
+
{{DISPLAYTITLE:plot_1d.m}} __NOTOC__
−
sequences. Input syntax:
+
1D plotting utility.
  
−
              plot_1d(spin_system,spectrum,parameters)
+
==Syntax==
  
−
Input parameters:
+
    plot_1d(spin_system,spectrum,parameters,varargin)
  
 +
==Parameters==
 +
 +
    spectrum                      a column vector containing the
 +
                                  spectrum
 +
 
     parameters.sweep              sweep width, Hz
 
     parameters.sweep              sweep width, Hz
−
 
+
 
     parameters.spins              spin species, e.g. {'1H'}
 
     parameters.spins              spin species, e.g. {'1H'}
−
 
+
 
     parameters.offset            transmitter offset, Hz
 
     parameters.offset            transmitter offset, Hz
−
 
+
 
     parameters.axis_units        axis units ('ppm','Gauss',
 
     parameters.axis_units        axis units ('ppm','Gauss',
−
                                   'mT','T','Hz','kHz','MHz')
+
                                   'mT','Hz','kHz','MHz',
−
 
+
                                  'MHz-labframe','GHz','GHz-labframe',
 +
                                  'gtensor','points')
 +
 
     parameters.derivative        if set to 1, the spectrum is
 
     parameters.derivative        if set to 1, the spectrum is
 
                                   differentiated before plotting
 
                                   differentiated before plotting
−
 
+
 
     parameters.invert_axis        if set to 1, the frequency axis  
 
     parameters.invert_axis        if set to 1, the frequency axis  
 
                                   is inverted before plotting
 
                                   is inverted before plotting
 +
 +
    varargin                      any number of any other para-
 +
                                  meters; these will be passed
 +
                                  to Matlab's plot() function
 +
 +
==Outputs==
 +
 +
    this function produces a figure
 +
 +
==See also==
 +
[[plot_2d.m]], [[slice_2d.m]], [[int_2d.m]], [[plot_3d.m]], [[mri_2d_plot.m]], [[volplot.m]], [[molplot.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]]
  
−
Any extra arguments given to this function will be passed to the built-in
+
''Version 2.3, authors: [[Ilya Kuprov]], [[Luke Edwards]]''
−
Matlab function plot().
 

Latest revision as of 10:10, 30 August 2026

1D plotting utility.

Syntax

    plot_1d(spin_system,spectrum,parameters,varargin)

Parameters

   spectrum                      a column vector containing the
                                 spectrum

   parameters.sweep              sweep width, Hz

   parameters.spins              spin species, e.g. {'1H'}

   parameters.offset             transmitter offset, Hz

   parameters.axis_units         axis units ('ppm','Gauss',
                                 'mT','Hz','kHz','MHz',
                                 'MHz-labframe','GHz','GHz-labframe',
                                 'gtensor','points')

   parameters.derivative         if set to 1, the spectrum is
                                 differentiated before plotting

   parameters.invert_axis        if set to 1, the frequency axis 
                                 is inverted before plotting

   varargin                      any number of any other para-
                                 meters; these will be passed
                                 to Matlab's plot() function

Outputs

    this function produces a figure

See also

plot_2d.m, slice_2d.m, int_2d.m, plot_3d.m, mri_2d_plot.m, volplot.m, molplot.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, Luke Edwards