X Tutup
Skip to content

Subtick labels are not disabled in classic style #7590

@QuLogic

Description

@QuLogic

Using this example:

#!/usr/bin/env python3

from distutils.version import LooseVersion

import numpy as np
import matplotlib as mpl
import matplotlib.pyplot as plt


if LooseVersion(mpl.__version__) >= LooseVersion('2.0.0'):
    plt.style.use('classic')

fig, ax = plt.subplots()
ax.semilogy([-1/2, -1], [1, 2], 'k')
ax.set_xlim(-1, 0)
ax.set_ylim(10**0, 10**1)
ax.set_title(mpl.__version__)

plt.show()

the result with 1.5.3 is:
figure_1-1 5 3
and with 2.0.0rc1:
figure_1-2 0 0rc1

The subtick labels remain visible even when using the classic style.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      X Tutup