I draw a colored box at to visually represent RectangleRegion instances for debugging purposes.

The boxes are unfilled rectangles with colors following the resistor color code indexed from 1, with the first attempted position being drawn in brown (#1), the second being red (#2), etc.

By default, all boxes are in a single group (ID=0) and will all be removed when the color is reset with a call to resetColor. However, you can specify different color groups with a call to newGroup and then use the returned ID as an argument to resetColor. Then only that group will have its color reset and its boxes removed. Any subsequent calls to add will be for that group until there is another call to resetColor.

Method __init__ Undocumented
Method ann2ID Undocumented
Method newGroup Undocumented
Method resetColor Undocumented
Method add Adds a debugging box to my figure at the position of the supplied RectangleRegion object rr.
def __init__(self, ax):
Undocumented
def ann2ID(self, ann):
Undocumented
def newGroup(self, ann):
Undocumented
def resetColor(self, ann):
Undocumented
def add(self, rr):

Adds a debugging box to my figure at the position of the supplied RectangleRegion object rr.

API Documentation for yampex, generated by pydoctor at 2022-11-21 15:03:54.