Skip to content

Commit c19983b

Browse files
author
telemin
committed
add _default_scaling_key
fixes #31
1 parent 063c79d commit c19983b

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

pypop/metrics/metricset.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,7 @@ class MetricSet:
5656

5757
_default_metric_key = None
5858
_default_group_key = None
59+
_default_scaling_key = "Total Threads"
5960

6061
_key_descriptions = {
6162
"Number of Processes": "",
@@ -376,7 +377,7 @@ def plot_scaling(self, x_key="auto", y_key="Speedup", label=None, title=None):
376377
Figure containing complete scaling plot.
377378
"""
378379
if x_key == "auto":
379-
x_key = self._default_metric_key
380+
x_key = self._default_scaling_key
380381

381382
with mpl.rc_context(pypop_mpl_params):
382383
return self._plot_scaling(x_key, y_key, label, title)

0 commit comments

Comments
 (0)