[Bioperl-l] Bio::Graphics off by one?

Lincoln Stein lstein at cshl.edu
Wed Feb 22 18:23:09 UTC 2006


Hi Dave,

If you want to adjust the way that the arrow.pm module draws the ticks, please 
make it a user-configurable option with the default being the current method. 
It should be easy enough to do this -- you just offset the position of the 
labels by 0.5 interval and inhibit drawing of the last one.

Lincoln

On Wednesday 22 February 2006 11:45, Dave Howorth wrote:
> Scott Cain wrote:
> > Hi Dave,
> >
> > I took the example code you posted a few days ago and added a few
> > motifs, one that goes from 1 to 10, and one that goes from 35 to 44 (the
> > last residue), which results in the attached graphic.
>
> Yes, that's the same sort of graphic I'm getting.
>
> > As Lincoln pointed it, the features are drawn from the beginning (1 and
> > 35), and through the last residue (up to but not touching 11 and 45).
> > So the space between 35 and 36 corresponds to residue 35.
>
> But there is no residue 45!  So there should be no number 45 anywhere on
> the picture.
>
> I think the problem is that the tick strip is displaying numbers for the
> ticks instead of the intervals. The intervals are what corresponds to
> users' models of physical reality and my graphics need to match that.
>
>  > That's the way it works.
>
> I guess I'll have to experiment and patch until it does what I want
> then, if nobody knows how to do it.
>
> Cheers, Dave
> _______________________________________________
> Bioperl-l mailing list
> Bioperl-l at lists.open-bio.org
> http://lists.open-bio.org/mailman/listinfo/bioperl-l

-- 
Lincoln D. Stein
Cold Spring Harbor Laboratory
1 Bungtown Road
Cold Spring Harbor, NY 11724
FOR URGENT MESSAGES & SCHEDULING, 
PLEASE CONTACT MY ASSISTANT, 
SANDRA MICHELSEN, AT michelse at cshl.edu



More information about the Bioperl-l mailing list