BAR_PLOT with pairs of bars [message #64849] |
Thu, 22 January 2009 09:09 |
Jeff[2]
Messages: 18 Registered: November 2007
|
Junior Member |
|
|
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
|
|
|