This Time Self-Hosted
dark mode light mode Search

Dear lazyweb, I need a gnuplot expert

And I end up asking again for help to whoever is around, this time I’m looking for a gnuplot expert 🙂

As solar suggested, I wanted to prepare a few graphs to show the changes with visibility, with fixing COW pages, and so on. While performance analysis through benchmark would probably be a good idea too, I wanted to start with something easier, maybe less interesting, but that would help me tackling down the issues to get better visual impact. This way the more important stuff will not just look like crap and be dismissed 😉

For now I’ve modified my parser for LD_DEBUG=bindings output to generate data that could be represented visually by gnuplot. Or at least I hope I’ll be able to make it be represented visually by gnuplot.

I’d like to have some clustered and row-stacked histograms; it would divide all the objects in a particular program (shared objects) in clusters of histograms, each containing N histograms for N runs to compare (no visibility, hidden/default visibility, hidden/protected visibility), then each histogram would have its height split in three (outgoing bindings, incoming bindings, self-fulfilled bindings), to show the changes in those.

Unfortunately, what I have up to now shows the graphics just fine, but the labels for the various objects are unreadable. If you want to get the package of the data and script here.

If somebody can help me to get these data graphed in a decent way… that would be very helpful 🙂

Comments 4
  1. I would suggest dropping gnuplot in favour of something like R (dev-lang/R) — currently the best software in the field of statistics, great graphical capabilities.

  2. GnuPlot should work out just fine. But getting the labels right is a bit of a hassle, indeed.Why don’t you put the text labels at the top? There you have a bit more space, especially if you create it by fixing the yrange at e.g. set yrange [*:400]if that would be space enough.Then you would have to place the labels separately. If you have n histograms, the label of hist i goes at location (i-0.5)/n. Using only your first four plots, you’d get for the first oneset label ‘{/=50 xine}’ at graph .125, .9 centerand a secondset label ‘{/=60 xineplug_inp_rtp}’ at graph .375, .95 centerset label ‘{/=25 xineplug_inp_file}’ at graph .625, .9 centeretc. I alternate labels between height .9 and .95, such that they don’t overlap. And play with the fontsize, around 50 might be okay, or a bit smaller.Good luck,CS

  3. Hey, your search for a Gnuplot expert has just ended – there is now a book on Gnuplot: Gnuplot in Action”, which has a chapter on using Gnuplot for histograms. You can pre-order it directly from the publisher: Manning: Gnuplot in Action.If you want to learn more about the book and the author, check out my book page at Principal Value – Gnuplot in Action.Let me know if you are interested in a review copy.

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.