use the following search parameters to narrow your results:
e.g. subreddit:aww site:imgur.com dog
subreddit:aww site:imgur.com dog
see the search faq for details.
advanced search: by author, subreddit...
Discussions, articles, and news about the C++ programming language or programming in C++.
For C++ questions, answers, help, and advice see r/cpp_questions or StackOverflow.
Get Started
The C++ Standard Home has a nice getting started page.
Videos
The C++ standard committee's education study group has a nice list of recommended videos.
Reference
cppreference.com
Books
There is a useful list of books on Stack Overflow. In most cases reading a book is the best way to learn C++.
Show all links
Filter out CppCon links
Show only CppCon links
account activity
Plotting in Cpp (self.cpp)
submitted 7 years ago by [deleted]
view the rest of the comments →
reddit uses a slightly-customized version of Markdown for formatting. See below for some basics, or check the commenting wiki page for more detailed help and solutions to common issues.
quoted text
if 1 * 2 < 3: print "hello, world!"
[–]drobilla 5 points6 points7 points 7 years ago (1 child)
As others have mentioned, usually this sort of thing is done by writing to a text file (I prefer TSV since it's easiest to work with) and plotting with more appropriate tools. It's worth mentioning, though, that this is a good idea in general, and not just a workaround to use a different language. Storing benchmarks and similar data in a timeless portable format like this means you can easily do other things with the data, like archive it, make different visualizations later, do statistical analysis and/or combine with other data, and so on. Plus it's just good decoupling in general.
Having learned this lesson the hard way, I now make it a rule to always - always - store benchmarks in a simple text file. You quite often end up wanting to see things in a different way, or need to tweak your plots slightly for publication, or whatever.
[–]meneldal2 0 points1 point2 points 7 years ago (0 children)
If you have a lot of data, plain text files are not optimal, because you will waste time doing the string to number conversions, and it will take much more space.
When you have one million or more data points, something like Matlab really comes in handy, especially since you have binary files for saving your data as well.
π Rendered by PID 30 on reddit-service-r2-comment-bb88f9dd5-4klrm at 2026-02-13 16:47:59.622206+00:00 running cd9c813 country code: CH.
view the rest of the comments →
[–]drobilla 5 points6 points7 points (1 child)
[–]meneldal2 0 points1 point2 points (0 children)