Lines Matching refs:options

6 ##There is a wide range of options including subdivision, subsubdivions
127 self.options.border_th = self.unittouu(str(self.options.border_th) + 'px')
128 self.options.dx = self.unittouu(str(self.options.dx) + 'px')
129 self.options.x_divs_th = self.unittouu(str(self.options.x_divs_th) + 'px')
130 self.options.x_subdivs_th = self.unittouu(str(self.options.x_subdivs_th) + 'px')
131 self.options.x_subsubdivs_th = self.unittouu(str(self.options.x_subsubdivs_th) + 'px')
132 self.options.dy = self.unittouu(str(self.options.dy) + 'px')
133 self.options.y_divs_th = self.unittouu(str(self.options.y_divs_th) + 'px')
134 self.options.y_subdivs_th = self.unittouu(str(self.options.y_subdivs_th) + 'px')
135 self.options.y_subsubdivs_th = self.unittouu(str(self.options.y_subsubdivs_th) + 'px')
138 ymax = self.options.dy * self.options.y_divs
139 xmax = self.options.dx * self.options.x_divs
147 str( self.options.x_divs )+':Y'+str( self.options.y_divs ),
160 if self.options.x_subdivs > 1:#if there are any minor x gridlines
165 if self.options.x_subsubdivs > 1:#if there are any minor minor x gridlines
170 if self.options.y_subdivs > 1:#if there are any minor y gridlines
175 if self.options.y_subsubdivs > 1:#if there are any minor minor x gridlines
180 draw_SVG_rect(0, 0, xmax, ymax, self.options.border_th,
184 sd = self.options.x_subdivs #sub divs per div
185 ssd = self.options.x_subsubdivs #subsubdivs per subdiv
187 for i in range(0, self.options.x_divs): #Major x divisons
189 draw_SVG_line(self.options.dx*i, 0,
190 self.options.dx*i,ymax,
191 self.options.x_divs_th,
194 if self.options.x_log: #log x subdivs
197 draw_SVG_line(self.options.dx*(i+log(j, sd)), 0,
198 self.options.dx*(i+log(j, sd)), ymax,
199 self.options.x_subdivs_th,
203 if (j <= self.options.x_half_freq) or (k%2 == 0):#only draw half the subsubdivs past the half-freq point
204 if (ssd%2 > 0) and (j > self.options.y_half_freq): #half frequency won't work with odd numbers of subsubdivs,
208 draw_SVG_line(self.options.dx*(i+log(j+k/float(ssd2),sd )), 0,
209 self.options.dx*(i+log(j+k/float(ssd2),sd )), ymax,
210 self.options.x_subsubdivs_th,'SubminorXDiv'+str(i)+':'+str(j)+':'+str(k), mminglx)
215 draw_SVG_line(self.options.dx*(i+j/float(sd)), 0,
216 self.options.dx*(i+j/float(sd)), ymax,
217 self.options.x_subdivs_th,
221 draw_SVG_line(self.options.dx*(i+(j*ssd+k)/((float(sd)*ssd))) , 0,
222 self.options.dx*(i+(j*ssd+k)/((float(sd)*ssd))) , ymax,
223 self.options.x_subsubdivs_th,
227 sd = self.options.y_subdivs #sub divs per div
228 ssd = self.options.y_subsubdivs #subsubdivs per subdiv
230 for i in range(0, self.options.y_divs): #Major y divisons
232 draw_SVG_line(0, self.options.dy*i,
233 xmax, self.options.dy*i,
234 self.options.y_divs_th,
237 if self.options.y_log: #log y subdivs
240 draw_SVG_line(0, self.options.dy*(i+1-log(j,sd)),
241 xmax, self.options.dy*(i+1-log(j,sd)),
242 self.options.y_subdivs_th,
246 if (j <= self.options.y_half_freq) or (k%2 == 0):#only draw half the subsubdivs past the half-freq point
247 if (ssd%2 > 0) and (j > self.options.y_half_freq): #half frequency won't work with odd numbers of subsubdivs,
251 draw_SVG_line(0, self.options.dx*(i+1-log(j+k/float(ssd2),sd )),
252 xmax, self.options.dx*(i+1-log(j+k/float(ssd2),sd )),
253 self.options.y_subsubdivs_th,
256 for j in range (0, self.options.y_subdivs):
258 draw_SVG_line(0, self.options.dy*(i+j/float(sd)),
259 xmax, self.options.dy*(i+j/float(sd)),
260 self.options.y_subdivs_th,
264 draw_SVG_line(0, self.options.dy*(i+(j*ssd+k)/((float(sd)*ssd))),
265 xmax, self.options.dy*(i+(j*ssd+k)/((float(sd)*ssd))),
266 self.options.y_subsubdivs_th,