gpe.visualize
=============

.. py:module:: gpe.visualize


Attributes
----------

.. autoapisummary::

   gpe.visualize.hv


Classes
-------

.. autoapisummary::

   gpe.visualize.SimulationMixin2
   gpe.visualize.SelectionStream


Module Contents
---------------

.. py:data:: hv
   :value: None


.. py:class:: SimulationMixin2

   Mixin for Simulation classes that provides holoview visualization.


   .. py:attribute:: opts


   .. py:property:: psis


   .. py:property:: phases


   .. py:property:: psis_k


   .. py:property:: ns


   .. py:method:: _set_states(image=None)

      Load all of the states and return (ts, psis).



   .. py:property:: data

      Return an xarray with the density data for plotting.


   .. py:property:: data_phase

      Return an xarray with the density data for plotting.


   .. py:property:: data_k

      Return an xarray with the momentum data for plotting.


   .. py:method:: get_densities(t, normalize)

      Event handler that returns the density curves.



   .. py:method:: get_phases(t)

      Event handler that returns the density curves.



   .. py:method:: get_momentum(t, normalize)

      Event handler that returns the momenta curves.



   .. py:method:: get_plots(t, normalize=False, momentum=False, curve='phase')

      Return the various subplots.



   .. py:method:: view_hv(species='ab', curve='density', image=False, **kw)


.. py:class:: SelectionStream

   Bases: :py:obj:`holoviews.streams.Stream`


   .. py:attribute:: normalize


   .. py:attribute:: curve


