You might try OpenGL or DirectX... If you want to go for a window just for plotting...
Another way would be with something like Qt or GTK... If you want to build an appication around it...
Furthermore... If you just want the picture... You should look into the i/o of binary files and e.g the BMP format (which is the easiest one I'm aware of that's supported by generally all the graphics view programs)