Registry / data / windrose

windrose

JSON →
library1.10.0pypypi✓ verified 34d ago

Windrose is a Python library using Matplotlib and Numpy to manage wind data and draw windrose (polar rose) plots. It provides tools for wind direction and speed frequency visualization, with a simple interface for binned speed roses. Current version 1.10.0 requires Python >=3.10. Release cadence is intermittent, with occasional patches.

dataobservability
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

Internal module path changed; direct package-level import is correct for v1.10.0

from windrose import WindroseAxes

Function renamed in v1.6+; wr_plot was deprecated

from windrose import plot_windrose

Class for wind data processing and plotting

from windrose import Windrose

Basic windrose bar plot with random wind data. Use 'from_ax()' to attach the axes to a figure.

import numpy as np import matplotlib.pyplot as plt from windrose import WindroseAxes # Generate synthetic wind data ws = np.random.weibull(2, 100) * 10 # wind speed wd = np.random.uniform(0, 360, 100) # wind direction # Create windrose plot ax = WindroseAxes.from_ax() ax.bar(wd, ws, normed=True, opening=0.8, edgecolor='white') ax.set_legend() plt.show()
Debug
Known footguns
deprecatedImporting from submodule 'windrose.windrose' is deprecated; directly import from 'windrose'.
breakingIn version 1.6, the function 'wr_plot' was renamed to 'plot_windrose' and the old name removed.
gotchaWindroseAxes.bar() modifies the axes limits internally; calling plt.tight_layout() may distort the plot.
Upgrade
Version history

Breaking-change detection hasn't run for this library yet.

Audit
Security & dependencies

CVE tracking and dependency tree are planned for a later release.

Agent activity
15 hits · last 30 days
bingbot
4
gptbot
3
ahrefsbot
3
claudebot
3
amazonbot
1
Resources