Hi All,
I have never done any sort of plotting on wxwidgets and I now need to add some scatter plots to my application.
I need to be able to do a live simulation on the graph so I need it to be in real-time.
Does anyone have any experience updating a live graph using some widgets?
Thanks,
Plotting scatterplots
Re: Plotting scatterplots
There are a few plotting libraries for wxWidgets:
https://wiki.wxwidgets.org/Graphics#Graphing_Functions
But i've never used any of them, so i can't make any recommendations or even say if they're suitable for your purpose.
But depending on what you need, writing something on your own shouldn't be too hard. And it would give you total control over the performance.
https://wiki.wxwidgets.org/Graphics#Graphing_Functions
But i've never used any of them, so i can't make any recommendations or even say if they're suitable for your purpose.
But depending on what you need, writing something on your own shouldn't be too hard. And it would give you total control over the performance.
Use the source, Luke!
Re: Plotting scatterplots
Thanks for getting back, I was able to get something rough working with wxCharts but I haven't gotten to the 'real-time' performance portion yet. Would be awesome if someone else has used wxCharts for something like this in the past. I'll keep the thread open for a few days and see if anyone gets back.
Also, a few things I found out after doing some research (might be useful to someone who comes across this in the future).
1) It is possible to use matplotlib with C++ but you have to do some linking with python.
2) You can actually even call matlab functions from within C++.
Unfortunately 1,2 would not be possible for my application. Perhaps this will help someone in the future.
Also, a few things I found out after doing some research (might be useful to someone who comes across this in the future).
1) It is possible to use matplotlib with C++ but you have to do some linking with python.
2) You can actually even call matlab functions from within C++.
Unfortunately 1,2 would not be possible for my application. Perhaps this will help someone in the future.
Re: Plotting scatterplots
As for wxCharts...if chosen chart type has support of updating chart data you can update it by timer or whenever it needs. From sample.