.. DO NOT EDIT. .. THIS FILE WAS AUTOMATICALLY GENERATED BY SPHINX-GALLERY. .. TO MAKE CHANGES, EDIT THE SOURCE PYTHON FILE: .. "auto_examples/plot_quiver_1d_example.py" .. LINE NUMBERS ARE GIVEN BELOW. .. only:: html .. note:: :class: sphx-glr-download-link-note :ref:`Go to the end ` to download the full example code. .. rst-class:: sphx-glr-example-title .. _sphx_glr_auto_examples_plot_quiver_1d_example.py: Quiver 1D Example =================================== Example of a 1D quiver plot. .. GENERATED FROM PYTHON SOURCE LINES 8-21 .. image-sg:: /auto_examples/images/sphx_glr_plot_quiver_1d_example_001.png :alt: plot quiver 1d example :srcset: /auto_examples/images/sphx_glr_plot_quiver_1d_example_001.png :class: sphx-glr-single-img .. code-block:: Python from gerg_plotting import ScatterPlot, data_from_df import pandas as pd # Let's read in the example data df = pd.read_csv('example_data/sample_tabs_data.csv') # Group by the depth groups = [group for _,group in df.groupby('bin_depth')] # Init data from the first group data = data_from_df(groups[0]) scatter = ScatterPlot(data) scatter.quiver1d(x='time',quiver_scale=700) scatter.save('example_plots/quiver_1d_example.png',bbox_inches='tight') .. rst-class:: sphx-glr-timing **Total running time of the script:** (0 minutes 0.580 seconds) .. _sphx_glr_download_auto_examples_plot_quiver_1d_example.py: .. only:: html .. container:: sphx-glr-footer sphx-glr-footer-example .. container:: sphx-glr-download sphx-glr-download-jupyter :download:`Download Jupyter notebook: plot_quiver_1d_example.ipynb ` .. container:: sphx-glr-download sphx-glr-download-python :download:`Download Python source code: plot_quiver_1d_example.py ` .. container:: sphx-glr-download sphx-glr-download-zip :download:`Download zipped: plot_quiver_1d_example.zip ` .. only:: html .. rst-class:: sphx-glr-signature `Gallery generated by Sphinx-Gallery `_