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

Skip to content

Commit 8150727

Browse files
committed
Delete pyplot_scales example.
It is basically the same as scales/scales.py (but in pyplot-style), but did not get updated with the addition of FuncScale. I don't think the duplication is worth it.
1 parent 34970ed commit 8150727

2 files changed

Lines changed: 3 additions & 82 deletions

File tree

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)