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

new MatplotlibDeprecationWarning class (against master) #1597

Merged
merged 2 commits into from Dec 18, 2012

Commits on Dec 17, 2012

  1. new MatplotlibDeprecationWarning class

    In light of the fact that Python builtin DeprecationWarnings are ignored
    by default as of Python 2.7 (see link below), this class was put in to
    allow for the signaling of deprecation, but via UserWarnings which are
    not ignored by default.
    
    http://docs.python.org/dev/whatsnew/2.7.html#the-future-for-python-2-x
    
    Prior to this commit:
    
    ```
    In [1]: %pylab
    
    Welcome to pylab, a matplotlib-based Python environment [backend: agg].
    For more information, type 'help(pylab)'.
    
    In [2]: mlab.liaupunov([1,2], np.diff)
    Out[2]: 0.0
    ```
    
    After this commit:
    ```
    In [1]: %pylab
    
    Welcome to pylab, a matplotlib-based Python environment [backend: agg].
    For more information, type 'help(pylab)'.
    
    In [2]: mlab.liaupunov([1,2], np.diff)
    /home/pi/.local/lib/python2.7/site-packages/matplotlib/mlab.py:1212:
    MatplotlibDeprecationWarning: This does not belong in matplotlib and
    will be removed
      mDeprecation) # 2009/06/13
    Out[2]: 0.0
    ```
    ivanov committed Dec 17, 2012
    Configuration menu
    Copy the full SHA
    394b1aa View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    657f647 View commit details
    Browse the repository at this point in the history