Skip to content

COMPAT/TST Matplotlib 2.0 compatability #13662

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

Merged
merged 2 commits into from
Aug 22, 2016

Conversation

TomAugspurger
Copy link
Contributor

Just a WIP for now, I want to cleanup how I handle the errorbar changes.

Will wait for a matplotlib RC before changing the Travis matrix I suppose?

@TomAugspurger TomAugspurger added Visualization plotting Compat pandas objects compatability with Numpy or Python functions labels Jul 15, 2016
@TomAugspurger TomAugspurger added this to the 0.19.0 milestone Jul 15, 2016
@@ -613,3 +613,8 @@ Bug Fixes
- Bug in ``groupby`` with ``as_index=False`` returns all NaN's when grouping on multiple columns including a categorical one (:issue:`13204`)

- Bug where ``pd.read_gbq()`` could throw ``ImportError: No module named discovery`` as a result of a naming conflict with another python package called apiclient (:issue:`13454`)

- Compatibility with maptlolib 2.0 (:issue:`13333`)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

As changes are only for tests, there is no bugs related to mpl2. Not sure on what section the description should be...

@codecov-io
Copy link

codecov-io commented Jul 17, 2016

Current coverage is 85.27% (diff: 66.66%)

Merging #13662 into master will decrease coverage by <.01%

@@             master     #13662   diff @@
==========================================
  Files           139        139          
  Lines         50446      50452     +6   
  Methods           0          0          
  Messages          0          0          
  Branches          0          0          
==========================================
+ Hits          43018      43022     +4   
- Misses         7428       7430     +2   
  Partials          0          0          

Powered by Codecov. Last update df2d9ab...fdedc50

@TomAugspurger TomAugspurger force-pushed the mpl-2-compat branch 2 times, most recently from d4ce722 to d85767b Compare July 20, 2016 15:56
@TomAugspurger
Copy link
Contributor Author

This build tested against the mpl 2.0 beta. https://travis-ci.org/pydata/pandas/jobs/145822265#L1193 Things seem to be OK.
Changed the release note to

  • Compatibility with maptlolib 2.0. Older versions of pandas should also work with matplotlib 2.0 (:issue:13333)

Under "Other enhancements". Look good?

@@ -346,7 +355,7 @@ def _check_axes_shape(self, axes, axes_num=None, layout=None,
self.assertEqual(result, layout)

self.assert_numpy_array_equal(
np.round(visible_axes[0].figure.get_size_inches()),
visible_axes[0].figure.get_size_inches(), # why round?
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

remove the comment?

Copy link
Contributor Author

@TomAugspurger TomAugspurger Jul 20, 2016

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ahh, right will do.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

no idea

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Forgot I removed it and everything worked.

@TomAugspurger TomAugspurger changed the title [WIP] COMPAT/TST Matplotlib 2.0 compatability COMPAT/TST Matplotlib 2.0 compatability Jul 20, 2016
@jorisvandenbossche
Copy link
Member

Is this ready? (needs a rebase) Or do you want to wait until matplotlib has a rc release? (but we can also merge, and just update when there is one)

@TomAugspurger
Copy link
Contributor Author

Let me rebase quick and run one of the builds on the mpl pre-release at conda install -c conda-forge/label/rc -c conda-forge matplotlib. In theory pandas 0.18 is already compatible, it was just changes to the tests, so I'm not too worried about the test-suite being run against the RC.

@TomAugspurger TomAugspurger force-pushed the mpl-2-compat branch 3 times, most recently from 77edda7 to e0b5663 Compare August 14, 2016 18:50
@jorisvandenbossche
Copy link
Member

There is an error in the py35 build: https://travis-ci.org/pydata/pandas/jobs/152242074, but not sure this is related to this PR

@TomAugspurger TomAugspurger force-pushed the mpl-2-compat branch 3 times, most recently from 80d450f to d44753d Compare August 15, 2016 17:24
@TomAugspurger
Copy link
Contributor Author

This build was the one I made to run against the beta.

As far as I can tell the two failures (1 and 2) are unrelated, though I don't understand why they failed. Both are linting errors (and one doesn't even look like it actually linted anythnig).

@TomAugspurger TomAugspurger force-pushed the mpl-2-compat branch 5 times, most recently from d92fb17 to 285ca66 Compare August 21, 2016 14:21
@TomAugspurger
Copy link
Contributor Author

Anyone have a clue what's going on in here? The tests pass, but flake8 seems to fail with

pkg_resources.DistributionNotFound: The 'configparser' distribution was not found and is required by flake8

@jorisvandenbossche
Copy link
Member

I also saw it, I was wondering if adding conda-forge as a channel could have to do something with it? (I don't see any other changes that could cause it). You could check by removing adding the channel and only specifying the channel for the one install line of matplotlib beta.

@TomAugspurger
Copy link
Contributor Author

@jorisvandenbossche that did it 🎉 (no idea why, but oh well).

https://travis-ci.org/pydata/pandas/builds/154140072 was the one run against the MPL 2.0 beta. Good to merge?

@jorisvandenbossche jorisvandenbossche merged commit ba2df22 into pandas-dev:master Aug 22, 2016
@jorisvandenbossche
Copy link
Member

jorisvandenbossche commented Aug 22, 2016

@TomAugspurger Thanks!

Maybe it would be good to report that issue to conda-forge somewhere. There is a flake8 feedstock, so possibly something wrong there. EDIT: done -> conda-forge/flake8-feedstock#3

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Compat pandas objects compatability with Numpy or Python functions Visualization plotting
Projects
None yet
Development

Successfully merging this pull request may close these issues.

COMPAT: mpl 2.0.0
4 participants