parameters: (self, z, mark="k", atol=1e-12, rtol=1e-12, units=pk.AU, axes=None, quiver=False, length=1)
return_statement: return axes
docstring: This function plots the 3 dimensional spacecraft trajectory, given a solution chromosome.
  
          Args:
              - z (``list``, ``tuple``, ``numpy.ndarray``): Decision chromosome, e.g. (``pygmo.population.champion_x``).
              - mark (``string``): matplotlib marker.
              - atol (``float``, ``int``): absolute integration tolerance.
              - rtol (``float``, ``int``): relative integration tolerance.
              - units (``float``, ``int``): units by which to scale the trajectory dimensions.
              - axes (``matplotlib.axes._subplots.Axes3DSubplot``): 3D axes to use for the plot
              - quiver (``bool``): when True the thrust is visualized with a quiver plot
              - length (``float``): Length of thrust arrow if quiver is True
docstring_summary: This function plots the 3 dimensional spacecraft trajectory, given a solution chromosome.
docstring_tokens: This function plots the 3 dimensional spacecraft trajectory given a solution chromosome .
function: def plot_traj(self, z, mark="k", atol=1e-12, rtol=1e-12, units=pk.AU, axes=None, quiver=False, length=1):
          """This function plots the 3 dimensional spacecraft trajectory, given a solution chromosome.
  
          Args:
              - z (``list``, ``tuple``, ``numpy.ndarray``): Decision chromosome, e.g. (``pygmo.population.champion_x``).
              - mark (``string``): matplotlib marker.
              - atol (``float``, ``int``): absolute integration tolerance.
              - rtol (``float``, ``int``): relative integration tolerance.
              - units (``float``, ``int``): units by which to scale the trajectory dimensions.
              - axes (``matplotlib.axes._subplots.Axes3DSubplot``): 3D axes to use for the plot
              - quiver (``bool``): when True the thrust is visualized with a quiver plot
              - length (``float``): Length of thrust arrow if quiver is True
  
          """
  
          # set problem
          self.fitness(z)
  
          # figure
          if axes is None:
              fig = plt.figure()
              axes = fig.gca(projection='3d')
          elif not isinstance(axes, Axes3D):
              raise TypeError(
                  "Axis must be instance of matplotlib.axes._subplots.Axes3DSubplot.")
  
          # problem specifics
          self._plot_traj(z, axes, units)
  
          # Sun
          axes.scatter([0], [0], [0], color='y')
  
          # leg
          self.leg.plot_traj(axes, mark, atol, rtol, units,
                             quiver=quiver, length=length)
  
          return axes
function_tokens: def plot_traj ( self , z , mark = "k" , atol = 1e-12 , rtol = 1e-12 , units = pk . AU , axes = None , quiver = False , length = 1 ) : # set problem self . fitness ( z ) # figure if axes is None : fig = plt . figure ( ) axes = fig . gca ( projection = '3d' ) elif not isinstance ( axes , Axes3D ) : raise TypeError ( "Axis must be instance of matplotlib.axes._subplots.Axes3DSubplot." ) # problem specifics self . _plot_traj ( z , axes , units ) # Sun axes . scatter ( [ 0 ] , [ 0 ] , [ 0 ] , color = 'y' ) # leg self . leg . plot_traj ( axes , mark , atol , rtol , units , quiver = quiver , length = length ) return axes