Deprecation warning for finance is very unclear #7761

Closed
akkana opened this Issue Jan 7, 2017 · 1 comment

Projects

None yet

2 participants

@akkana
akkana commented Jan 7, 2017

In 2.0.0~rc2-1 (on debian testing under Python 2.7), either
from matplotlib.finance import quotes_historical_yahoo_ohlc as yahoo
or even just
import matplotlib.finance
prints the following deprecation warning:

MatplotlibDeprecationWarning: The finance module has been deprecated in mpl 2.0 and will be removed in mpl 2.2. Please use the matplotlib toolkit finance instead.

This is very unclear and I have no idea what I need to change. Googling matplotlib toolkit finance yields nothing useful. Googling finance toolkit site:matplotlib.org likewise gives nothing useful. Where is "matplotlib toolkit finance" and how is it different from "matplotlib.finance"? I can't seem to find any mention of the new module or how to use it. Please give a hint in the deprecation message so users know where to look to change their code.

@jenshnielsen
Member

I agree that it should include a link to the repository https://github.com/matplotlib/mpl_finance and that a release should be done of that package on pypi so that it is easy pip installable. I also don't think it should be described as a matplotlib toolkit since it's just a package that uses matplotlib and does not live in the mpl_toolkits namespace

@tacaswell tacaswell closed this in #7762 Jan 7, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment