Changeset 1479 for trunk/python


Ignore:
Timestamp:
01/16/09 16:07:28 (16 years ago)
Author:
Malte Marquarding
Message:

fix some matplotlib deprecation warnings

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/python/asaplotbase.py

    r1425 r1479  
    413413                if fname[-3:].lower() == ".ps":
    414414                    from matplotlib import __version__ as mv
    415                     w = self.figure.figwidth.get()
    416                     h = self.figure.figheight.get()
     415                    w = self.figure.get_figwidth()
     416                    h = self.figure.get_figheight()
    417417
    418418                    if orientation is None:
     
    431431                    ow = ds * w
    432432                    oh = ds * h
    433                     self.figure.set_figsize_inches((ow, oh))
     433                    self.figure.set_size_inches((ow, oh))
    434434                    self.figure.savefig(fname, orientation=orientation,
    435435                                        papertype=papertype.lower())
    436                     self.figure.set_figsize_inches((w, h))
     436                    self.figure.set_size_inches((w, h))
    437437                    print 'Written file %s' % (fname)
    438438                else:
Note: See TracChangeset for help on using the changeset viewer.