0

If I have a graph like this in VPython: graphX = gcurve(color = color.cyan), how can I make another graph (graphY = gcurve(color = color.red)) in a different window (different set of axes)?

1 Answer 1

2

use gdisplay() to create graph window:

from visual.graph import *
graphX = gcurve(color = color.cyan)
gdisplay()
graphY = gcurve(color = color.red)
Sign up to request clarification or add additional context in comments.

1 Comment

I was actually using gdisplay(), but the reason it wasn't working for me was because I thought I had to call gdisplay before I plotted the points, not before the gcurve() was created.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.