Goulib.plot module

plotable rich object display on IPython/Jupyter notebooks

class Goulib.plot.Plot[source]

Bases: object

base class for plotable rich object display on IPython notebooks inspired from http://nbviewer.ipython.org/github/ipython/ipython/blob/3607712653c66d63e0d7f13f073bde8c0f209ba8/docs/examples/notebooks/display_protocol.ipynb

render(fmt='svg', **kwargs)[source]
save(filename, **kwargs)[source]
html(**kwargs)[source]
svg(**kwargs)[source]
png(**kwargs)[source]
plot(**kwargs)[source]

renders on IPython Notebook (alias to make usage more straightforward)

__class__

alias of builtins.type

__delattr__

Implement delattr(self, name).

__dir__()

Default dir() implementation.

__eq__

Return self==value.

__format__()

Default object formatter.

__ge__

Return self>=value.

__getattribute__

Return getattr(self, name).

__gt__

Return self>value.

__hash__

Return hash(self).

__init__

Initialize self. See help(type(self)) for accurate signature.

__init_subclass__()

This method is called when a class is subclassed.

The default implementation does nothing. It may be overridden to extend subclasses.

__le__

Return self<=value.

__lt__

Return self<value.

__ne__

Return self!=value.

__new__()

Create and return a new object. See help(type) for accurate signature.

__reduce__()

Helper for pickle.

__reduce_ex__()

Helper for pickle.

__repr__

Return repr(self).

__setattr__

Implement setattr(self, name, value).

__sizeof__()

Size of object in memory, in bytes.

__str__

Return str(self).

Goulib.plot.render(plotables, fmt='svg', **kwargs)[source]

renders several Plot objects

Goulib.plot.png(plotables, **kwargs)[source]
Goulib.plot.svg(plotables, **kwargs)[source]
Goulib.plot.plot(plotables, **kwargs)
Goulib.plot.save(plotables, filename, **kwargs)[source]