Skip to content

Commit

Permalink
fixed plot for loop
Browse files Browse the repository at this point in the history
  • Loading branch information
pranmod01 committed Oct 27, 2024
1 parent c65383c commit dffec5a
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/nemos/basis.py
Original file line number Diff line number Diff line change
Expand Up @@ -953,11 +953,11 @@ def evaluate_on_grid(self, *n_samples: int) -> Tuple[Tuple[NDArray], NDArray]:
>>> from nemos.basis import MSplineBasis
>>> mspline_basis = MSplineBasis(n_basis_funcs=4, order=3)
>>> sample_points, basis_values = mspline_basis.evaluate_on_grid(100)
>>> p = plt.plot(sample_points, basis_values, label=f'Function {i+1}')
>>> plt.title('M-Spline Basis Functions');
>>> plt.xlabel('Domain');
>>> plt.ylabel('Basis Function Value');
>>> l = plt.legend()
>>> p = plt.plot(sample_points, basis_values)
>>> _ = plt.title('M-Spline Basis Functions')
>>> _ = plt.xlabel('Domain')
>>> _ = plt.ylabel('Basis Function Value')
>>> _ = plt.legend([f'Function {i+1}' for i in range(4)]);
"""
self._check_input_dimensionality(n_samples)

Expand Down

0 comments on commit dffec5a

Please sign in to comment.