Changeset 2068 for trunk


Ignore:
Timestamp:
03/25/11 12:08:49 (14 years ago)
Author:
Kana Sugimoto
Message:

New Development: No

JIRA Issue: No (minior improvement)

Ready for Test: Yes

Interface Changes: No

What Interface Changed:

Test Programs: plot many panels and see legend font size is properly scaled

Put in Release Notes: No

Module(s): asapplotter, sdplot

Description: set the legend font size smaller when many panels are plotted.


File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/python/asaplotbase.py

    r2037 r2068  
    744744                    if len(lines):
    745745                        fp = FP(size=rcParams['legend.fontsize'])
    746                         fsz = fp.get_size_in_points() - len(lines)
    747                         fp.set_size(max(fsz,6))
     746                        #fsz = fp.get_size_in_points() - len(lines)
     747                        fsz = fp.get_size_in_points() - max(len(lines),self.cols)
     748                        #fp.set_size(max(fsz,6))
     749                        fp.set_size(max(fsz,8))
    748750                        sp['axes'].legend(tuple(lines), tuple(labels),
    749751                                          self.loc, prop=fp)
Note: See TracChangeset for help on using the changeset viewer.