I'd like to put in the same figure a normal line plot and a windrose, but I can't manage. My result is 2 figures one with the line plot and an empty plot and the second figure is the windrose, how can i put together, in the same figure. The code that I've been using is below:
fig, (ax1, ax2) = plt.subplots(1, 2)
data['velocidad_x'] = data['wind_s'] * np.sin(data['wind_dir'] * pi / 180.0)
data['velocidad_y'] = data['wind_s'] * np.cos(data['wind_dir'] * pi / 180.0)
x0, x1 = ax1.get_xlim()
y0, y1 = ax1.get_ylim()
ax1.set_aspect('equal')
_ = data.plot(kind='scatter', x='velocidad_x', y='velocidad_y', alpha=0.35, ax=ax)
ax1=WindroseAxes.from_ax()
ax1.bar(data['wind_dir'], data['wind_s'], normed=True, opening=0.8, edgecolor='white')
ax2.plot(data['wind_dir'].resample('1min').mean())
plt.title('xxxxx',fontsize=17)
ax1.set_legend()
ax1.legend(title="Wind speed (m/s)")
fig.tight_layout()
plt.gcf().set_size_inches(8,6)