Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

plotting a column-stacked histogram together with a line plot

1,275 views
Skip to first unread message

K. Lee

unread,
Aug 19, 2009, 2:24:15 PM8/19/09
to
Hello,

I was wondering if there are any ways/examples that show how to plot
together a column-stacked histogram and a line plot. If a histogram is
simple a bar chart, then I can easily draw both plots together.
However, if not, it seems I have to plot them with 'multiplot' in order
to have them in a single plot. I tried to use 'multiplot', but it was
painful since I have to tweak the size of each plot to ensure both plots
have the same boundaries. I'd appreciate any advices to address this
problem. Thank you.

sfeam

unread,
Aug 19, 2009, 8:46:54 PM8/19/09
to
K. Lee wrote:

Plot the line plot first, and make it explicitly "with lines".


set style data histogram
set style histogram columns

plot foo(x) with lines, 'histogram.dat' using 1, '' using 2, '' using 3

K. Lee

unread,
Aug 20, 2009, 12:45:57 PM8/20/09
to

Thank you! It works perfectly. :)

0 new messages