Is there any way to plot a 1 variable function in 3d plot?

by user3390471   Last Updated May 15, 2018 19:23 PM

all, I'm trying to plot a 2d function with only 1 variable in 3d coordinate: y=9x-x^3....It should be just 1 curved line on xy-plane......Is there anyway to do it??? Don't ask me why, too much to explain.....Below are the codes I have so far, it works, but the direction is wrong which I don't understand why, it should curve on xy-plane, not xz-plane......Then I don't really understand how 3dplot, pgfplot help! Oh, and my package name might be wrong, if the code doesn't compile, check the package name.....Apology for the inconvenience, I typed the package on site, might spelled some wrong......Thanks!


z buffer=sort,
\addplot3 [domain = 0:3] {9*x-x^3};

Related Questions

Drawing spherical 3D plot with PGFPlots

Updated July 26, 2015 13:10 PM

Addplot3 connects the endpoints

Updated April 21, 2017 09:23 AM

Pgf surface plot - Not getting the proper plot

Updated June 26, 2016 08:09 AM

PGFPLOTS: 3d Surface plots using data file

Updated December 29, 2016 08:09 AM