Changeset 1032


Ignore:
Timestamp:
04/26/06 10:53:50 (18 years ago)
Author:
mar637
Message:

Fix for Ticket #32; re-introduced mpl version dependency

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/python/asaplotbase.py

    r1027 r1032  
    449449                    oh = ds * h
    450450                    self.figure.set_figsize_inches((ow,oh))
    451                     self.figure.savefig(fname, orientation=orientation,
    452                                         papertype="a4")
    453                     # reset the figure size
     451                    from matplotlib import __version__ as mv
     452                    # hack to circument ps bug in eraly versions of mpl
     453                    if int(mv.split(".")[1]) < 87:
     454                        self.figure.savefig(fname, orientation=orientation)
     455                    else:
     456                        self.figure.savefig(fname, orientation=orientation,
     457                                            papertype="a4")
    454458                    self.figure.set_figsize_inches((w,h))
    455459                    print 'Written file %s' % (fname)
Note: See TracChangeset for help on using the changeset viewer.