8000 Simple plot spacing bug: ylabel gets wrongfully removed from plot · Issue #12428 · matplotlib/matplotlib · GitHub
[go: up one dir, main page]

Skip to content
Simple plot spacing bug: ylabel gets wrongfully removed from plot #12428
Closed
@Volker-Weissmann

Description

@Volker-Weissmann

Bug report

Bug summary

Matplotlib removes part of the plot

Code for reproduction

import matplotlib.pyplot as plt
plt.ylabel("yLabel")
x = [1,4]
n = -4 #bug occurs if n is -4, -5 -6, or 6
y = [1*10**n, 4*10**n]

plt.plot(x,y, "r+")
plt.show()

Actual outcome

-4

As you can see: The ylabel is partly missing

Expected outcome

There should be a "yLabel" written on the y-Axis.

Matplotlib version

  • Operating system: Linux (Ubuntu 18.04)
  • Matplotlib version: 2.2.2
  • Matplotlib backend (print(matplotlib.get_backend())): TkAgg
  • Python version: 3.6.6
  • Jupyter version (if applicable):
  • Other libraries:

matplotlib was installed via pip3 install matplotlib

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0