14 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):
15 figure_number = starting_figure_no
16 col_index = starting_col_index
17 row_index = starting_row_index
19 file_path = os.getcwd() +
"/../test_data/" 22 bspline = np.genfromtxt(file_path+
'bspline_1d.txt', delimiter=
None, dtype=(float))
23 bs_t = np.genfromtxt(file_path+
'bs_time_1d.txt', delimiter=
'\n', dtype=(float))
26 fig = plt.figure(figure_number)
27 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))
28 fig.canvas.set_window_title(
'bspline_pos_vel_acc')
30 ax1 = plt.subplot(3, 1, i+1)
31 plt.plot(bs_t, bspline[:,i],
"b-")
33 plt.xlabel(
'time (sec)')
36 if plot_configuration == PLOT_HORIZONTALLY:
38 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)