@@ -279,10 +279,10 @@ def format_ticks(ax):
279
279
metric_sugainet = get_all_the_metrics (model_key = f'/{ folder } /sugainet_none_diffusion_filling' )
280
280
281
281
params_name_formal_name_pairs = {
282
- 'calcn_l_force_vy' : 'Vertical\n Force - Profile' ,
283
- 'calcn_l_force_vx' : 'Anterior-Posterior\n Force - Profile' ,
284
- 'calcn_l_force_vz' : 'Medial-Lateral\n Force - Profile ' ,
285
- 'calcn_l_force_vy_max' : 'Vertical\n Force - Peak ' }
282
+ 'calcn_l_force_vy' : 'Vertical\n Force— Profile' ,
283
+ 'calcn_l_force_vx' : 'Anterior-Posterior\n Force— Profile' ,
284
+ 'calcn_l_force_vz' : 'Medial-Lateral\n Force\u2014 Profile ' ,
285
+ 'calcn_l_force_vy_max' : 'Vertical\n Force\u2014 Peak ' }
286
286
params_of_interest = list (params_name_formal_name_pairs .keys ())
287
287
288
288
rc ('text' , usetex = True )
@@ -310,23 +310,23 @@ def format_ticks(ax):
310
310
311
311
# From "Comparison of different machine learning models to enhance sacral acceleration-based estimations of running stride temporal variables and peak vertical ground reaction force"
312
312
line0 , = plt .plot ([2.8 , 3.7 ], [13 , 13 ], '--' , linewidth = 2 , color = [0.0 , 0.0 , 0.0 ], alpha = 0.5 )
313
- plt .text (4.1 , 14 , 'Running MDC - Healthy [25] ' , fontdict = FONT_DICT_SMALL , color = [0.0 , 0.0 , 0.0 ], va = 'center' )
313
+ plt .text (4.1 , 14 , 'Running MDC - Healthy$^{\ 31}$ ' , fontdict = FONT_DICT_SMALL , color = [0.0 , 0.0 , 0.0 ], va = 'center' )
314
314
plt .annotate ('' , xytext = (4.05 , 14 ), xycoords = 'data' , xy = (3.75 , 13 ), arrowprops = dict (arrowstyle = "->" ))
315
315
316
316
# From "Intra-rater repeatability of gait parameters in healthy adults during self-paced treadmill-based virtual reality walking"
317
317
line1 , = plt .plot ([2.8 , 3.7 ], [10.18 , 10.18 ], '--' , linewidth = 2 , color = [0.0 , 0.0 , 0.0 ], alpha = 0.5 )
318
- plt .text (4.1 , 11.18 , 'Walking MDC - Healthy [26] ' , fontdict = FONT_DICT_SMALL , color = [0.0 , 0.0 , 0.0 ], va = 'center' )
318
+ plt .text (4.1 , 11.18 , 'Walking MDC - Healthy$^{\ 32}$ ' , fontdict = FONT_DICT_SMALL , color = [0.0 , 0.0 , 0.0 ], va = 'center' )
319
319
plt .annotate ('' , xytext = (4.05 , 11.18 ), xycoords = 'data' , xy = (3.75 , 10.18 ), arrowprops = dict (arrowstyle = "->" ))
320
320
321
321
# and "Minimal detectable change for gait variables collected during treadmill walking in individuals post-stroke"
322
322
line2 , = plt .plot ([2.8 , 3.7 ], [4.65 , 4.65 ], '--' , linewidth = 2 , color = [0.0 , 0.0 , 0.0 ], alpha = 0.5 )
323
- plt .text (4.1 , 5.65 , 'Walking MDC - Stroke [27] ' , fontdict = FONT_DICT_SMALL , color = [0.0 , 0.0 , 0.0 ], va = 'center' )
323
+ plt .text (4.1 , 5.65 , 'Walking MDC - Stroke$^{\ 33}$ ' , fontdict = FONT_DICT_SMALL , color = [0.0 , 0.0 , 0.0 ], va = 'center' )
324
324
plt .annotate ('' , xytext = (4.05 , 5.65 ), xycoords = 'data' , xy = (3.75 , 4.65 ), arrowprops = dict (arrowstyle = "->" ))
325
325
326
326
format_axis (plt .gca ())
327
327
format_ticks (plt .gca ())
328
328
plt .tight_layout (rect = [- 0.03 , 0. , 1.03 , 0.88 ])
329
- plt .legend (list (bars ), ['GaitDynamics' , 'Convolutional Neural Network [19] ' , 'Recurrent Neural Network [20] ' ],
329
+ plt .legend (list (bars ), ['GaitDynamics' , 'Convolutional Neural Network$^{\ 21}$ ' , 'Recurrent Neural Network$^{\ 22}$ ' ],
330
330
frameon = False , fontsize = FONT_SIZE_SMALL , bbox_to_anchor = (0.7 , 1.2 ), ncols = 1 )
331
331
plt .savefig (f'exports/da_grf.png' , dpi = 300 , bbox_inches = 'tight' )
332
332
plt .show ()
@@ -384,7 +384,7 @@ def format_ticks(ax_plt):
384
384
format_axis (plt .gca ())
385
385
format_ticks (ax_plt )
386
386
ax_plt .legend (list (bars ) + [line_1 ], [
387
- 'Partial-Body Kinematics with Inpainting Filling (GaitDynamics)' , 'Partial-Body Kinematics with Median Filling' , 'Full-Body Kinematics (GaitDynamics)' ],
387
+ 'Partial-Body Kinematics with Inpainting (GaitDynamics)' , 'Partial-Body Kinematics with Median Filling' , 'Full-Body Kinematics (GaitDynamics)' ],
388
388
frameon = False , fontsize = FONT_SIZE_SMALL , bbox_to_anchor = (0. , 0.88 ), loc = 'lower left' )
389
389
plt .savefig (f'exports/da_segment_filling.png' , dpi = 300 , bbox_inches = 'tight' )
390
390
plt .show ()
0 commit comments