Lines Matching defs:width

90 # format a number to a strict character width using SI prefixes
272 def __init__(self, width, height, *,
280 self.width = 2*width if braille else width
285 self.xlim = xlim or (0, width)
292 self.grid = [('',False)]*(self.width*self.height)
298 x = int(self.width * (
302 x = int(self.width * (
325 if x >= 0 and x < self.width and y >= 0 and y < self.height:
326 self.grid[x + y*self.width] = (color, char)
343 if x1 >= 0 and x1 < self.width and y1 >= 0 and y1 < self.height:
344 self.grid[x1 + y1*self.width] = (color, char)
361 if x2 >= 0 and x2 < self.width and y2 >= 0 and y2 < self.height:
362 self.grid[x2 + y2*self.width] = (color, char)
396 for x in range(self.width//xscale):
404 + (y*yscale+(i//xscale))*self.width]
434 elif x == self.width//xscale-1 and y == 0:
565 def __init__(self, subplot, width=1.0, height=1.0):
566 self.xweights = [width]
575 def width(self):
792 def scale(self, width, height):
793 self.xweights = [s*width for s in self.xweights]
797 def fromargs(cls, width=1.0, height=1.0, *,
804 width=subargs.pop('width',
805 0.5 if dir in ['right', 'left'] else width),
811 grid.scale(width, height)
827 width=None,
1015 if width is None:
1017 elif width:
1018 width_ = width
1079 # tweak dimensions to allow all plots to have a minimum width,
1148 # find actual width/height
1171 s.width = subwidth
1223 for x_ in range(grid.width):
1240 s.title[subrow].center(s.width)))
1244 s.width, ''))
1293 s.width - (2*((5 if s.x2 else 4)+len(s.xunits))
1307 s.width, ''))
1311 s.xlabel[subrow-s.ymargin[1]].center(s.width)))
1450 '-W', '--width',
1454 help="Width in columns. 0 uses the terminal width. Defaults to "
1535 if '--width' in a.option_strings).type = float