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

Skip to content

Commit 069c4dc

Browse files
committed
work around bug in custom_scale_example by setting axisbelow to False
1 parent 6be8fb2 commit 069c4dc

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

examples/api/custom_scale_example.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,11 @@
55
from matplotlib import scale as mscale
66
from matplotlib import transforms as mtransforms
77
from matplotlib.ticker import Formatter, FixedLocator
8+
from matplotlib import rcParams
9+
10+
11+
# BUG: this example fails with any other setting of axisbelow
12+
rcParams['axes.axisbelow'] = False
813

914

1015
class MercatorLatitudeScale(mscale.ScaleBase):

0 commit comments

Comments
 (0)