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

Skip to content

Commit 07b4398

Browse files
rectified constructor call
1 parent 3491c72 commit 07b4398

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/matplotlib/axis.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1171,14 +1171,14 @@ def get_majorticklabels(self):
11711171
ticks = self.get_major_ticks()
11721172
labels1 = [tick.label1 for tick in ticks if tick.label1.get_visible()]
11731173
labels2 = [tick.label2 for tick in ticks if tick.label2.get_visible()]
1174-
return list('Text major ticklabel', labels1 + labels2)
1174+
return list(labels1 + labels2)
11751175

11761176
def get_minorticklabels(self):
11771177
"""Return a list of Text instances for the minor ticklabels."""
11781178
ticks = self.get_minor_ticks()
11791179
labels1 = [tick.label1 for tick in ticks if tick.label1.get_visible()]
11801180
labels2 = [tick.label2 for tick in ticks if tick.label2.get_visible()]
1181-
return list('Text minor ticklabel', labels1 + labels2)
1181+
return list(labels1 + labels2)
11821182

11831183
def get_ticklabels(self, minor=False, which=None):
11841184
"""

0 commit comments

Comments
 (0)