File tree Expand file tree Collapse file tree 1 file changed +11
-1
lines changed Expand file tree Collapse file tree 1 file changed +11
-1
lines changed Original file line number Diff line number Diff line change @@ -47,11 +47,21 @@ def wrapped(*args, **kwargs):
47
47
forestplot = map_args (az .plot_forest )
48
48
kdeplot = map_args (az .plot_kde )
49
49
plot_posterior = map_args (az .plot_posterior )
50
- traceplot = map_args (az .plot_trace )
51
50
energyplot = map_args (az .plot_energy )
52
51
densityplot = map_args (az .plot_density )
53
52
pairplot = map_args (az .plot_pair )
54
53
54
+ # Use compact traceplot by default
55
+ @map_args
56
+ @functools .wraps (az .plot_trace )
57
+ def traceplot (* args , ** kwargs ):
58
+ try :
59
+ kwargs .setdefault ('compact' , True )
60
+ return az .plot_trace (* args , ** kwargs )
61
+ except TypeError :
62
+ kwargs .pop ('compact' )
63
+ return az .plot_trace (* args , ** kwargs )
64
+
55
65
# addition arg mapping for compare plot
56
66
@functools .wraps (az .plot_compare )
57
67
def compareplot (* args , ** kwargs ):
You can’t perform that action at this time.
0 commit comments