Skip to content

RecursionError when calling get_yaxis_transform() on a Symlog-scaled axis. #11163

Closed
@themightyoarfish

Description

@themightyoarfish

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.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions