Skip to content

Commit

Permalink
Fix issue where sectors showed a straight line instead of a curved
Browse files Browse the repository at this point in the history
  • Loading branch information
jkittner committed Apr 21, 2024
1 parent ad285d0 commit 893c8c7
Show file tree
Hide file tree
Showing 10 changed files with 9 additions and 0 deletions.
5 changes: 5 additions & 0 deletions CHANGELOG.md
Expand Up @@ -5,6 +5,11 @@
All notable changes to this code base will be documented in this file,
in every released version.

### Version 1.x.x (unreleased)

## What's Changed
* Fix issue where sometimes the plot sectors showed a straight line instead of a curved one (#137)

### Version 1.7.0

## What's Changed
Expand Down
Binary file modified tests/output/df/test_bar.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified tests/output/df/test_box.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified tests/output/func/test_wrbox.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified tests/output/oo/test_windrose_stacked_histogram_normed.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified tests/output/test_bar_from_factory.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
4 changes: 4 additions & 0 deletions windrose/windrose.py
Expand Up @@ -642,6 +642,8 @@ def bar(self, direction, var, **kwargs):
zorder=zorder,
**kwargs,
)
# needed so the the line of the rectangle becomes curved
patch.get_path()._interpolation_steps = 100
self.add_patch(patch)
if j == 0:
self.patches_list.append(patch)
Expand Down Expand Up @@ -718,6 +720,8 @@ def box(self, direction, var, **kwargs):
zorder=zorder,
**kwargs,
)
# needed so the the line of the rectangle becomes curved
patch.get_path()._interpolation_steps = 100
self.add_patch(patch)
if j == 0:
self.patches_list.append(patch)
Expand Down

0 comments on commit 893c8c7

Please sign in to comment.