Skip to content

Commit 09676a1

Browse files
author
Steve Chaplin
committed
SC 24/11/2004
svn path=/trunk/matplotlib/; revision=712
1 parent aae7a2e commit 09676a1

File tree

4 files changed

+7
-10
lines changed

4 files changed

+7
-10
lines changed

CHANGELOG

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,15 @@
11
New entries should be added at the top
22

3+
2004-11-24 IMAGE_FORMAT: remove from agg and gtkagg backends as its no longer
4+
used - SC
5+
36
2004-11-23 Added matplotlib compatible set and get introspection. See
47
set_and_get.py
58

69
2004-11-23 applied Norbert's patched and exposed legend configuration
710
to kwargs - JDH
811

9-
2004-11-23 backend_gtk.py: added a default exception handler
12+
2004-11-23 backend_gtk.py: added a default exception handler - SC
1013

1114
2004-11-18 backend_gtk.py: change so that the backend knows about all image
1215
formats and does not need to use IMAGE_FORMAT in other backends - SC

lib/matplotlib/backends/backend_agg.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -89,8 +89,6 @@
8989
backend_version = 'v2.2'
9090
_fontd = {} # a map from fname to font instances
9191

92-
IMAGE_FORMAT = ['eps', 'bmp', 'png', 'ps', 'raw', 'rgb', 'svg']
93-
IMAGE_FORMAT_DEFAULT = 'png'
9492

9593
class RendererAgg(RendererBase):
9694
"""

lib/matplotlib/backends/backend_gtk.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,8 @@ def fn_name(): return sys._getframe(1).f_code.co_name
5353

5454

5555
# Image formats that this backend supports - for FileChooser and print_figure()
56-
IMAGE_FORMAT = ['eps', 'jpg', 'png', 'ps', 'svg'] + ['bmp', 'raw', 'rgb']
56+
IMAGE_FORMAT = ['eps', 'jpg', 'png', 'ps', 'svg'] + ['bmp'] # , 'raw', 'rgb']
57+
IMAGE_FORMAT.sort()
5758
IMAGE_FORMAT_DEFAULT = 'png'
5859

5960

@@ -1442,8 +1443,6 @@ def __init__ (self,
14421443
if path: self.path = path
14431444
else: self.path = os.getcwd() + os.sep
14441445

1445-
IMAGE_FORMAT.sort()
1446-
14471446
# create an extra widget to list supported image formats
14481447
self.set_current_folder (self.path)
14491448
self.set_current_name ('image.' + IMAGE_FORMAT_DEFAULT)

lib/matplotlib/backends/backend_gtkagg.py

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
from matplotlib.cbook import enumerate, True, False
99
from matplotlib.figure import Figure
1010

11-
from backend_agg import FigureCanvasAgg, IMAGE_FORMAT, IMAGE_FORMAT_DEFAULT
11+
from backend_agg import FigureCanvasAgg
1212
from backend_gtk import gtk, FigureManagerGTK, FigureCanvasGTK,\
1313
show, draw_if_interactive,\
1414
error_msg, NavigationToolbar, PIXELS_PER_INCH, backend_version
@@ -18,9 +18,6 @@
1818

1919
DEBUG = 0
2020

21-
# Image formats that this backend supports - for FileChooser and print_figure()
22-
IMAGE_FORMAT += ['jpg']
23-
2421

2522
def new_figure_manager(num, *args, **kwargs):
2623
"""

0 commit comments

Comments
 (0)