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

Home » Public Forums » archive » Re: y axis tickmarks and box_plot
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: y axis tickmarks and box_plot [message #56250 is a reply to message #56248] Tue, 09 October 2007 09:14 Go to previous message
David Fanning is currently offline  David Fanning
Messages: 11724
Registered: August 2001
Senior Member
teich@atmsci.msrc.sunysb.edu writes:

> I am using the bar_plot procedure. The tickmark at y equls zero on
> the right hand side of the plot is going through the y-axis but I want
> it to go like all the other tick marks (toughing the y-axis extending
> to the left and not through). I don't know how to control tick marks
> with box plot. Can anyone help or at least tell me why this happens?
> (it only happens sometimes depending on what I have specified for !
> y.range

Bar_Plot is just a program written without much regard for
aesthetics. :-)

Find this line in the code, on or about line 226:

barsize=barwidth*winrange/nbars ;Normal. bar width

And change it to this:

barsize=barwidth*winrange/(nbars+1) ;Normal. bar width

That should look better. :-)

Cheers,

David
--
David Fanning, Ph.D.
Fanning Software Consulting, Inc.
Coyote's Guide to IDL Programming: http://www.dfanning.com/
Sepore ma de ni thui. ("Perhaps thou speakest truth.")
[Message index]
 
Read Message
Read Message
Previous Topic: moving to objects / IDL objects and object graphics
Next Topic: Re: Sharing program

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

Current Time: Sat Oct 11 22:24:35 PDT 2025

Total time taken to generate the page: 2.00257 seconds