I am a Junior in high school who has volunteered to make a program for NASA, in a competition called HUNCH. I will try to spare the details, because I feel that a proper description would be a lengthy one. But put simply, I am making a simulation that takes variables (etc. mass, initial velocity), to predict if a Lunar Supply Pod would survive a direct impact to the surface of the moon. What I want to do, is put a graph into the main Panda3D display, to illustrate the trajectory of the object towards the moon.
So here is the problem: Currently, I have my program set up to take inputs, and then trace the route taken by the pod-on the way to the surface, using Matplotlib. Unfortunately, it seems that there is no way to put the graph into the same window as the one that displays the simulation. It is difficult to describe, so I made a picture displaying the ideal end result. So this is my question: how can you display a graph in the main Panda3d window?
To get it into a Panda3D Texture object, you can create a Texture with the right dimensions, format and component type, and then you can call setRamImage(img, "RGB") where img is some type of byte buffer object that other imaging libraries usually have a way to obtain raw image data in.
Then you can apply the texture to a card, or something like that.