class_docstr: Class contains logic for spaces with XYZ coordinate systems
  
  >>> sp = XYZSpace('hijo')
  >>> print(sp)
  hijo: [('x', 'hijo-x=L->R'), ('y', 'hijo-y=P->A'), ('z', 'hijo-z=I->S')]
  >>> csm = sp.to_coordsys_maker()
  >>> cs = csm(3)
  >>> cs
  CoordinateSystem(coord_names=('hijo-x=L->R', 'hijo-y=P->A', 'hijo-z=I->S'), name='hijo', coord_dtype=float64)
  >>> cs in sp
  True
class_docstr_tok: ["Class","contains","logic","for","spaces","with","XYZ","coordinate","systems",">",">",">","sp","=","XYZSpace","(","'hijo","'",")",">",">",">","print","(","sp",")","hijo",":","[","(","'","x","'",",","'hijo-x=L-",">","R","'",")",",","(","'","y","'",",","'hijo-y=P-",">","A","'",")",",","(","'","z","'",",","'hijo-z=I-",">","S","'",")","]",">",">",">","csm","=","sp.to_coordsys_maker","(",")",">",">",">","cs","=","csm","(","3",")",">",">",">","cs","CoordinateSystem","(","coord_names=","(","'hijo-x=L-",">","R","'",",","'hijo-y=P-",">","A","'",",","'hijo-z=I-",">","S","'",")",",","name='hijo","'",",","coord_dtype=float64",")",">",">",">","cs","in","sp","True"]
docstr: Update `mapping` with key=self.x, value='x' etc pairs
  
  The mapping will then have keys that are names we (``self``) identify as
  being x, or y, or z, values are 'x' or 'y' or 'z'.
  
  Note that this is the opposite way round for keys, values, compared to
  the ``as_map`` method.
  
  Parameters
  ----------
  mapping : mapping
      such as a dict
  
  Returns
  -------
  None
  
  Examples
  --------
  >>> sp = XYZSpace('hijo')
  >>> mapping = {}
  >>> sp.register_to(mapping)
  >>> sorted(mapping.items())
  [('hijo-x=L->R', 'x'), ('hijo-y=P->A', 'y'), ('hijo-z=I->S', 'z')]
docstr_tok: ["Update","`","mapping","`","with","key=self.x",",","value=","'","x","'","etc","pairs","The","mapping","will","then","have","keys","that","are","names","we","(","``","self","``",")","identify","as","being","x",",","or","y",",","or","z",",","values","are","'","x","'","or","'","y","'","or","'","z","'",".","Note","that","this","is","the","opposite","way","round","for","keys",",","values",",","compared","to","the","``","as_map","``","method",".","Parameters","--","--","--","--","--","mapping",":","mapping","such","as","a","dict","Returns","--","--","--","-","None","Examples","--","--","--","--",">",">",">","sp","=","XYZSpace","(","'hijo","'",")",">",">",">","mapping","=","{","}",">",">",">","sp.register_to","(","mapping",")",">",">",">","sorted","(","mapping.items","(",")",")","[","(","'hijo-x=L-",">","R","'",",","'","x","'",")",",","(","'hijo-y=P-",">","A","'",",","'","y","'",")",",","(","'hijo-z=I-",">","S","'",",","'","z","'",")","]"]
code: def register_to(self, mapping):
      """Update `mapping` with key=self.x, value='x' etc pairs
  
      The mapping will then have keys that are names we (``self``) identify as
      being x, or y, or z, values are 'x' or 'y' or 'z'.
  
      Note that this is the opposite way round for keys, values, compared to
      the ``as_map`` method.
  
      Parameters
      ----------
      mapping : mapping
          such as a dict
  
      Returns
      -------
      None
  
      Examples
      --------
      >>> sp = XYZSpace('hijo')
      >>> mapping = {}
      >>> sp.register_to(mapping)
      >>> sorted(mapping.items())
      [('hijo-x=L->R', 'x'), ('hijo-y=P->A', 'y'), ('hijo-z=I->S', 'z')]
      """
      mapping.update(dict(zip(self.as_tuple(), "xyz")))
  
imports: import numpy
  from nibabel import io_orientation
  from nibabel.affines import from_matvec
  from .coordinate_map import CoordMapMaker
  from .coordinate_system import CoordSysMaker, is_coordsys, is_coordsys_maker
label_desc: Use image node_id 11 for calling the XYZSpace obj's underlying member method code with example usage: obj.register_to(mapping) without return types