[Biopython-dev] Modifications to CircularDrawer

Leighton Pritchard Leighton.Pritchard at hutton.ac.uk
Wed Dec 5 16:28:26 UTC 2012


On 5 Dec 2012, at Wednesday, December 5, 15:57, Peter Cock wrote:

On Wed, Dec 5, 2012 at 1:50 PM, David Martin <d.m.a.martin at dundee.ac.uk<mailto:d.m.a.martin at dundee.ac.uk>> wrote:
label_position: start|middle|end as per LinearDrawer

I am suggesting a break in backwards compatibility (old code would still
run but put the labels in different places) but for large circular diagrams
the difference should be minor - and I think it would be an overall
improvement.

Yep - I agree

label_orientation: upright|circular which determines the orientation of
the label. upright is the current behaviour. Circular would be oriented
to face clockwise for the forward strand and anticlockwise for the reverse

I would prefer making the existing (linear) option label_angle work nicely
on circular diagrams (which would make sense as part of reworking the
code to obey label_placement).

Good point - the automatic reorientation on either side of the circle (to respect the viewer's local gravity) could effectively be handled through a working label_angle for circular diagrams.  And more adventurous manual reorientation would also be possible ;)

One issue there is what the angle is defined with respect to: a 'vertical' reference on the page, or a tangent/normal to some point on the feature.  The first is straightforward, and might be what we want - the second will likely result in some odd - or attractive - patterns.

Comments in-line, if need be we could meet up to hash some of this
out in person (although I not be in the Dundee area next week).

Friday's good for me.

L.

--
Dr Leighton Pritchard
Information and Computing Sciences Group; Weeds, Pests and Diseases Theme
DG31, James Hutton Institute (Dundee)
Errol Road, Invergowrie, Perth and Kinross, Scotland, DD2 5DA
e:leighton.pritchard at hutton.ac.uk       w:http://www.hutton.ac.uk/staff/leighton-pritchard
gpg/pgp: 0xFEFC205C tel: +44(0)844 928 5428 x8827 or +44(0)1382 568827





________________________________________________________



This email is from the James Hutton Institute, however the views

expressed by the sender are not necessarily the views of the James Hutton

Institute and its subsidiaries. This email and any attachments are confidential and 

are intended solely for the use of the recipient(s) to whom they are addressed.

If you are not the intended recipient, you should not read, copy, disclose or rely on 

any information contained in this email, and we would ask you to contact the 

sender immediately and delete the email from your system.  Although the James 

Hutton Institute has taken reasonable precautions to ensure no viruses are present 

in this email, neither the Institute nor the sender accepts any responsibility for any 

viruses, and it is your responsibility to scan the email and any attachments.



The James Hutton Institute is a Scottish charitable company limited by guarantee.

Registered in Scotland No. SC374831

Registered Office: The James Hutton Institute, Invergowrie Dundee DD2 5DA. 

Charity No. SC041796




More information about the Biopython-dev mailing list