Fit graph function
#1466
-
How could I implement a function that fit the graph in the current viewport? This is my playground sandbox: |
Beta Was this translation helpful? Give feedback.
Answered by
jacomyal
Sep 20, 2024
Replies: 2 comments 2 replies
-
I don't understand your question: By default, sigma is designed so that, with the default camera state Could you specify a bit more what you are trying to achieve? |
Beta Was this translation helpful? Give feedback.
2 replies
-
Great! Thanks. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
OK, it's more clear now, thanks.
In your case, if you delete the custom bounding box, sigma will go back to its default behavior, which is "fit the graph to the viewport". So you could try something like this in your code: