Closed satya0210 closed 1 year ago
Hi, it appears that the example you gave is using code from a different Python module, for example, there is no WindroseAxes
object in this package. Also, your question is referring to matplotlib
functionality.
please see the attached images I want to compare the 2 plots but the wind speed that is shown in the legend is different ax,set_ylim is not working
here is my code
from windrose import WindroseAxes from matplotlib import pyplot as plt import matplotlib.cm as cm from numpy.random import random from numpy import arange import pandas as pd MON=pd.read_csv(r'data.csv') ws = MON["Ws"].values wd = MON["Wd"].values ax = WindroseAxes.from_ax() ax.set_ylim(0,50) ax.bar(wd, ws, normed=True, opening=0.8, edgecolor='white') ax.set_title('plot2') ax.set_legend()