X Tutup
Skip to content

Change in the result of test_markevery_linear_scales_zoomed #6621

@anntzer

Description

@anntzer

The image plotted in classic style by test_axes.test_markevery_linear_scales_zoomed changed at 8356fc2. Self-contained example:

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


def test_markevery_linear_scales_zoomed():
    cases = [None,
             8,
             (30, 8),
             [16, 24, 30], [0, -1],
             slice(100, 200, 3),
             0.1, 0.3, 1.5,
             (0.0, 0.1), (0.45, 0.1)]

    cols = 3
    gs = matplotlib.gridspec.GridSpec(len(cases) // cols + 1, cols)

    delta = 0.11
    x = np.linspace(0, 10 - 2 * delta, 200) + delta
    y = np.sin(x) + 1.0 + delta

    for i, case in enumerate(cases):
        row = (i // cols)
        col = i % cols
        plt.subplot(gs[row, col])
        plt.title('markevery=%s' % str(case))
        plt.plot(x, y, 'o', ls='-', ms=4,  markevery=case)
        plt.xlim((6, 6.7))
        plt.ylim((1.1, 1.7))


matplotlib.style.use("classic")
test_markevery_linear_scales_zoomed()
plt.show()

As of 8356fc2:
bad
As of its only parent, 077c72e:
good

Not sure why this was not caught by Travis.
numpy 1.11.0, Arch Linux.

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