aukedejong / lovelace-windrose-card

Home Assistant Lovelace Windrose Card
60 stars 2 forks source link

wind rose legend #36

Closed satya0210 closed 1 year ago

satya0210 commented 1 year ago

the plots have plot1 plot2 different legend

i want fix the range of the lengend

my code is here

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

aukedejong commented 1 year ago

Question for someone else's windrose library.

olivierouellet commented 1 year ago

Hi @satya0210. Go to this repository for your question : python-windrose .