Skip to content

Commit

Permalink
fix(accel_brake_map_calibrator): fix view_statistics script (#3793)
Browse files Browse the repository at this point in the history
Signed-off-by: tomoya.kimura <tomoya.kimura@tier4.jp>
  • Loading branch information
tkimura4 authored May 26, 2023
1 parent 6b1370b commit 49d853c
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,15 @@ def lowpass_filter_scipy(x, sample_rate, fp, fs, g_pass, g_stop):

@staticmethod
def create_2d_map(
x, y, data, color_factor, x_index_list, x_thresh, y_index_list, y_thresh, calibration_method
x,
y,
data,
color_factor,
x_index_list,
x_thresh,
y_index_list,
y_thresh,
calibration_method="four_cell",
):
if x.shape != y.shape or y.shape != data.shape:
print("Error: the shape of x, y, data must be same")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,7 @@ def __init__(self, total_height, total_width, plot=True):
plt.subplots_adjust(left=0.04, right=0.98, bottom=0.05, top=0.95, wspace=0.1, hspace=0.4)

def subplot(self, plot_num):
subplot_str = str(self.total_height) + str(self.total_width) + str(plot_num)
fig = plt.subplot(subplot_str)
fig = plt.subplot(self.total_height, self.total_width, plot_num)
return fig

def subplot_more(self, plot_num):
Expand Down

0 comments on commit 49d853c

Please sign in to comment.