From 7940964b29c12b558b2ed864d1c4a306357a0ee7 Mon Sep 17 00:00:00 2001 From: matssteinweg Date: Sun, 1 Dec 2019 02:05:02 +0100 Subject: [PATCH] Change width of quiver plot to display drivable area instead of arrows. --- reference_path.py | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/reference_path.py b/reference_path.py index 80378ab..1659f82 100644 --- a/reference_path.py +++ b/reference_path.py @@ -351,17 +351,17 @@ class ReferencePath: # Plot arrows indicating drivable area if display_drivable_area: plt.quiver(wp_x, wp_y, wp_ub_x - wp_x, wp_ub_y - wp_y, scale=1, - units='xy', width=0.2*self.resolution, color='#2ECC71', - headwidth=1, headlength=2) + units='xy', width=1.5*self.resolution, color='#2ECC71', + headwidth=1, headlength=0) plt.quiver(wp_x, wp_y, wp_lb_x - wp_x, wp_lb_y - wp_y, scale=1, - units='xy', width=0.2*self.resolution, color='#2ECC71', - headwidth=1, headlength=2) + units='xy', width=1.5*self.resolution, color='#2ECC71', + headwidth=1, headlength=0) if __name__ == '__main__': # Select Path | 'Race' or 'Q' - path = 'Race' + path = 'Q' # Create Map if path == 'Race':