-
Notifications
You must be signed in to change notification settings - Fork 37
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Plotting both regular and cumulative histogram (from the same data) on the same graph #35
Comments
On June 24, 2018 4:10:58 PM PDT, Nicolas Hillegeer ***@***.***> wrote:
This is often done in papers and I'd like to do the same. Is it
possible with feedgnuplot or do I have to go for manual gnuplot
scripts? Reading the man page makes me think it cannot be done
currently. I could think of a hack to pass the dataset twice, but the
histstyle argument does not allow choosing a specific curve to render
AFAIK. Thanks.
Hi. I've never had this need, and you're the first one to ask. I want to say there's no nice way to do this currently. In the near term, if you speak perl, you should be able to hack in something without a lot of work. In the longer term, I can add something, but won't get to it for a few weeks.
|
No problem at all, I'm sure this is pretty fringe. If adding this feature is just difficult from the point-of-view of constructing a command-line, I'd be happy not having it either. What I'm planning to do is to see what feedgnuplot(1) produces for both types of histograms, and manually create a gnuplot script that contains both. Then I just: {
echo "gnuplot script
plot '-' ..."
data-generating-script
echo "e"
} | gnuplot Which is a bit ugly, but works :). Thanks for considering it! |
Actually, now that I think of it, a better temporary hack is to use --equation. That just adds the string to the plot command verbatim. You can specify one histogram normally and the other with --equation. I'll see about doing better in a few weeks.
|
Hi. I just looked at this, and unfortunately, it's fairly painful to make this work without breaking the existing api. You can hack it with something like this:
So you duplicate the data, define another histbin function (with a higher resolution), and explicitly set the style. AND you need to modify the sources to not print "notitle". And even then, the histogram bars end up being plotted on top of the cumulative line. I'm sorry, but I can't do this in a reasonable way. If I hear multiple other users request this feature, maybe I'll think about it again, but I just can't figure out how to do this right now. |
Hi Dima, No worries, as someone who's designed CLIs before (admittedly less full-featured than feedgnuplot), I can feel the pain of trying to cater to all use cases. Sometimes it's best to say no. However, I'm very glad for the alternate suggestion, that would've taken me a lot of time to come up with myself. |
This is often done in papers and I'd like to do the same. Is it possible with feedgnuplot or do I have to go for manual gnuplot scripts? Reading the man page makes me think it cannot be done currently. I could think of a hack to pass the dataset twice, but the histstyle argument does not allow choosing a specific curve to render AFAIK. Thanks.
The text was updated successfully, but these errors were encountered: