Sample rose plot
Below is the source code that produces the above chart. ../demos/roseplottest.py
from pychart import * theme.use_color = 1 data1 = [ 0.27027027, 0.74324324, 0. , 0.34459459 ,0.47297297 ,0.06756757, 0.90540541 ,1. ,0.40540541 , 0.33783784 ,0.33783784 ,0.16216216] data2 = [ 0.93333333, 0.46666667 ,0.26666667 , 0.60666667 ,0.6 ,0.73333333, 0.22666667, 0.72 ,0.13333333 , 0.46666667 ,1. ,0.29333333] data = [('/7Model', data1), ('/7Station', data2)] ar = area.T(legend=legend.T(loc=(100,-5), right_fudge=0, left_fudge=3)) plot = rose_plot.T(data=data, sector_centred=True) ar.add_plot(plot) ar.draw()
This class supports the following attributes:
Specifies the data points. See Section 5
The column, within "data", from which the data values are retrieved.
The distance between the directions and the outermost circle. Defaults fine for most cases
The fill style of each item. The length of the list should be equal to the length of the data.
The column, within "data", from which the labels of items are retrieved.
Bool indicating whether the sectors should be centred on each sector_width(e.g. on 0)
The value is either None or a tuple. When non-None, a drop-shadow is drawn beneath the object. X-off, and y-off specifies the offset of the shadow relative to the object, and fill specifies the style of the shadow (see Section 16).