Skip to content

Matplotlib Deprecation Warning from traceplot #3279

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

Closed
JohnPaton opened this issue Nov 30, 2018 · 0 comments
Closed

Matplotlib Deprecation Warning from traceplot #3279

JohnPaton opened this issue Nov 30, 2018 · 0 comments

Comments

@JohnPaton
Copy link
Contributor

JohnPaton commented Nov 30, 2018

Description of your problem

pm.traceplot is causing deprecation warnings from matplotlib >= 3.0. Seems the 'ymin' keyword is being replaced. I haven't checked other plotting functions but I guess this will show up elsewhere as well.

Please provide a minimal, self-contained, and reproducible example.

import pymc3 as pm
with pm.Model() as m:
    a = pm.Normal('a', 0,1)
    trace = pm.sample(1000, tune=1000)
    
pm.traceplot(trace);
Auto-assigning NUTS sampler...
Initializing NUTS using jitter+adapt_diag...
Multiprocess sampling (4 chains in 4 jobs)
NUTS: [a]
Sampling 4 chains: 100%|██████████| 8000/8000 [00:01<00:00, 4286.79draws/s]

Please provide the full traceback.

/Users/johnpaton/.../python3.7/site-packages/matplotlib/axes/_base.py:3604: MatplotlibDeprecationWarning: 
The `ymin` argument was deprecated in Matplotlib 3.0 and will be removed in 3.2. Use `bottom` instead.
  alternative='`bottom`', obj_type='argument')

Please provide any additional information below.

Versions and main components

  • PyMC3 Version: 3.5

  • Theano Version: 1.0.3

  • Python Version: 3.7.0

  • Operating system: OSX

  • How did you install PyMC3: pip

  • Matplotlib version: 3.0.2

JohnPaton added a commit to JohnPaton/pymc3 that referenced this issue Nov 30, 2018
ColCarroll pushed a commit that referenced this issue Nov 30, 2018
* Remove use of ymin matplotlib keyword

* Documented fix of #3279 in release notes
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants