Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 6 additions & 3 deletions RLA/easy_plot/plot_util.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@
import os
import numpy as np
import pandas
from collections import defaultdict, namedtuple
import seaborn as sns
from collections import defaultdict, namedtuple
from RLA.easy_log.logger import read_json, read_csv
Expand Down Expand Up @@ -402,7 +401,7 @@ def plot_results(
# figsize = list(figsize)
# figsize[0] += 4
# figsize = tuple(figsize)
f, axarr = plt.subplots(nrows, ncols, sharex=False, squeeze=False, figsize=figsize)
f, axarr = plt.subplots(nrows, ncols, sharex=False, squeeze=False, figsize=figsize, dpi=90 * ncols)
groups = []
for results in allresults:
groups.extend(group_fn(results)[0])
Expand All @@ -414,7 +413,11 @@ def plot_results(
# if average_group:
# resample = resample or default_samples
lgd = None
for (isplit, sk) in enumerate(sorted(sk2r.keys())):
if split_by_metrics:
keys = metrics
else:
keys = sorted(sk2r.keys())
for (isplit, sk) in enumerate(keys):
g2l = {}
g2lf = {}
g2c = defaultdict(int)
Expand Down
61 changes: 20 additions & 41 deletions example/plot_res.ipynb

Large diffs are not rendered by default.

3 changes: 2 additions & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@
"pathspec",
'tensorboardX',
'pysftp',
'typing'
'typing',
'matplotlib>=3.4' # for supylabel and supxlabel
]
)
233 changes: 124 additions & 109 deletions test/test_plot.ipynb

Large diffs are not rendered by default.