Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Warn about incompleteness of CocoaAgg backend
  • Loading branch information
mdboom committed May 20, 2013
commit c933a624c91c8fc6946258315ecc9ef38b68461c
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