Re: BAR_PLOT with pairs of bars [message #64833] |
Fri, 23 January 2009 08:56 |
Jeremy Bailin
Messages: 618 Registered: April 2008
|
Senior Member |
|
|
On Jan 22, 12:09 pm, Julio <julio.esque...@gmail.com> wrote:
> Hi,
> I'm trying to plot two sets of bars in the same plot. Each set has
> always the same number of records. I'm doing that with sets containing
> 28 values, so I have 56 bars or 28 pairs of bars to be plotted.
>
> bar_plot, bar1, baselines=baselines, outline=outline, $
> colors=colorbar1,/overplot, barwidth=0.3,barspace=0.694, baroffset=0.9
>
> bar_plot, bar2, baselines=baselines, outline=outline, $
> colors=colorbar2,/overplot, barwidth=0.3, barspace=0.694,
> baroffset=1.9
>
> The result is OK. But when I use sets containing 15 or 10 records, the
> bars are not plot correctly. Isn't there any way to fix barspace and
> baroffset according to the number of bars to be plotted?
>
> Best,
> Julio
What exactly do you mean by they're not plotted correctly? When I try
it, it looks like I'd expect, so what about it are you expecting to be
different?
-Jeremy.
|
|
|