*Can it be done without using external libraries?*

Can what be done? Plotting a graph is a mathematical problem and has nothing to do with computing, let alone C++. However if you want to display your graph in some way then there are various ways of accomplishing it. Perhaps you could explain what it is you want to display, and in what format.