Hacker Newsnew | past | comments | ask | show | jobs | submit | more cableclasper's commentslogin

Can someone tell me, a longtime a gnuplot user (http://www.gnuplot.info/), when I'd want to use ggplot/plotnine?

Is there a sort of Turing completeness among plotting programs, i.e. can everything ultimately be done on any popular plotting program, or are there things achievable only in some and not others?


I think Gnuplot is strongest when you want a pretty plot of a complicated function (3D, parametric, etc). Grammar of graphics approach is optimized for understanding data sets.

For strengths of plotnine, ggplot, and Altair over Gnuplot (or matplotlib), see section 3.3 of the article, particularly the example

ggplot(data=mpg) + geom_point(mapping=aes(x="displ", y="hwy", color="class"))

You can easily replace 'color' with 'shape', or even faceting (getting a separate plot for each class).

I do not know Gnuplot very well -- what's the easiest Guplot way to do this? [1] I do know that when I was looking at data sets, switching from plain matplotlib (where you'd have to plot in a loop over each class) to the grammar of graphics style was a breath of fresh air for me.

Separately, and less interestingly, if you are already using Python or Jupyter, Gnuplot isn't as smoothly integrated into that ecosystem.

[1]: The first thing I found on the website is http://gnuplot.sourceforge.net/demo_5.4/varcolor.html, but perhaps there's a better or more minimal example?


Really nice work! I'm playing with the app currently. Is there a way to set the default browser used to open links?


It should use whatever browser your operating system has set as the default. But please let me know if that is not the case.


My OS is arch linux. It seems like the app does not use xdg-open (https://wiki.archlinux.org/index.php/Xdg-open ). Setting the BROWSER environment variable also doesn't seem to work. I don't know any other way to set the default browser.


A very useful application of quines: https://tiddlywiki.com/

Learned about it first from Joe Armstrong: https://joearms.github.io/#


My homepage is a Quine: https://tritarget.org/

It is created using TiddlyWiki


A picture language equivalent can be found here: https://git.elephly.net/gitweb.cgi?p=software/guile-picture-...


I'm currently doing this and am in the middle of chapter 3. So far, everything has worked fine with guile.


Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: