|
|
Home » U++ Library support » Draw, Display, Images, Bitmaps, Icons » Interfacing with Matplot++ and SVG display (General questions about displaying graphs)
Interfacing with Matplot++ and SVG display [message #60362] |
Sat, 23 December 2023 10:14 |
upbolo
Messages: 8 Registered: December 2023
|
Promising Member |
|
|
Dear all,
These are my very first questions regarding any u++ related things so it is entirely possible I post them at wrong place so I apologies for that. I just started learning u++ by looking at the examples and reading the material on the website. So far I like it and coming from a littler Qt and wxwidgets this may be an easier ride as far as I can tell so far. One of the reasons I chose u++ is because it is platform development. My code has to run on windows 11, linux and Mac OS as well without the hassle of finding the right libraries. The other one is the TheIDE which seems very reasonable at the moment and compiling the examples is super easy on my m2 Mac (This is really nice so far).
One thing I would like to do is scientific plotting of data. So far I used gnuplot and matplot++ in plain STL cpp and my first question regards this. I generated an SVG plot with my plain STL c++ script using matplot++ and then I opened with Inkscape on my m2 Mac and the graph is displayed correctly. After that I compiled the SVGview example with the TheIDE and I tried to display the graph. Everything was displayed apart from the points in the plot. The axes and the title were all correctly displayed but the points were missing. My question is this. Is it possible to display graphs created by matplot++ in u++ especially SVG? I also had a sneak peak of the example FnGraph which ultimately is a solution for me but it may make development faster using an already existing plotting lib.
A non-plotting related question of mine is about where the executable is saved when compiling the examples. It does not save it into the example's folder. How do I tell theIDE where to compile the code?
Also is it possible to use already written plane cpp code which uses the STL? More specifically if I have code which uses STL vector of strings or doubles would I need a class or function which converts these to u++ vector of strings and doubles? I have loads of cpp code written using plane STL cpp and would not like to recode those.
Thanks!
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Re: Interfacing with Matplot++ and SVG display [message #60391 is a reply to message #60388] |
Wed, 27 December 2023 18:27 |
|
koldo
Messages: 3358 Registered: August 2008
|
Senior Veteran |
|
|
Thank you Upbolo
Unfortunately, the stable version of Eigen, 3.4, is 2.5 years old, and since then until now important features have been added.
In addition, I don't have a computer of your type at my disposal for testing.
I could experiment with changes, but I'd be exhausting your patience by beating around the bush. I don't feel like consulting the Eigen Forum either, because I don't have the equipment to do a simple error test to be able to show them.
Best regards
Iñaki
[Updated on: Wed, 27 December 2023 18:31] Report message to a moderator
|
|
|
|
Goto Forum:
Current Time: Sat May 04 13:31:37 CEST 2024
Total time taken to generate the page: 0.02820 seconds
|
|
|