Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(accel_brake_map_calibrator): fix view_statistics script #3793

Merged
merged 1 commit into from
May 26, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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