You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
gh-39045: partial pep8 cleanup in plot and plot3d
just cleaning up plot3d for pep8 compliance
### 📝 Checklist
- [x] The title is concise and informative.
- [x] The description explains in detail what this PR is about.
URL: #39045
Reported by: Frédéric Chapoton
Reviewer(s): David Coudert
Arbitrary Coordinates coordinate transform (z in terms of x, y)
191
191
"""
192
192
all_vars=sage_getargspec(self.transform).args[1:]
193
-
ifset(all_vars) !=set(indep_vars+ [dep_var]):
194
-
raiseValueError('variables were specified incorrectly for this coordinate system; incorrect variables were %s'%list(set(all_vars).symmetric_difference(set(indep_vars+[dep_var]))))
193
+
A=set(all_vars)
194
+
B=set(indep_vars+ [dep_var])
195
+
ifA!=B:
196
+
raiseValueError('variables were specified incorrectly for this '
197
+
'coordinate system; incorrect variables '
198
+
'were %s'%list(A.symmetric_difference(B)))
195
199
self.dep_var=dep_var
196
200
self.indep_vars=indep_vars
197
201
@@ -790,10 +794,7 @@ def smooth_triangle(self, a, b, c, da, db, dc, color=None):
0 commit comments