@@ -234,6 +234,9 @@ def _input_validation(self, data, treatment_time):
234
234
def plot (self , counterfactual_label = "Counterfactual" , round_to = None , ** kwargs ):
235
235
"""
236
236
Plot the results
237
+
238
+ :param round_to:
239
+ Number of decimals used to round results. Defaults to 2. Use "none" to return raw numbers.
237
240
"""
238
241
fig , ax = plt .subplots (3 , 1 , sharex = True , figsize = (7 , 8 ))
239
242
@@ -419,7 +422,11 @@ class SyntheticControl(PrePostFit):
419
422
expt_type = "Synthetic Control"
420
423
421
424
def plot (self , plot_predictors = False , ** kwargs ):
422
- """Plot the results"""
425
+ """Plot the results
426
+
427
+ :param round_to:
428
+ Number of decimals used to round results. Defaults to 2. Use "none" to return raw numbers.
429
+ """
423
430
fig , ax = super ().plot (counterfactual_label = "Synthetic control" , ** kwargs )
424
431
if plot_predictors :
425
432
# plot control units as well
@@ -585,7 +592,9 @@ def _input_validation(self):
585
592
586
593
def plot (self , round_to = None ):
587
594
"""Plot the results.
588
- Creating the combined mean + HDI legend entries is a bit involved.
595
+
596
+ :param round_to:
597
+ Number of decimals used to round results. Defaults to 2. Use "none" to return raw numbers.
589
598
"""
590
599
fig , ax = plt .subplots ()
591
600
@@ -902,6 +911,9 @@ def _is_treated(self, x):
902
911
def plot (self , round_to = None ):
903
912
"""
904
913
Plot the results
914
+
915
+ :param round_to:
916
+ Number of decimals used to round results. Defaults to 2. Use "none" to return raw numbers.
905
917
"""
906
918
fig , ax = plt .subplots ()
907
919
# Plot raw data
@@ -1116,6 +1128,9 @@ def _is_treated(self, x):
1116
1128
def plot (self , round_to = None ):
1117
1129
"""
1118
1130
Plot the results
1131
+
1132
+ :param round_to:
1133
+ Number of decimals used to round results. Defaults to 2. Use "none" to return raw numbers.
1119
1134
"""
1120
1135
fig , ax = plt .subplots ()
1121
1136
# Plot raw data
@@ -1305,7 +1320,11 @@ def _input_validation(self) -> None:
1305
1320
)
1306
1321
1307
1322
def plot (self , round_to = None ):
1308
- """Plot the results"""
1323
+ """Plot the results
1324
+
1325
+ :param round_to:
1326
+ Number of decimals used to round results. Defaults to 2. Use "none" to return raw numbers.
1327
+ """
1309
1328
fig , ax = plt .subplots (
1310
1329
2 , 1 , figsize = (7 , 9 ), gridspec_kw = {"height_ratios" : [3 , 1 ]}
1311
1330
)
0 commit comments