trackc.tenon#
- class trackc.tenon(figsize=(7, 1))[source]#
Make a virtual-figure, based on virtual-figure, users can add Axes to the top or bottom of the total layout. After adding Axes, the user can use the
axsmethod to select an axes from the added axes list. The order of the axes is top-to-bottom of the position in the total layout.Just like Lego blocks, you can add new blocks above (top) or below (bottom)
Example
>>> import trackc as tc >>> ten = trackc.tenon(figsize=(6,1)) >>> ten.add(pos='bottom', height=1, hspace=0.1) >>> ten.add(pos='top', height=1, hspace=0.1) >>> ten.axs(0).plot([1,2,3]) >>> ten.axs(1).plot([1,1]) >>> tc.savefig('test.pdf')
Methods
__init__([figsize])add([pos, height, hspace])Add a Axes to the total layout.
axs(index)Get one Axes from the total layout.
show()Attributes
axfigmortises