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

Commitfb45c4a

Browse files
committed
Merge pull request#5161 from zblz/log-ticks
API: Changes to default log scale tick formatting
1 parentf6d5303 commitfb45c4a

File tree

6 files changed

+333
-101
lines changed

6 files changed

+333
-101
lines changed

‎lib/matplotlib/scale.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88

99
frommatplotlib.cbookimportdedent
1010
frommatplotlib.tickerimport (NullFormatter,ScalarFormatter,
11-
LogFormatterMathtext,LogitFormatter)
11+
LogFormatterSciNotation,LogitFormatter)
1212
frommatplotlib.tickerimport (NullLocator,LogLocator,AutoLocator,
1313
SymmetricalLogLocator,LogitLocator)
1414
frommatplotlib.transformsimportTransform,IdentityTransform
@@ -304,9 +304,9 @@ def set_default_locators_and_formatters(self, axis):
304304
log scaling.
305305
"""
306306
axis.set_major_locator(LogLocator(self.base))
307-
axis.set_major_formatter(LogFormatterMathtext(self.base))
307+
axis.set_major_formatter(LogFormatterSciNotation(self.base))
308308
axis.set_minor_locator(LogLocator(self.base,self.subs))
309-
axis.set_minor_formatter(NullFormatter())
309+
axis.set_minor_formatter(LogFormatterSciNotation(self.base))
310310

311311
defget_transform(self):
312312
"""
@@ -462,7 +462,7 @@ def set_default_locators_and_formatters(self, axis):
462462
symmetrical log scaling.
463463
"""
464464
axis.set_major_locator(SymmetricalLogLocator(self.get_transform()))
465-
axis.set_major_formatter(LogFormatterMathtext(self.base))
465+
axis.set_major_formatter(LogFormatterSciNotation(self.base))
466466
axis.set_minor_locator(SymmetricalLogLocator(self.get_transform(),
467467
self.subs))
468468
axis.set_minor_formatter(NullFormatter())
Binary file not shown.

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp