From 533ff212c34aa62b7c770ff62556e5bde6e4ddc1 Mon Sep 17 00:00:00 2001 From: Manos Katsomallos Date: Wed, 13 Oct 2021 16:35:35 +0200 Subject: [PATCH] sel-cmp: Visual corrections --- code/expt/copenhagen-sel.py | 37 ++++++++++++++++++------------------- code/expt/hue-sel.py | 37 ++++++++++++++++++------------------- code/expt/t-drive-sel.py | 36 ++++++++++++++++++------------------ 3 files changed, 54 insertions(+), 56 deletions(-) diff --git a/code/expt/copenhagen-sel.py b/code/expt/copenhagen-sel.py index 52d6bcb..516c395 100644 --- a/code/expt/copenhagen-sel.py +++ b/code/expt/copenhagen-sel.py @@ -123,14 +123,14 @@ def main(args): label='Skip', linewidth=lmdk_lib.line_width ) - plt.bar( + plt.plot( x_i + x_offset, mae_s, - bar_width, - color='none', - linestyle='dashed', - edgecolor='#bdbdbd', - linewidth=lmdk_lib.line_width + marker='_', + markersize=lmdk_lib.marker_size + lmdk_lib.line_width, + markeredgewidth=lmdk_lib.line_width, + markeredgecolor='#bdbdbd', + linestyle='none', ) x_offset += bar_width plt.bar( @@ -140,14 +140,14 @@ def main(args): label='Uniform', linewidth=lmdk_lib.line_width ) - plt.bar( + plt.plot( x_i + x_offset, mae_u, - bar_width, - color='none', - linestyle='dashed', - edgecolor='#bdbdbd', - linewidth=lmdk_lib.line_width + marker='_', + markersize=lmdk_lib.marker_size + lmdk_lib.line_width, + markeredgewidth=lmdk_lib.line_width, + markeredgecolor='#bdbdbd', + linestyle='none', ) x_offset += bar_width plt.bar( @@ -157,16 +157,15 @@ def main(args): label='Adaptive', linewidth=lmdk_lib.line_width ) - plt.bar( + plt.plot( x_i + x_offset, mae_a, - bar_width, - color='none', - linestyle='dashed', - edgecolor='#bdbdbd', - linewidth=lmdk_lib.line_width + marker='_', + markersize=lmdk_lib.marker_size + lmdk_lib.line_width, + markeredgewidth=lmdk_lib.line_width, + markeredgecolor='#bdbdbd', + linestyle='none', ) - x_offset += bar_width path = str('../../rslt/bgt_cmp/' + d) # Plot legend diff --git a/code/expt/hue-sel.py b/code/expt/hue-sel.py index 6fddc4b..6e1ea7c 100644 --- a/code/expt/hue-sel.py +++ b/code/expt/hue-sel.py @@ -118,14 +118,14 @@ def main(args): label='Skip', linewidth=lmdk_lib.line_width ) - plt.bar( + plt.plot( x_i + x_offset, mae_s, - bar_width, - color='none', - linestyle='dashed', - edgecolor='#bdbdbd', - linewidth=lmdk_lib.line_width + marker='_', + markersize=lmdk_lib.marker_size + lmdk_lib.line_width, + markeredgewidth=lmdk_lib.line_width, + markeredgecolor='#bdbdbd', + linestyle='none', ) x_offset += bar_width plt.bar( @@ -135,14 +135,14 @@ def main(args): label='Uniform', linewidth=lmdk_lib.line_width ) - plt.bar( + plt.plot( x_i + x_offset, mae_u, - bar_width, - color='none', - linestyle='dashed', - edgecolor='#bdbdbd', - linewidth=lmdk_lib.line_width + marker='_', + markersize=lmdk_lib.marker_size + lmdk_lib.line_width, + markeredgewidth=lmdk_lib.line_width, + markeredgecolor='#bdbdbd', + linestyle='none', ) x_offset += bar_width plt.bar( @@ -152,16 +152,15 @@ def main(args): label='Adaptive', linewidth=lmdk_lib.line_width ) - plt.bar( + plt.plot( x_i + x_offset, mae_a, - bar_width, - color='none', - linestyle='dashed', - edgecolor='#bdbdbd', - linewidth=lmdk_lib.line_width + marker='_', + markersize=lmdk_lib.marker_size + lmdk_lib.line_width, + markeredgewidth=lmdk_lib.line_width, + markeredgecolor='#bdbdbd', + linestyle='none', ) - x_offset += bar_width path = str('../../rslt/bgt_cmp/' + d) # Plot legend diff --git a/code/expt/t-drive-sel.py b/code/expt/t-drive-sel.py index af6704e..89e4561 100644 --- a/code/expt/t-drive-sel.py +++ b/code/expt/t-drive-sel.py @@ -142,14 +142,14 @@ def main(args): label='Skip', linewidth=lmdk_lib.line_width ) - plt.bar( + plt.plot( x_i + x_offset, mae_s, - bar_width, - color='none', - linestyle='dashed', - edgecolor='#bdbdbd', - linewidth=lmdk_lib.line_width + marker='_', + markersize=lmdk_lib.marker_size + lmdk_lib.line_width, + markeredgewidth=lmdk_lib.line_width, + markeredgecolor='#bdbdbd', + linestyle='none', ) x_offset += bar_width plt.bar( @@ -159,14 +159,14 @@ def main(args): label='Uniform', linewidth=lmdk_lib.line_width ) - plt.bar( + plt.plot( x_i + x_offset, mae_u, - bar_width, - color='none', - linestyle='dashed', - edgecolor='#bdbdbd', - linewidth=lmdk_lib.line_width + marker='_', + markersize=lmdk_lib.marker_size + lmdk_lib.line_width, + markeredgewidth=lmdk_lib.line_width, + markeredgecolor='#bdbdbd', + linestyle='none', ) x_offset += bar_width plt.bar( @@ -176,14 +176,14 @@ def main(args): label='Adaptive', linewidth=lmdk_lib.line_width ) - plt.bar( + plt.plot( x_i + x_offset, mae_a, - bar_width, - color='none', - linestyle='dashed', - edgecolor='#bdbdbd', - linewidth=lmdk_lib.line_width + marker='_', + markersize=lmdk_lib.marker_size + lmdk_lib.line_width, + markeredgewidth=lmdk_lib.line_width, + markeredgecolor='#bdbdbd', + linestyle='none', ) x_offset += bar_width