Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

sgrid() and zgrid() call matplotlib.pyplot.figure() #291

Closed
@murrayrm

Description

@murrayrm

While debugging some code I noticed thatexamples/pvtol-nested.py was producing a blank figure instead of a pole-zero map that was expected. I chased this down tto the fact that thesgrid() function callsmatplotlib.pyplot.figure(). This is in contrast to all other plotting routines and the consequence is that you get a new set of axes. This causes the following code (fromexamples/pvtol-nested.py) not to work as expected:

figure(10); clf();(P, Z) = pzmap(T, Plot=True)print("Closed loop poles and zeros: ", P, Z)# Gang of Fourfigure(11); clf();gangof4(Hi*Po, Co);

Figure 10, which should have the output ofpzmap will be blank sincepzmap callsfigure() (throughsgrid) and creates a new set of axis (figure#11). Figure#11 will then get erased (away goes the pole/zero map) and be replace by the Gang of 4.

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


      [8]ページ先頭

      ©2009-2025 Movatter.jp