Added code to generate a nice latex table with insights about the datasets
This commit is contained in:
@@ -37,7 +37,7 @@ from matplotlib.container import BarContainer
|
||||
from matplotlib.ticker import FuncFormatter
|
||||
import math
|
||||
|
||||
HATCHES = ['x', '\\\\', 'O', '-', '+', 'O', '.', '*']
|
||||
HATCHES = ['x', 'o', 'O', '-', '+', 'O', '.', '*']
|
||||
|
||||
|
||||
def parse_args():
|
||||
@@ -131,8 +131,8 @@ def grouped_bar_chart(datasets, techniques, values, scope, threshold, metric_lat
|
||||
return False
|
||||
|
||||
# dynamic width for readability
|
||||
fig_w = max(8, 0.8 * len(techniques) + 3)
|
||||
fig, ax = plt.subplots(figsize=(fig_w, 5.5)) # a touch taller to make room for legend
|
||||
#fig_w = max(8, 0.8 * len(techniques) + 3)
|
||||
fig, ax = plt.subplots(figsize=(5.5, 4)) # a touch taller to make room for legend
|
||||
|
||||
n_groups = len(techniques)
|
||||
n_bars = len(datasets)
|
||||
@@ -192,7 +192,7 @@ def grouped_bar_chart(datasets, techniques, values, scope, threshold, metric_lat
|
||||
handles,
|
||||
labels,
|
||||
loc="upper center",
|
||||
bbox_to_anchor=(0.5, -0.05), # push below axes
|
||||
bbox_to_anchor=(0.5, -0.06), # push below axes
|
||||
ncol=ncols,
|
||||
frameon=True,
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user