Skip to content

Commit 3829799

Browse files
committed
Support for setting the step size (mandatory) and the radialaxis_range (uncomment to specify)
1 parent 96ac530 commit 3829799

1 file changed

Lines changed: 10 additions & 0 deletions

File tree

metplotpy/plots/wind_rose/wind_rose_config.py

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,12 +43,22 @@ def __init__(self, parameters):
4343
self.show_legend = self.get_config_value('show_legend')
4444
self.angularaxis_tickvals = self.get_config_value('angularaxis_tickvals')
4545
self.angularaxis_ticktext = self.get_config_value('angularaxis_ticktext')
46+
47+
# Range of radial axes (start, end). The radial axis type is the default ('-'), in
48+
# which Plotly attempts to determine the axis type based on looking at the
49+
# data. The wind_rose.py sets this to '-' in the event of any future changes.
50+
self.radialaxis_range = self.get_config_value('radialaxis_range')
51+
self.radialaxis_step = self.get_config_value('radialaxis_step')
52+
4653
self.stat_input = self.get_config_value('stat_input')
4754
self.plot_width = self.get_config_value('plot_width')
4855
self.plot_height = self.get_config_value('plot_height')
4956
self.dump_points = self.get_config_value('dump_points')
57+
5058
# Optional setting, indicates *where* to save the dump_points_1 file
5159
# used by METviewer
5260
self.points_path = self.get_config_value('points_path')
5361
self.show_in_browser = self.get_config_value('show_in_browser')
5462

63+
64+

0 commit comments

Comments
 (0)