From 0d8c9ba50f48f3c2afb571a878117eb2aa50a969 Mon Sep 17 00:00:00 2001 From: Jonathan Herman Date: Tue, 2 Apr 2013 10:36:36 -0400 Subject: Minor bug fixes from end-to-end testing. --- plot/style.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'plot') diff --git a/plot/style.py b/plot/style.py index fd1fa97..21c4e7e 100644 --- a/plot/style.py +++ b/plot/style.py @@ -7,7 +7,7 @@ class Style(namedtuple('SS', ['marker', 'line', 'color'])): class StyleMap(object): '''Maps configs (dicts) to specific line styles.''' - DEFAULT = Style('', '', 'k') + DEFAULT = Style('', '-', 'k') def __init__(self, col_list, col_values): '''Assign (some) columns in @col_list to fields in @Style to vary, and @@ -15,7 +15,8 @@ class StyleMap(object): self.value_map = {} self.field_map = {} - for field, values in self.__get_all()._asdict().iteritems(): + # TODO: undo this, switch to popping mechanism + for field, values in reversed([x for x in self.__get_all()._asdict().iteritems()]): if not col_list: break @@ -51,7 +52,6 @@ class StyleMap(object): key = [] for column, values in self.value_map.iteritems(): - # print("***%s, %s" % column, values) for v in values.keys(): sdict = dict([(column, v)]) style = self.get_style(sdict) -- cgit v1.2.2