From: Juhász P. <pet...@gm...> - 2020-08-14 17:35:01
|
On Wed, 2020-08-05 at 23:46 -0700, Dima Kogan wrote: > A question. I'm looking at the violin plot demo page: > > http://gnuplot.sourceforge.net/demo/violinplot.html > > It shows how to make a horizontal density plot using 'smooth > kdensity'. > > Then it shows to to make a vertical density plot by plotting > horizontally into a table, and then plotting the table, with "using" > directives used to swap the axes. This works clearly, but is there a > way > to do this (vertical density plots) with a single plot command? That > would make my life much easier. > > Thanks! > > > Well, recently at $work I used gnuplot to produce a sideways histogram. Because it had to be sideways, I had to resort to manually assembling the plot with the boxxyerror style, with an awkward preprocessing step. This, and your question, gives me the idea that it might be worth adding a general 'transpose' option to some of the "clever" plot styles that produce non-trivial vertical plots (histograms and boxplots, mostly). best regards, Peter Juhasz |