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

Skip to content

Commit cce3ef4

Browse files
authored
Merge pull request #13697 from anntzer/pyplot_scales
Delete pyplot_scales example.
2 parents b9bb208 + 8150727 commit cce3ef4

File tree

2 files changed

+3
-82
lines changed

2 files changed

+3
-82
lines changed

examples/pyplots/pyplot_scales.py

Lines changed: 0 additions & 82 deletions
This file was deleted.

examples/scales/scales.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88
The last two examples are examples of using the ``'function'`` scale by
99
supplying forward and inverse functions for the scale transformation.
1010
"""
11+
1112
import numpy as np
1213
import matplotlib.pyplot as plt
1314
from matplotlib.ticker import NullFormatter, FixedLocator
@@ -54,6 +55,8 @@
5455
ax.set_yscale('logit')
5556
ax.set_title('logit')
5657
ax.grid(True)
58+
# Format the minor tick labels of the y-axis into empty strings with
59+
# `NullFormatter`, to avoid cumbering the axis with too many labels.
5760
ax.yaxis.set_minor_formatter(NullFormatter())
5861

5962

0 commit comments

Comments
 (0)