Skip to content

Commit

Permalink
Warn about incompleteness of CocoaAgg backend
Browse files Browse the repository at this point in the history
  • Loading branch information
mdboom committed May 20, 2013
1 parent 8364f87 commit c933a62
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 1 deletion.
5 changes: 5 additions & 0 deletions doc/api/api_changes.rst
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,8 @@ For new features that were added to matplotlib, please see
:ref:`whats-new`.


.. _changes_in_1_3:

Changes in 1.3.x
================

Expand Down Expand Up @@ -61,6 +63,9 @@ Changes in 1.3.x
- `widgets.HorizontalSpanSelector` has been removed. Use
`widgets.SpanSelector` instead.

* The CocoaAgg backend has been deprecated, with the possibility for
deletion or resurrection in a future release.

* The top-level functions in `matplotlib.path` that are implemented in
C++ were never meant to be public. Instead, users should use the
Pythonic wrappers for them in the `path.Path` and
Expand Down
7 changes: 6 additions & 1 deletion lib/matplotlib/backends/backend_cocoaagg.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,12 @@
from AppKit import *
from PyObjCTools import NibClassBuilder, AppHelper

from matplotlib import cbook
cbook.warn_deprecated(
'1.3',
message="The CocoaAgg backend is not a fully-functioning backend. "
"It may be removed in matplotlib 1.4.")

import matplotlib
from matplotlib.figure import Figure
from matplotlib.backend_bases import FigureManagerBase, FigureCanvasBase
Expand Down Expand Up @@ -292,4 +298,3 @@ def WMEnable(name='Python'):
print('SetFrontProcess', (err, psn), file=sys.stderr)
return False
return True

0 comments on commit c933a62

Please sign in to comment.