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

Function oplotr

python/triqs/plot/mpl_interface.py:94–111  ·  view source on GitHub ↗

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

(obj, *opt_list, **opt_dict)

Source from the content-addressed store, hash-verified

92
93
94def oplotr(obj, *opt_list, **opt_dict):
95 r"""
96 Plot the real part of ``obj`` via :func:`oplot` with ``mode='R'``.
97
98 .. deprecated:: 3.3
99 Use ``oplot(obj.real, ...)`` instead. Emits ``FutureWarning``.
100
101 Parameters
102 ----------
103 obj : object
104 See :func:`oplot`.
105 *opt_list, **opt_dict
106 Forwarded to :func:`oplot`. ``mode`` is overwritten with
107 ``'R'``.
108 """
109 warnings.warn("oplotr is deprecated, use oplot(G.real, ...) instead", FutureWarning)
110 opt_dict['mode'] = 'R'
111 oplot(obj, *opt_list, **opt_dict)
112
113
114def oploti(obj, *opt_list, **opt_dict):

Callers

nothing calls this directly

Calls 1

oplotFunction · 0.85

Tested by

no test coverage detected