pympc icon indicating copy to clipboard operation
pympc copied to clipboard

Error in plot_output_trajectory()

Open TobiaMarcucci opened this issue 7 years ago • 0 comments

IndexError Traceback (most recent call last) in () 7 y_min = np.array([-d]) 8 y_max = np.array([d]) ----> 9 plot_output_trajectory(C, x, h, (y_min, y_max)) 10 plt.show()

/Users/tobia/codes/pympc/pympc/plot.pyc in plot_output_trajectory(C, x, h, y_bounds) 199 if y_bounds is not None: 200 for bound in y_bounds: --> 201 bound_plot, = plt.step(t, bound[i,0]*np.ones(t.shape),'r') 202 203 # miscellaneous options

IndexError: too many indices for array

TobiaMarcucci avatar Nov 06 '18 15:11 TobiaMarcucci