plot1D()#
- PODBasis.plot1D(x=None, num_vectors=None, ax=None, **kwargs)#
Plot the basis vectors over a one-dimensional domain.
- Parameters:
- x(n,) ndarray or None
One-dimensional spatial domain over which to plot the vectors. Defaults to [0, 1] with n points.
- num_vectorsint or None
Number of basis vectors to plot. If
None
(default), plot all basis vectors.- axplt.Axes or None
Matplotlib Axes to plot on. If
None
(default), a new figure is created.- kwargsdict
Other keyword arguments to pass to
plt.plot()
.
- Returns:
- axplt.Axes
Matplotlib Axes for the plot.