A Toga interactive plotting facility? #2813
Replies: 1 comment 8 replies
-
Are we interested in the general concept? Sure! It sounds like an interesting use case for Toga; and I agree that science visualisation could be a really good use case for Toga. However, does this feature need to be part of Toga itself? Almost certainly not. A charting library is the sort of feature that could happily live as a third-party library, imported by those projects that need it, using the basic widgets provided by Toga. As evidence of this - we've already got toga-chart. That's a matplotlib backend, backed by Toga's canvas widget. It doesn't currently implement of the interactive features of matplotlib, but that's entirely because we haven't been focussing on that widget specifically. If someone wanted to add support for interactive charts to toga-chart, I'd gladly look at any contributions; and if supporting interactivity in charts required additional to the base functionality of Canvas, I'd be happy to consider those changes as well. |
Beta Was this translation helpful? Give feedback.
-
I am a python software developer working to astronomical data analysis software.
I recently discovered Beeware and Toga and I think they could be extremely useful for the astronomical (and, in general, scientific) community.
However what is really missing is an interactive plotting library. Interactive plots are widely used during scientific analysis and this kind of widget could give a boost to Toga usage in this context.
I think that starting from the toga.Canvas widget it could be quite easy to develop a plotting Toga module which implements an API similar to the matplotlib one but with the addiction of interactivity.
As a test I even wrote a brief script that plots a galactic spectrum and zooms into it using the mouse; just a few lines of code.
So here is the big question; are the "toga managers" interested in this idea ?
Beta Was this translation helpful? Give feedback.
All reactions