How to plot a straight line in mathematica

    how to plot a sphere in mathematica
    how to plot a circle in mathematica
    1. How to plot a sphere in mathematica
    2. Spherical coordinates mathematica...

      Plots in 3D

      Get Started ยป

      Plot3D will plot a 3D Cartesian curve or surface:

      In[1]:=

      Plot3D[x^2 - y^2 , {x, -3, 3}, {y, -3, 3}]
      Out[1]=

      Use ParametricPlot3D to plot a 3D space curve:

      In[2]:=

      ParametricPlot3D[{Sin[u], Cos[u], u/10}, {u, 0, 20}]
      Out[2]=

      For plotting in spherical coordinates, use SphericalPlot3D:

      In[3]:=

      SphericalPlot3D[Sin[\[Theta]], {\[Theta], 0, Pi}, {\[Phi], 0, 2 Pi}]
      Out[3]=