Skip to content

Commit 4285454

Browse files
committed
small documentation updates (+ ruff configuration)
1 parent ae41977 commit 4285454

File tree

3 files changed

+13
-7
lines changed

3 files changed

+13
-7
lines changed

control/ctrlplot.py

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -258,7 +258,7 @@ def pole_zero_subplots(
258258
Parameters
259259
----------
260260
nrows, ncols : int
261-
Number of rows and columns
261+
Number of rows and columns.
262262
grid : True, False, or 'empty', optional
263263
Grid style to use. Can also be a list, in which case each subplot
264264
will have a different style (columns then rows).
@@ -326,7 +326,7 @@ def reset_rcParams():
326326
def _process_ax_keyword(
327327
axs, shape=(1, 1), rcParams=None, squeeze=False, clear_text=False,
328328
create_axes=True):
329-
"""Utility function to process ax keyword to plotting commands.
329+
"""Process ax keyword to plotting commands.
330330
331331
This function processes the `ax` keyword to plotting commands. If no
332332
ax keyword is passed, the current figure is checked to see if it has
@@ -584,16 +584,16 @@ def _add_arrows_to_line2D(
584584
"""
585585
Add arrows to a matplotlib.lines.Line2D at selected locations.
586586
587-
Parameters:
588-
-----------
587+
Parameters
588+
----------
589589
axes: Axes object as returned by axes command (or gca)
590590
line: Line2D object as returned by plot command
591591
arrow_locs: list of locations where to insert arrows, % of total length
592592
arrowstyle: style of the arrow
593593
arrowsize: size of the arrow
594594
595-
Returns:
596-
--------
595+
Returns
596+
-------
597597
arrows: list of arrows
598598
599599
Based on https://stackoverflow.com/questions/26911898/

doc/plotting.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -660,8 +660,8 @@ returned values from plotting routines.
660660
:toctree: generated/
661661

662662
~control.combine_time_responses
663+
~control.pole_zero_subplots
663664
~control.reset_rcParams
664-
control.ControlPlot.set_plot_title
665665

666666

667667
Response and plotting classes

pyproject.toml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,3 +56,9 @@ addopts = "-ra"
5656
filterwarnings = [
5757
"error:.*matrix subclass:PendingDeprecationWarning",
5858
]
59+
60+
[tool.ruff.lint]
61+
select = ['D', 'E', 'W', 'DOC']
62+
63+
[tool.ruff.lint.pydocstyle]
64+
convention = 'numpy'

0 commit comments

Comments
 (0)