-
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.
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.
-
Great! Thanks. |
Beta Was this translation helpful? Give feedback.
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: