fix the kwargs typo, and a ref from plt to ax (#44)

This commit is contained in:
Jonathan Taylor
2025-04-02 21:50:13 -07:00
parent ab6bee22c6
commit 7f1103e140
3 changed files with 157 additions and 158 deletions

View File

@@ -655,7 +655,7 @@ ax.contour(x, y, f, levels=45);
``` ```
To fine-tune the output of the To fine-tune the output of the
`ax.contour()` function, take a `ax.contour()` function, take a
look at the help file by typing `?plt.contour`. look at the help file by typing `ax.contour?`.
The `ax.imshow()` method is similar to The `ax.imshow()` method is similar to
`ax.contour()`, except that it produces a color-coded plot `ax.contour()`, except that it produces a color-coded plot

View File

@@ -300,7 +300,7 @@ def abline(ax, b, m, *args, **kwargs):
``` ```
The addition of `*args` allows any number of The addition of `*args` allows any number of
non-named arguments to `abline`, while `*kwargs` allows any non-named arguments to `abline`, while `**kwargs` allows any
number of named arguments (such as `linewidth=3`) to `abline`. number of named arguments (such as `linewidth=3`) to `abline`.
In our function, we pass In our function, we pass
these arguments verbatim to `ax.plot` above. Readers these arguments verbatim to `ax.plot` above. Readers

File diff suppressed because one or more lines are too long