5 ms·
Matplot++ – A Plotting Tool for C++
- quantaum_dot 6y agoLooks great, a wide range of different plots.
- ponderingfish 6y agoExcited to give this a shot next week. Earlier, I had to export all my data to txt/csv and use either matlab, python, gnuplot to visualize it. It would be great to be able to do this directly within code and conditionally turn it on/off for debugging using some #ifdefs.
- dburenok11 6y agoVery very cool. What does it mean by x, y are any ranges? Do x and y have to be arrays?
- v-yadli 6y ago> Do x and y have to be arrays? Nope. Ranges are anything enumerable (can run an iterator through it by calling begin()/end() to get the boundaries), so you can do lists, arrays, generators etc.
- khiner 6y agoWow this looks incredible! I’ve been looking for a C++ plotting library suitable for real-time audio visualization but with a matplotlib-like api. This looks to fit the bill perfectly, and with great documentation. Well done, following.
- tobiasks 6y agoDoes anyone know if there is any effort going on to make gnuplot also available as a lib? Dependencies like gnuplot are nice on linux machines, but distributing it on Windows is always a little bit painful
- codetrotter 6y agoSeems difficult to do, because of the terms in the gnuplot license: > Permission to modify the software is granted, but not the right to distribute the complete modified source code. https://sourceforge.net/p/gnuplot/gnuplot-main/ci/master/tree/Copyright https://sourceforge.net/p/gnuplot/gnuplot-main/ci/master/tre...
- andreareina 6y agoYou can distribute the modifications as patches and precompiled binaries with the attendant patches, so it seems like it should be fine? Not having gone into the source I'd guess that possible problems might be the code not being factored to make it easy to be called as a library (unlike e.g. curl), or perhaps compiling gnuplot for windows might be problematic. You might be able to go pretty far by bundling a statically-linked gnuplot binary and shelling out? No experience with windows development here so I'm just speculating.
- wodenokoto 6y agoGiven the name, that is very surprising. Wikipedia has a section on this [1], and apparently it is not named after the GNU project, but after the animal. [1] https://en.wikipedia.org/wiki/Gnuplot#Distribution_terms https://en.wikipedia.org/wiki/Gnuplot#Distribution_terms
- sleavey 6y agoWow, I would have sworn it was a GNU project if someone had asked. It just seems so typical of a GNU project: free, open source, around for as long as I can remember, available on every Linux but with a dated look and feel.
- billfruit 6y agoLooks very promising... I wanted something like this for sometime for a project.. Is is a new project or has it been around for some time? Github history shows only commits from Aug 2020 onwards only..
- nxpnsv 6y agoImpressive. I would have loved this back when i made all my plots with root 2.x...
- amirmasoudabdol 6y agoThis looks really good. It’s much more intuitive than most other gnuplot wrapper I’ve seen and tested.
- marmaduke 6y agoIt’s pretty amazing to be reading the examples and almost feel like it’s code for matplotlib save an auto or angle brackets here and there. I’ve spent hours waiting for matplotlib to render data over the years. I just hope the compile times aren’t atrocious or that some kind of interactive mode is possible.
- winrid 6y agoIf you're familiar with Matplot on Python, you might find this useful. I've been using it lately https://github.com/lava/matplotlib-cpp https://github.com/lava/matplotlib-cpp The posted library does look nicer though.
- beagle3 6y agoLooks absolutely incredible. Sort of matplotlib for c++, will look into the internals when I have the time. Seems like everything for Python these days is matplotlib based; Whereas everything for R is ggplot2 based (but even the ggplot libraries for Python are mostly based on matplotlib).
- abnry 6y agoMatplotlib is amazing EXCEPT for the speed and the 3D plotting. This looks quite intriguing to me.
- 7thaccount 6y agoI love how the page has screenshots of hundreds of types of charts. This is usually what I want to first look at for a plotting library.
- __ryan__ 6y agoThis looks really cool. Another great plotting library for C++, if you can use Qt, is Qwt: https://github.com/opencor/qwt https://github.com/opencor/qwt https://qwt.sourceforge.io/ https://qwt.sourceforge.io/
- spacedcowboy 6y agoThis is amazing. I’ve been looking for something like this for a while. It doesn’t do the one type of plot I actually want for the project I’m working on (x,y,z data as a 3d bar chart “surface”), but that takes nothing away from just how good this is.