Lines Matching refs:options
6 ##There is a wide range of options including subdivision and labels.
124 self.options.dr = self.unittouu(str(self.options.dr) + 'px')
125 self.options.r_divs_th = self.unittouu(str(self.options.r_divs_th) + 'px')
126 self.options.r_subdivs_th = self.unittouu(str(self.options.r_subdivs_th) + 'px')
127 self.options.a_divs_th = self.unittouu(str(self.options.a_divs_th) + 'px')
128 self.options.a_subdivs_th = self.unittouu(str(self.options.a_subdivs_th) + 'px')
129 self.options.c_dot_dia = self.unittouu(str(self.options.c_dot_dia) + 'px')
130 self.options.a_label_size = self.unittouu(str(self.options.a_label_size) + 'px')
131 self.options.a_label_outset = self.unittouu(str(self.options.a_label_outset) + 'px')
138 str( self.options.r_divs )+':A'+str( self.options.a_divs ),
142 dr = self.options.dr #Distance between neighbouring circles
143 dtheta = 2 * pi / self.options.a_divs_cent #Angular change between adjacent radial lines at centre
144 rmax = self.options.r_divs * dr
147 for i in range(1, self.options.r_divs+1):
149 self.options.r_divs_th, 'none',
152 if self.options.r_log: #logarithmic subdivisions
153 for j in range (2, self.options.r_subdivs):
154 draw_SVG_circle(i*dr-(1-log(j, self.options.r_subdivs))*dr, #minor div circles
155 0, 0, self.options.r_subdivs_th, 'none',
158 for j in range (1, self.options.r_subdivs):
159 draw_SVG_circle(i*dr-j*dr/self.options.r_subdivs, #minor div circles
160 0, 0, self.options.r_subdivs_th, 'none',
163 if self.options.a_divs == self.options.a_divs_cent: #the lines can go from the centre to the edge
164 for i in range(0, self.options.a_divs):
166 self.options.a_divs_th, 'RadialGridline'+str(i), grid)
169 for i in range(0, self.options.a_divs_cent): #lines that go to the first circle
171 self.options.a_divs_th, 'RadialGridline'+str(i), grid)
173 dtheta = 2 * pi / self.options.a_divs #work out the angle change for outer lines
175 for i in range(0, self.options.a_divs): #lines that go from there to the edge
178 self.options.a_divs_th, 'RadialGridline'+str(i), grid)
180 if self.options.a_subdivs > 1: #draw angular subdivs
181 for i in range(0, self.options.a_divs): #for each major divison
182 for j in range(1, self.options.a_subdivs): #draw the subdivisions
183 angle = i*dtheta-j*dtheta/self.options.a_subdivs+pi/2.0 # the angle of the subdivion line
184 draw_SVG_line(dr*self.options.a_subdivs_cent*sin(angle),
185 dr*self.options.a_subdivs_cent*cos(angle),
187 self.options.a_subdivs_th, 'RadialMinorGridline'+str(i), grid)
189 if self.options.c_dot_dia <> 0: #if a non-zero diameter, draw the centre dot
190 draw_SVG_circle(self.options.c_dot_dia /2.0,
193 if self.options.a_labels == 'deg':
194 label_radius = rmax+self.options.a_label_outset #radius of label centres
195 label_size = self.options.a_label_size
198 for i in range(0, self.options.a_divs):#self.options.a_divs): #radial line labels
201 str(i*360/self.options.a_divs),