Skip to content

Missing scale  #12873

Closed
Closed

Description

@Volker-Weissmann

Bug report

Bug summary

The scale on the y-axis is missing in some logarithmic plots.

Code for reproduction:

import matplotlib.pyplot as plt

x = [1, 2]
y = [3.7, 3.8]

plt.plot(x,y)
plt.yscale("log")
plt.show()

Actual outcome

abc

Expected outcome

There should be a scale on the y-axis. Without the scale, you can't tell what the value of y is.

Matplotlib version

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

Activity

  1. jklymak commented on Nov 24, 2018

    @jklymak
    Member

    Thanks for reporting this - I think its a duplicate of #8768, and is being handled by #12865, so it should be fixed soon. In the meantime, you can change the locator to AutoLocator for such a small dynamic range: https://matplotlib.org/examples/ticks_and_spines/tick-locators.html

  2. jklymak commented on Nov 24, 2018

    @jklymak
    Member

    I'm going to close, but feel free to comment at #12865 if you think your issue is different.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions