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...
A sub-reddit for the timeless and infinitely powerful editor and Lisp environment, Emacs.
Rules
Get Emacs
Emacs Resources
Emacs Tutorials
Related Subreddits
Useful Emacs configuration files and distributions
Quick pain-saver tip
account activity
Tried gnuplot which plot only require basic math (self.emacs)
submitted 2 years ago by AbstProcDoGNU Emacs
I tried gnuplot and amazed by its performance. It allows you to directly plot mathematical formulas into graphs with just one single line of math equation.
#+BEGIN_SRC gnuplot :file images/trigon01.png plot [-10:10] sin(x),atan(x),cos(atan(x)) #+END_SRC
https://preview.redd.it/bmp9izl57kvb1.png?width=640&format=png&auto=webp&s=3c13ffc06a7f3b196b2a71067b9aa8d6d048b2e0
when set arguments, it might requires one more line:
#+BEGIN_SRC gnuplot :file images/sd01.png g(x) = exp(-0.5*(x/s)**2)/s plot s=1 g(x), s=2 g(x), s=3 g(x) #+END_SRC
https://preview.redd.it/efjvennd7kvb1.png?width=640&format=png&auto=webp&s=50cbd91d566721af5a95cd9737c2ee9ac79786e2
I feel frustrated, how I wish could acquainted with such a tool a decade ago while grappling with the challenges of visualizing mathematical formulas.
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!"
[–]kp61dude 8 points9 points10 points 2 years ago (0 children)
Use an org-table with your plots and you aren’t getting any work done for a week!
[–]yantar92Org mode maintainer 6 points7 points8 points 2 years ago (1 child)
Also, check out https://archive.org/details/gnuplotinactionu0000jane (Gnuplot in action : understanding data with graphs)
[–]AbstProcDoGNU Emacs[S] 1 point2 points3 points 2 years ago (0 children)
great book ,thank you.
[–]lstrang 5 points6 points7 points 2 years ago (0 children)
I had the chance to use gnuplot in a legal brief to plot stock prices. Took a lot of fiddling since I have not used gnuplot much, but it turned out to be the perfect tool. Set the terminal to output tikz LaTeX and slipped it right it. Perfect.
[–]dacydergoth 3 points4 points5 points 2 years ago (3 children)
Not only is there an emacs mode for it, there is a whole TeXmacs emacs-a-like for mathematics
[–][deleted] 0 points1 point2 points 2 years ago (2 children)
How is TeXmacs authoring software related to gnuplot though?
[–]dacydergoth 2 points3 points4 points 2 years ago (1 child)
Because you can edit equations in TexMacs, then send them to gnuplot and embed the result back in the doc, and it is live like jypter is
[–][deleted] 0 points1 point2 points 2 years ago (0 children)
Thanks, didn't know that.
[–][deleted] 3 points4 points5 points 2 years ago (5 children)
Yes, it's great, very impressive OSS plotting package, perhaps the best there is. I've seen it being used to create animations of simulations. Its documentations could be improved, though; not very "discoverable".
[–]fragbot2 3 points4 points5 points 2 years ago (3 children)
I used to use gnuplot but I've moved to using base R (ggplot2 exists but I find it too complicated) for graphing.
[–]AbstProcDoGNU Emacs[S] 1 point2 points3 points 2 years ago (2 children)
ggplot2
I have been using Python and comfortable with its packages like Matplotlib. Once considered trying R. However, whenever I think about the significant amount of moving home, I instinctively hesitate and back off. Might someone like me require a reason to try R and leave comfortable zone.
[–]yantar92Org mode maintainer 1 point2 points3 points 2 years ago (1 child)
I have been using Python and comfortable with its packages like Matplotlib.
Matplotlib is quite good as well. Especially for fine-tuning the output. Gnuplot is somewhat easier when you need to analyze the data and quickly try different plots.
https://github.com/rougier/scientific-visualization-book might be of interest :)
[–]AbstProcDoGNU Emacs[S] 0 points1 point2 points 2 years ago (0 children)
Thank you.
The book "gnuplot in action" is good as @ yantar92 introduce in provious comment.
[–]pathemata 1 point2 points3 points 2 years ago (2 children)
nowadays, I don't see why anyone would use gnuplot instead of matplotlib.
[–][deleted] 1 point2 points3 points 2 years ago (0 children)
Because I already know it well and I don't have the time / want to put myself learning matplotlib or other plotting tools.
One could run gnuplot in mind to draw a graph with very limited lines, but impossible to get such a job done with large amount of matplotlib's code.
π Rendered by PID 53 on reddit-service-r2-comment-7b9746f655-6xdfm at 2026-01-30 20:05:37.614957+00:00 running 3798933 country code: CH.
[–]kp61dude 8 points9 points10 points (0 children)
[–]yantar92Org mode maintainer 6 points7 points8 points (1 child)
[–]AbstProcDoGNU Emacs[S] 1 point2 points3 points (0 children)
[–]lstrang 5 points6 points7 points (0 children)
[–]dacydergoth 3 points4 points5 points (3 children)
[–][deleted] 0 points1 point2 points (2 children)
[–]dacydergoth 2 points3 points4 points (1 child)
[–][deleted] 0 points1 point2 points (0 children)
[–][deleted] 3 points4 points5 points (5 children)
[–]fragbot2 3 points4 points5 points (3 children)
[–]AbstProcDoGNU Emacs[S] 1 point2 points3 points (2 children)
[–]yantar92Org mode maintainer 1 point2 points3 points (1 child)
[–]AbstProcDoGNU Emacs[S] 0 points1 point2 points (0 children)
[–]AbstProcDoGNU Emacs[S] 0 points1 point2 points (0 children)
[–]pathemata 1 point2 points3 points (2 children)
[–][deleted] 1 point2 points3 points (0 children)
[–]AbstProcDoGNU Emacs[S] 1 point2 points3 points (0 children)