JohnVolk / Rosely

Interactive wind roses diagrams made easy
BSD 3-Clause "New" or "Revised" License
16 stars 4 forks source link

I want fix the wind speed range in rose plot #5

Closed satya0210 closed 1 year ago

satya0210 commented 1 year ago

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()

plot1 plot2

JohnVolk commented 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.