MCPcopy Create free account
hub / github.com/TRIQS/triqs / oploti

Function oploti

python/triqs/plot/mpl_interface.py:114–131  ·  view source on GitHub ↗

r""" Plot the imaginary part of ``obj`` via :func:`oplot` with ``mode='I'``. .. deprecated:: 3.3 Use ``oplot(obj.imag, ...)`` instead. Emits ``FutureWarning``. Parameters ---------- obj : object See :func:`oplot`. *opt_list, **opt_dict Forwarded to :

(obj, *opt_list, **opt_dict)

Source from the content-addressed store, hash-verified

112
113
114def oploti(obj, *opt_list, **opt_dict):
115 r"""
116 Plot the imaginary part of ``obj`` via :func:`oplot` with ``mode='I'``.
117
118 .. deprecated:: 3.3
119 Use ``oplot(obj.imag, ...)`` instead. Emits ``FutureWarning``.
120
121 Parameters
122 ----------
123 obj : object
124 See :func:`oplot`.
125 *opt_list, **opt_dict
126 Forwarded to :func:`oplot`. ``mode`` is overwritten with
127 ``'I'``.
128 """
129 warnings.warn("oploti is deprecated, use oplot(G.imag, ...) instead", FutureWarning)
130 opt_dict['mode'] = 'I'
131 oplot(obj, *opt_list, **opt_dict)
132
133def __axoplot_impl(top, xlabel, ylabel, legend, obj, xticks, title, *opt_list, **opt_dict):
134 warnings.warn("ax.oplot is deprecated, use oplot(obj, axes=ax) instead", FutureWarning, stacklevel=2)

Callers

nothing calls this directly

Calls 1

oplotFunction · 0.85

Tested by

no test coverage detected