plot3d_revolution(
    cos(t), (t, 0, pi),
    # use a color map on the surface to indicate the azimuthal angle
    use_cm=True, color_func=lambda t, phi: phi,
    rendering_kw={"alpha": 0.6, "cmap": "twilight"},
    # indicates the azimuthal angle on the colorbar label
    label="$\phi$ [rad]",
    show_curve=True,
    # this dictionary will be passes to plot3d_parametric_line in
    # order to draw the initial curve
    curve_kw=dict(rendering_kw={"color": "r", "label": "cos(t)"}),
    # activate the wireframe to visualize the parameterization
    wireframe=True, wf_n1=15, wf_n2=15,
    wf_rendering_kw={"lw": 0.5, "alpha": 0.75})  # doctest: +SKIP
