11 def create_figures(subfigure_width=480, subfigure_height=600, starting_figure_no=1, starting_col_index = 0, starting_row_index=0, plot_configuration=PLOT_HORIZONTALLY):
12 figure_number = starting_figure_no
13 col_index = starting_col_index
14 row_index = starting_row_index
16 file_path = os.getcwd() +
"/../test_data/" 19 curve_pos = np.genfromtxt(file_path+
'curve_pos.txt', delimiter=
None, dtype=(float))
20 bs_t = np.genfromtxt(file_path+
'curve_time.txt', delimiter=
'\n', dtype=(float))
23 fig = plt.figure(figure_number)
24 plt.get_current_fig_manager().window.wm_geometry(str(subfigure_width) +
"x" + str(subfigure_height) +
"+" + str(subfigure_width*col_index) +
"+" + str(subfigure_height*row_index))
25 fig.canvas.set_window_title(
'curve_pos_pos_vel_acc')
27 ax1 = plt.subplot(1, 1, i+1)
28 plt.plot(bs_t, curve_pos[:],
"b-")
30 plt.xlabel(
'time (sec)')
33 if plot_configuration == PLOT_HORIZONTALLY:
35 elif plot_configuration == PLOT_VERTICALLY:
def create_figures(subfigure_width=480, subfigure_height=600, starting_figure_no=1, starting_col_index=0, starting_row_index=0, plot_configuration=PLOT_HORIZONTALLY)