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

Home » Public Forums » archive » Re: BAR_PLOT restricted to 60 element ARRAY??
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 restricted to 60 element ARRAY?? [message #44679 is a reply to message #44678] Thu, 07 July 2005 07:51 Go to previous messageGo to previous message
Ben Panter is currently offline  Ben Panter
Messages: 102
Registered: July 2003
Senior Member
liko2@o2.pl wrote:
> psym=10 is a histogram option for PLOT what I have mentioned about...It
> doesnt work for two or more values which are the same and come one
> after another...
>

Yes, I meant that that is an easy way to get the overall shape of the
line, then you can put in vertical lines using plots (not plot!) to draw
lines which distinguish the bars.

If you don't mind not having the bars next to each other you could also
do the padding operation I mentioned before to put a zero between each
bar - something like:

x=[1,2,3,4,5]
y=[3,4,5,5,2]

new_x=[0.5,1,1.5,2,2.5,3,3.5,4,4.5,5,5.5]
new_y=[0,3,0,4,0,5,0,5,0,5,0,2,0]

plot, new_x, new_y, psym=10, yr=[0,6]

HTH,

Ben

--
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
Ben Panter, Garching, Germany
email via www.benpanter.co.uk
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: shading in contour plots
Next Topic: Re: Windows IDL DLM with Cygwin

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

Current Time: Sun Oct 12 12:15:57 PDT 2025

Total time taken to generate the page: 1.99974 seconds