Commit 39135c77 authored by Johannes Krauß's avatar Johannes Krauß

revert changes

parent 67d86b83
Pipeline #3596 skipped
......@@ -129,24 +129,6 @@ if doc:
#############################################################################
wn("Plot all the data first", cat='slide')
#############################################################################
#Define Plot function c - alpha
def plot_cl_alpha(i, model_keys_alpha, model_keys_lift, model2):
fig = plt.figure()
ax = fig.add_subplot(111)
ax.set_xlabel(r'Alpha [$^\circ$]')
ax.set_ylabel(r'c_L [-]')
ax.set_title('%s' % ref_keys_alpha[i])
ax.plot(model2[model_keys_alpha[i]], model2[model_keys_lift[i]], 'b.', label='Model Turbine')
ax.plot(ref2[ref_keys_alpha[i]], ref2[ref_keys_lift[i]], 'r.', label='Reference Turbine')
ax.legend(loc='best')
if save: fig.savefig(plot_folder + 'cl_alpha%s.%s' % (ref_keys_alpha[i][-2:], format))
if doc:
#############################################################################
# plot
wn(gcf(), cat='figure', size=.8)
#############################################################################
####2 point statistics
if plot:
......@@ -350,24 +332,20 @@ if doc:
if plot_new:
for i in arange(len(ref_keys_alpha)):
plot_cl_alpha(i, model_keys_alpha, model_keys_lift, model2)
# fig = plt.figure()
# ax = fig.add_subplot(111)
# ax.set_xlabel(r'Alpha [$^\circ$]')
# ax.set_ylabel(r'c_L [-]')
# ax.set_title('%s' % ref_keys_alpha[i])
# ax.plot(model2[model_keys_alpha[i]], model2[model_keys_lift[i]], 'b.', label='Model Turbine')
# ax.plot(ref2[ref_keys_alpha[i]], ref2[ref_keys_lift[i]], 'r.', label='Reference Turbine')
# ax.legend(loc='best')
# if save: fig.savefig(plot_folder + 'cl_alpha%s.%s' % (ref_keys_alpha[i][-2:], format))
# if doc:
# #############################################################################
# # plot
# wn(gcf(), cat='figure', size=.8)
# #############################################################################
fig = plt.figure()
ax = fig.add_subplot(111)
ax.set_xlabel(r'Alpha [$^\circ$]')
ax.set_ylabel(r'c_L [-]')
ax.set_title('%s' % ref_keys_alpha[i])
ax.plot(model2[model_keys_alpha[i]], model2[model_keys_lift[i]], 'b.', label='Model Turbine')
ax.plot(ref2[ref_keys_alpha[i]], ref2[ref_keys_lift[i]], 'r.', label='Reference Turbine')
ax.legend(loc='best')
if save: fig.savefig(plot_folder + 'cl_alpha%s.%s' % (ref_keys_alpha[i][-2:], format))
if doc:
#############################################################################
# plot
wn(gcf(), cat='figure', size=.8)
#############################################################################
#experimental
# fig = plt.figure()
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment