Closed
Description
Bug report
Bug summary
Calling get_xaxis_transform()
after set_yscale('symlog')
results in a RecursionError
. I found this bug when investigating why there's no yticks (except 0) shown when using a symlog scale.
Code for reproduction
from matplotlib import pyplot as plt
import numpy as np
f, ax = plt.subplots()
ax.plot(np.arange(100))
ax.set_yscale('symlog')
print(ax.get_yaxis_transform())
Actual outcome
RecursionError: Maximum recursion depth exceeded
Expected outcome
An object of type matplotlib.scale.SymmetricLogScaleTransform
or something like that.
Matplotlib version
- Operating system: Ubuntu 16.04.1
- Matplotlib version: 2.2.2
- Matplotlib backend (
print(matplotlib.get_backend())
): Qt5Agg - Python version: 3.6.5
Installation was done via conda default channel.