movement_primitives.plot.plot_distribution_in_rows#
- movement_primitives.plot.plot_distribution_in_rows(mean, std_dev, t=None, label=None, axes=None, std_factors=(1, 2, 3), fill_between=True, subplot_shape=None, transpose=False, axis_titles=[], **kwargs)#
Plot distribution of N dimensions in N 2D subplots.
Note that you have to manually activate the legend for one plot if you need it.
- Parameters:
- meanarray, shape (n_steps, n_dims)
Mean in each dimension
- std_devarray, shape (n_steps, n_dims)
Standard deviation in each dimension
- tarray, shape (n_steps,), optional (default: step indices)
Time of each step
- labelstr, optional (default: None)
Label that will appear in the legend for this trajectory
- axeslist
Matplotlib axes on which the trajectory should be plotted in each dimension.
- std_factorstuple, optional (default: (1, 2, 3))
Multiples of the standard deviation that will be indicates by area around the mean.
- fill_betweenbool, optional (default: True)
Fill area around mean. Multiples of standard deviation will be indicated by dashed lines otherwise.
- subplot_shapetuple
Number of rows and number of columns.
- transposebool, optional (default: False)
Fill first column first, then second column and so on. Typically, matplotlib fills rows before columns.
- axis_titleslist of str, optional (default: [‘Dimension #0’, …])
Title for each dimension of the plot.
- **kwargsdict, optional
Additional arguments for the plot function.
- Returns:
- axeslist of matplotlib axis
Matplotlib axes