Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Matplotlib Test Causing Failures #22868

Closed
WillAyd opened this issue Sep 28, 2018 · 1 comment
Closed

Matplotlib Test Causing Failures #22868

WillAyd opened this issue Sep 28, 2018 · 1 comment
Labels
Build Library building on various platforms Testing pandas testing functions or related to the test suite

Comments

@WillAyd
Copy link
Member

WillAyd commented Sep 28, 2018

ref #22039 where it started there appear to be a lot of failures for Travis / Azure with the below test:

    def test_matplotlib_scatter_datetime64(self):
        # https://github.com/matplotlib/matplotlib/issues/11391
        df = DataFrame(np.random.RandomState(0).rand(10, 2),
                       columns=["x", "y"])
        df["time"] = date_range("2018-01-01", periods=10, freq="D")
        fig, ax = self.plt.subplots()
        ax.scatter(x="time", y="y", data=df)
        fig.canvas.draw()
        label = ax.get_xticklabels()[0]
>       assert label.get_text() == '2017-12-12'
E       AssertionError: assert '2017-12-08' == '2017-12-12'
E         - 2017-12-08
E         ?         ^^
E         + 2017-12-12
E         ?         ^^

I wasn't able to reproduce locally so may be an issue with matplotlib versioning, though it's questionable if the intention of the test above really is to ensure the first date on the X axis or if that was just an arbitrary check

@WillAyd WillAyd added Testing pandas testing functions or related to the test suite Build Library building on various platforms labels Sep 28, 2018
@TomAugspurger
Copy link
Contributor

#22790 I think.

I'll get to this in a few hours unless someone beats me to it.

@TomAugspurger TomAugspurger added this to the No action milestone Sep 28, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Build Library building on various platforms Testing pandas testing functions or related to the test suite
Projects
None yet
Development

No branches or pull requests

2 participants