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

Commitc67da3a

Browse files
committed
move code around in grid.py
1 parent234e6ec commitc67da3a

File tree

1 file changed

+12
-12
lines changed

1 file changed

+12
-12
lines changed

‎control/grid.py

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -141,18 +141,6 @@ def sgrid(scaling=None):
141141
returnax,fig
142142

143143

144-
# Utility function used by all grid code
145-
def_final_setup(ax,scaling=None):
146-
ax.set_xlabel('Real')
147-
ax.set_ylabel('Imaginary')
148-
ax.axhline(y=0,color='black',lw=0.25)
149-
ax.axvline(x=0,color='black',lw=0.25)
150-
151-
# Set up the scaling for the axes
152-
scaling='equal'ifscalingisNoneelsescaling
153-
plt.axis(scaling)
154-
155-
156144
# If not grid is given, at least separate stable/unstable regions
157145
defnogrid(dt=None,ax=None,scaling=None):
158146
fig=plt.gcf()
@@ -226,3 +214,15 @@ def zgrid(zetas=None, wns=None, ax=None, scaling=None):
226214

227215
_final_setup(ax,scaling=scaling)
228216
returnax,fig
217+
218+
219+
# Utility function used by all grid code
220+
def_final_setup(ax,scaling=None):
221+
ax.set_xlabel('Real')
222+
ax.set_ylabel('Imaginary')
223+
ax.axhline(y=0,color='black',lw=0.25)
224+
ax.axvline(x=0,color='black',lw=0.25)
225+
226+
# Set up the scaling for the axes
227+
scaling='equal'ifscalingisNoneelsescaling
228+
plt.axis(scaling)

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp