Re: y axis tickmarks and box_plot [message #56248] |
Tue, 09 October 2007 11:17 |
teich
Messages: 33 Registered: May 2007
|
Member |
|
|
On Oct 9, 12:14 pm, David Fanning <n...@dfanning.com> wrote:
> te...@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.")
David,
Thanks, that works well!
H
|
|
|
Re: y axis tickmarks and box_plot [message #56250 is a reply to message #56248] |
Tue, 09 October 2007 09:14  |
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.")
|
|
|