diff --git a/Examples/example_07.py b/Examples/example_07.py index 786c76095..fe8b71d57 100644 --- a/Examples/example_07.py +++ b/Examples/example_07.py @@ -45,11 +45,12 @@ controller.tune_controller(turbine) # Plot minimum pitch schedule -plt.plot(controller.v, controller.pitch_op,label='Steady State Operation') -plt.plot(controller.v, controller.ps_min_bld_pitch, label='Minimum Pitch Schedule') -plt.legend() -plt.xlabel('Wind speed (m/s)') -plt.ylabel('Blade pitch (rad)') +fig, ax = plt.subplots(1,1) +ax.plot(controller.v, controller.pitch_op,label='Steady State Operation') +ax.plot(controller.v, controller.ps_min_bld_pitch, label='Minimum Pitch Schedule') +ax.legend() +ax.set_xlabel('Wind speed (m/s)') +ax.set_ylabel('Blade pitch (rad)') if False: plt.show()