lcdblib.images package

Submodules

lcdblib.images.SVG module

A set of useful tools for handling SVGs in a Jupyter Notebook.

class lcdblib.images.SVG.nb_svg(svg)[source]

Bases: object

display(layer=None)[source]

Use IPython display to show a SVG file.

Specific layers can be show by specifying the name of the layer or layers separated by a ‘|’.

Parameters:layer (str, None) – Layers to display can be specified as a string separating layers names with a ‘|’. If None then it will display whatever layers were visible in the file.

Examples

>>> s = nv_svg('drawing.svg')
>>> s.display('One|Two|Three')  # assuming layers are name One, Two, Three
>>> s.display('One')
getLayers()[source]

Returns a list of layer Names.

Module contents