Lines Matching refs:options
6 #There is some options including subdivision, subsubdivions and custom line width
88 self.options.dx = self.unittouu(str(self.options.dx) + 'px')
89 self.options.divs_th = self.unittouu(str(self.options.divs_th) + 'px')
90 self.options.subdivs_th = self.unittouu(str(self.options.subdivs_th) + 'px')
91 self.options.subsubdivs_th = self.unittouu(str(self.options.subsubdivs_th) + 'px')
92 self.options.border_th = self.unittouu(str(self.options.border_th) + 'px')
96 if self.options.y_divs<((self.options.x_divs+1)/2):
97 self.options.y_divs=int((self.options.x_divs+1)/2)
100 xmax = self.options.dx * (2*self.options.x_divs)
101 ymax = self.options.dx * (2*self.options.y_divs) / 0.866025
109 str( self.options.x_divs )+':Y'+str( self.options.y_divs ),
123 if self.options.subdivs > 1:#if there are any minor x gridlines
127 if self.options.subsubdivs > 1:#if there are any minor minor x gridlines
131 if self.options.subdivs > 1:#if there are any minor y gridlines
135 if self.options.subsubdivs > 1:#if there are any minor minor x gridlines
139 if self.options.subdivs > 1:#if there are any minor y gridlines
143 if self.options.subsubdivs > 1:#if there are any minor minor x gridlines
148 draw_SVG_rect(0, 0, xmax, ymax, self.options.border_th,
153 sd = self.options.subdivs
154 ssd = self.options.subsubdivs
164 for i in range(1, (2*self.options.x_divs*sd*ssd)):
167 if cpt_subsubdiv==self.options.subsubdivs:
174 if cpt_subdiv==self.options.subdivs:
181 draw_SVG_line(self.options.dx*i/sd/ssd, 0,
182 self.options.dx*i/sd/ssd,ymax,
183 self.options.subsubdivs_th,
187 draw_SVG_line(self.options.dx*i/sd/ssd, 0,
188 self.options.dx*i/sd/ssd,ymax,
189 self.options.subdivs_th,
193 draw_SVG_line(self.options.dx*i/sd/ssd, 0,
194 self.options.dx*i/sd/ssd,ymax,
195 self.options.divs_th,
201 sd = self.options.subdivs
202 ssd = self.options.subsubdivs
204 taille=self.options.dx/sd/ssd #Size of unity
205 nb_ligne=(self.options.x_divs+self.options.y_divs)*self.options.subdivs*self.options.subsubdivs #Global number of lines
206 nb_ligne_x=self.options.x_divs*self.options.subdivs*self.options.subsubdivs #Number of lines X
207 nb_ligne_y=self.options.y_divs*self.options.subdivs*self.options.subsubdivs #Number of lines Y
221 if cpt_subsubdiv==self.options.subsubdivs:
228 if cpt_subdiv==self.options.subdivs:
243 self.options.subsubdivs_th,
247 self.options.subsubdivs_th,
253 self.options.subdivs_th,
257 self.options.subdivs_th,
263 self.options.divs_th,
267 self.options.divs_th,
279 self.options.subsubdivs_th,
283 self.options.subsubdivs_th,
289 self.options.subdivs_th,
293 self.options.subdivs_th,
299 self.options.divs_th,
303 self.options.divs_th,
322 self.options.subsubdivs_th,
326 self.options.subsubdivs_th,
332 self.options.subdivs_th,
336 self.options.subdivs_th,
342 self.options.divs_th,
346 self.options.divs_th,
354 self.options.subsubdivs_th,
358 self.options.subsubdivs_th,
364 self.options.subdivs_th,
368 self.options.subdivs_th,
374 self.options.divs_th,
378 self.options.divs_th,