def plot_trajectory(*args, **kwargs):
interactive = kwargs.pop('<STR_LIT>', True)<EOL>if interactive:<EOL><INDENT>plot_trajectory_with_elegans(*args, **kwargs)<EOL><DEDENT>else:<EOL><INDENT>plot_trajectory_with_matplotlib(*args, **kwargs)<EOL><DEDENT>
Generate a plot from received instance of TrajectoryObserver and show it
See also plot_trajectory_with_elegans and plot_trajectory_with_matplotlib.

Parameters
----------
obs : TrajectoryObserver
    TrajectoryObserver to render.
interactive : bool, default True
    Choose a visualizer. If False, show the plot with matplotlib.
    If True (only available on IPython Notebook), show it with elegans.

Examples
--------
>>> plot_trajectory(obs)
>>> plot_trajectory(obs, interactive=False)