8000 Warn about incompleteness of CocoaAgg backend · matplotlib/matplotlib@c933a62 · GitHub
[go: up one dir, main page]

Skip to content

Commit c933a62

Browse files
committed
Warn about incompleteness of CocoaAgg backend
1 parent 8364f87 commit c933a62

File tree

2 files changed

+11
-1
lines changed

2 files changed

+11
-1
lines changed

doc/api/api_changes.rst

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,8 @@ For new features that were added to matplotlib, please see
1212
:ref:`whats-new`.
1313

1414

15+
.. _changes_in_1_3:
16+
1517
Changes in 1.3.x
1618
================
1719

@@ -61,6 +63,9 @@ Changes in 1.3.x
6163
- `widgets.HorizontalSpanSelector` has been removed. Use
6264
`widgets.SpanSelector` instead.
6365

66+
* The CocoaAgg backend has been deprecated, with the possibility for
67+
deletion or resurrection in a future release.
68+
6469
* The top-level functions in `matplotlib.path` that are implemented in
6570
C++ were never meant to be public. Instead, users should use the
6671
Pythonic wrappers for them in the `path.Path` and

lib/matplotlib/backends/backend_cocoaagg.py

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,12 @@
2525
from AppKit import *
2626
from PyObjCTools import NibClassBuilder, AppHelper
2727

28+
from matplotlib import cbook
29+
cbook.warn_deprecated(
30+
'1.3',
31+
message="The CocoaAgg backend is not a fully-functioning backend. "
32+
"It may be removed in matplotlib 1.4.")
33+
2834
import matplotlib
2935
from matplotlib.figure import Figure
3036
from matplotlib.backend_bases import FigureManagerBase, FigureCanvasBase
@@ -292,4 +298,3 @@ def WMEnable(name='Python'):
292298
print('SetFrontProcess', (err, psn), file=sys.stderr)
293299
return False
294300
return True
295-

0 commit comments

Comments
 (0)
0