comp.lang.idl-pvwave archive
Messages from Usenet group comp.lang.idl-pvwave, compiled by Paulo Penteado

Home » Public Forums » archive » Re: BAR_PLOT with pairs of bars
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Return to the default flat view Create a new topic Submit Reply
Re: BAR_PLOT with pairs of bars [message #64833] Fri, 23 January 2009 08:56
Jeremy Bailin is currently offline  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.
[Message index]
 
Read Message
Previous Topic: Different sized pixels in pg_plotimage (is this a "feature")
Next Topic: Re: Structure of arrays or arrays of structures?

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ] [ PDF ]

Current Time: Wed Oct 08 19:56:04 PDT 2025

Total time taken to generate the page: 0.00225 seconds