scripts: treemap.py/codemap.py: Tweaked -L to imply -l
And added the optional --no-label to explicitly opt out. This is a bit more consistent with treemapd3.py/codemapd3.py's handling of labels, while still keeping the no-label default. It also makes it easier to temporarily hide labels when editing commands.
This commit is contained in:
@@ -619,14 +619,12 @@ def main(csv_paths, output, *,
|
||||
if not by:
|
||||
by = [k for k in fields_
|
||||
if k not in (fields or [])
|
||||
and k not in (labels or [])
|
||||
and not any(k == k_ for k_, _ in defines)]
|
||||
|
||||
# if fields not specified, guess it's anything not in by/labels/defines
|
||||
if not fields:
|
||||
fields = [k for k in fields_
|
||||
if k not in (by or [])
|
||||
and k not in (labels or [])
|
||||
and not any(k == k_ for k_, _ in defines)]
|
||||
|
||||
# then extract the requested dataset
|
||||
|
||||
Reference in New Issue
Block a user