Note
Go to the end to download the full example code.
Quiver 1D Example#
Example of a 1D quiver plot.

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')
Total running time of the script: (0 minutes 0.580 seconds)