Package gmisclib :: Module g_place_label :: Class viewport
[frames] | no frames]

Class viewport

source code


Instance Methods
 
__init__(self, fracCharHt, fracCharW, xmin, xmax, ymin, ymax)
x.__init__(...) initializes x; see help(type(x)) for signature
source code
 
dataset(self, x, y) source code
 
find_y(self, x0, ttm)
Figures out a good place to put a label.
source code
 
textplace(self, x0, text) source code
 
draw_hor_line(self, xc, yc, w) source code
 
h(self) (Inherited from gmisclib.g_place_label.boxc) source code
 
shift(self, x, y) (Inherited from gmisclib.g_place_label.boxc) source code
 
w(self) (Inherited from gmisclib.g_place_label.boxc) source code
 
xc(self) (Inherited from gmisclib.g_place_label.boxc) source code
 
xmax(self) (Inherited from gmisclib.g_place_label.boxc) source code
 
xmin(self) (Inherited from gmisclib.g_place_label.boxc) source code
 
yc(self) (Inherited from gmisclib.g_place_label.boxc) source code
 
ymax(self) (Inherited from gmisclib.g_place_label.boxc) source code
 
ymin(self) (Inherited from gmisclib.g_place_label.boxc) source code

Inherited from object: __delattr__, __format__, __getattribute__, __hash__, __new__, __reduce__, __reduce_ex__, __repr__, __setattr__, __sizeof__, __str__, __subclasshook__

Properties

Inherited from object: __class__

Method Details

__init__(self, fracCharHt, fracCharW, xmin, xmax, ymin, ymax)
(Constructor)

source code 

x.__init__(...) initializes x; see help(type(x)) for signature

Overrides: object.__init__
(inherited documentation)

find_y(self, x0, ttm)

source code 

Figures out a good place to put a label. The label is at a specified tc, but can be at any vertical position. This finds a good vertical position. Returns the bottom of the block of text.