Skip to content

root_locus() does not properly handle ax parameter #870

Closed
@henklaak

Description

@henklaak

Minimal example:

import control
import matplotlib.pyplot as pltimport control
import matplotlib.pyplot as plt

tf1 = control.tf([1],[1,1])

fig, ax = plt.subplots(1, 2)
control.root_locus(tf1, ax=ax[0])
control.root_locus(tf1, ax=ax[1])
plt.show()

Produces:
bode1

Expected:
bode2

PR incoming :-)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions