Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 21a8085

Browse files
committed
rename parameter in the setter
1 parent 6025b0d commit 21a8085

1 file changed

Lines changed: 5 additions & 5 deletions

File tree

lib/mpl_toolkits/mplot3d/axes3d.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -961,22 +961,22 @@ def view_init(self, elev=None, azim=None):
961961
else:
962962
self.azim = azim
963963

964-
def set_proj_type(self, proj):
964+
def set_proj_type(self, proj_type):
965965
"""
966966
Set the projection type.
967967
968968
Parameters
969969
----------
970-
proj : str
970+
proj_type : str
971971
Type of projection, accepts 'persp' and 'ortho'.
972972
973973
"""
974-
if proj == 'persp':
974+
if proj_type == 'persp':
975975
self._projection = proj3d.persp_transformation
976-
elif proj == 'ortho':
976+
elif proj_type == 'ortho':
977977
self._projection = proj3d.ortho_transformation
978978
else:
979-
raise ValueError("unrecognized projection: %s" % proj)
979+
raise ValueError("unrecognized projection: %s" % proj_type)
980980

981981
def get_proj(self):
982982
"""

0 commit comments

Comments
 (0)