8000 Remove the EMF backend · matplotlib/matplotlib@4109e96 · GitHub
[go: up one dir, main page]

Skip to content

Commit 4109e96

Browse files
committed
Remove the EMF backend
1 parent e955a74 commit 4109e96

File tree

3 files changed

+2
-752
lines changed

3 files changed

+2
-752
lines changed

doc/api/api_changes.rst

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,8 @@ Changes in 1.3.x
2424
- The Qt 3.x backends (`qt` and `qtagg`) have been removed in
2525
favor of the Qt 4.x backends (`qt4` and `qt4agg`).
2626

27+
- The FltkAgg and Emf backends have been removed.
28+
2729
- The `matplotlib.nxutils` module has been removed. Use the
2830
functionality on `matplotlib.path.Path.contains_point` and
2931
friends instead.

lib/matplotlib/backend_bases.py

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1920,7 +1920,6 @@ def get_width_height(self):
19201920
return int(self.figure.bbox.width), int(self.figure.bbox.height)
19211921

19221922
filetypes = {
1923-
'emf': 'Enhanced Metafile',
19241923
'eps': 'Encapsulated Postscript',
19251924
'pdf': 'Portable Document Format',
19261925
'pgf': 'LaTeX PGF Figure',
@@ -1942,11 +1941,6 @@ def get_width_height(self):
19421941
# >>> import matplotlib.tests.test_spines
19431942
# >>> list(matplotlib.tests.test_spines.test_spines_axes_positions())[0][0]()
19441943

1945-
def print_emf(self, *args, **kwargs):
1946-
from backends.backend_emf import FigureCanvasEMF # lazy import
1947-
emf = self.switch_backends(FigureCanvasEMF)
1948-
return emf.print_emf(*args, **kwargs)
1949-
19501944
def print_eps(self, *args, **kwargs):
19511945
from backends.backend_ps import FigureCanvasPS # lazy import
19521946
ps = self.switch_backends(FigureCanvasPS)

0 commit comments

Comments
 (0)
0