from sympy import symbols, cos, sin, pi
from spb import *
t, phi = symbols('t phi')
graphics(
    surface_revolution(
        cos(t), (t, 0, pi), parallel_axis="x", axis=(1, 0),
        label="phi [rad]", rendering_kw={"colorscale": "twilight"},
        use_cm=True, color_func=lambda t, phi: phi,
        show_curve=True,
        curve_kw=dict(rendering_kw={"line": {"color": "red", "width": 8},
            "name": "cos(t)"}),
        wireframe=True, wf_n1=15, wf_n2=15,
        wf_rendering_kw={"line_width": 1}
    ),
    backend=PB
)