I compute vertical (height) spacings for an Adjuster instance adj.

Parametersuniversal_xlabelSet True if all subplots have the same xlabel.
Method __init__ Undocumented
Method spaceForTitle Returns the spacing in pixels needed to accommodate the title of the subplot at index k.
Method spaceForXlabel Returns the spacing in pixels needed to accommodate the xlabel of the subplot at index k.
Method spaceForTicks Returns the spacing in pixels needed to accommodate the x-axis ticks, including labels, of the subplot at index k.
Method scaleForHeight Returns a scaling factor that increases with figure height, starting at s0 for a very short figure.
Method top Returns the spacing in pixels needed to accommodate the top of the figure, above all subplots. Supply any figure title textObj.
Method between Returns the spacing in pixels needed to accommodate horizontal (subplot above and below) gutters between subplots.
Method bottom Returns the spacing in pixels needed to accommodate the bottom of the figure, below all subplots.
def __init__(self, adj, fHeight, universal_xlabel=False):
Undocumented
def spaceForTitle(self, k):

Returns the spacing in pixels needed to accommodate the title of the subplot at index k.

The text height is scaled up a bit.

def spaceForXlabel(self, k):

Returns the spacing in pixels needed to accommodate the xlabel of the subplot at index k.

The text height is scaled up a bit.

def spaceForTicks(self, k):

Returns the spacing in pixels needed to accommodate the x-axis ticks, including labels, of the subplot at index k.

The tick+label height is multiplied by 1.5.

def scaleForHeight(self, h0=700, s0=0.8, s1=2.5):

Returns a scaling factor that increases with figure height, starting at s0 for a very short figure.

The scaling factor doesn't increase much until height gets close to h0 where the slope attains a maximum. Then it starts increasing more slowly until it gradually maxes out at s1. Uses the tanh function.

def top(self, titleObj=None):

Returns the spacing in pixels needed to accommodate the top of the figure, above all subplots. Supply any figure title textObj.

def between(self):

Returns the spacing in pixels needed to accommodate horizontal (subplot above and below) gutters between subplots.

If there's both a title and an xlabel in the subplot above, the space for the title is scaled up to leave some whitespace between xlabel and title.

Also, for some reason, a bit more space is needed for x labels between subplots, as opposed to an x label of subplots in the bottom row.

def bottom(self):

Returns the spacing in pixels needed to accommodate the bottom of the figure, below all subplots.

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