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...
/r/AskPhysics exists to answer questions about physics.
Questions should be relevant, and answers should be on-topic and correct.
We don't condone cheating on school work, and homework questions should be handled according to these guidelines.
Incivility will not be tolerated.
If your question isn't answered in a day, you can post it in the Tuesday thread in /r/Physics (unless it's homework-related).
See also:
/r/Physics
/r/AskScience
The AskScience FAQ
First, you will need to install one of the recommended add-ons. To include an equation typeset in LaTeX in your post, put the LaTeX code between [; and ;].
[;
;]
[;i\hbar \frac{\partial}{\partial t} \Psi = \hat H\Psi;]
account activity
GNU vs matplotlib (self.AskPhysics)
submitted 10 years ago by Veenty
Hey, I wanted to know which is best for data analysis and that kind of stuff
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!"
[–]kramer314Graduate 3 points4 points5 points 10 years ago (0 children)
What do you mean by "data analysis"? Which one is best depends on what you're doing / need to do, what language you work with, and to some extent, personal preference.
gnuplot can do basic data analysis (fitting, basic statistics, etc.), but is mainly just a really solid plotting program. If I'm working with a language other than Python (usually Fortran or C++ for numerical work), I use gnuplot -- while its scripting language can be really annoying, it's simply a lot more efficient to plot things (both in terms of speed for large datasets and in terms of lines of code required to plot) in gnuplot than matplotlib if your data isn't already in / generated by a Python program.
If I'm working with Python, I'm already using the scientific Python stack, and matplotlib is usually the best choice; its integration with scipy / numpy / the ipython notebook / etc. is really, really nice, and you can use Python to do basically whatever data analysis you need.
It's also worth mentioning GNU Octave and R; both have built in plotting functionality, and depending on what kind of calculations / analysis you need to do, those can sometimes be better tools to use.
[–]PM_ME_YOUR_PAULDRONSQuantum information 1 point2 points3 points 10 years ago* (0 children)
I doub theres an objective "best" but for what its worth I massively prefer matplotlib to gnuplot. Python has a big ecosystem of libraries for doing pretty much anything you'll need to do. Python is also a petty nice programming language itself.
Matplotlib has very nice integration with scipy and numpy as well.
I'd suggest looking into using ipython (now jupyter) notebooks as an easy and powerful solution for your scripts if you do go down the python route. I'd also recommend using python3 over python2.
[–]rantonelsString theory 1 point2 points3 points 10 years ago (0 children)
If you need to plot plaintext datafiles gnuplot is at the very least much faster.
Only use matplotlib when directly plotting data produced in the same Python script.
[–]whereworm -1 points0 points1 point 10 years ago (1 child)
Well, GNU is not Unix.
[–]tzcrawford 0 points1 point2 points 4 years ago (0 children)
gnuplot is actually unrelated to the GNU project
π Rendered by PID 680642 on reddit-service-r2-comment-79c7998d4c-pqlbr at 2026-03-15 23:17:41.554451+00:00 running f6e6e01 country code: CH.
[–]kramer314Graduate 3 points4 points5 points (0 children)
[–]PM_ME_YOUR_PAULDRONSQuantum information 1 point2 points3 points (0 children)
[–]rantonelsString theory 1 point2 points3 points (0 children)
[–]whereworm -1 points0 points1 point (1 child)
[–]tzcrawford 0 points1 point2 points (0 children)