[Biopython] Sigil color SOLID instead of transparent
Asma Riyaz
asmariyaz23 at gmail.com
Fri Oct 3 10:55:10 UTC 2014
Hi,
Attached MyImage.pdf is what I have generated so far. Features with black
arrows have hidden the track line behind it, but this is not the case with
other colors, track line is still visible.
What I was hoping to achieve was an effect such as in solid.png (taken from
this link http://www.reportlab.com/snippets/12/).
Any suggestions?
Thanks,
Asma
On Fri, Oct 3, 2014 at 5:24 AM, Peter Cock <p.j.a.cock at googlemail.com>
wrote:
> Hi Asma,
>
> Note that in addition to transparency, with ReportLab (and other
> vector image tools), the z-order is important for the final display.
>
> IIRC, the default sigil colors ARE solid (unless you explicitly use
> a transparent color via a ReportLab color with alpha transparency
> set).
>
> If you look at the "Feature sigils" example in the Tutorial, the
> black central track axis is always visible above the sigils
> (including the BIGARROW), while the background (optional)
> grey track is always at the back.
>
> http://biopython.org/DIST/docs/tutorial/Tutorial.html
> http://biopython.org/DIST/docs/tutorial/images/GD_sigils.png
>
> Could you try to rephrase your question, or prepare an image
> to illustrate what you want to achieve?
>
> Thanks,
>
> Peter
>
> On Thu, Oct 2, 2014 at 7:58 PM, Asma Riyaz <asmariyaz23 at gmail.com> wrote:
> > Hi
> >
> > I am using Genome Diagram to draw features on tracks, and I need to know
> if
> > there is a way to make the sigil color solid instead of transparent.
> Since
> > BIGARROW sigil is what I prefer the track line behind each feature is
> > visible.
> >
> > Since colors for this module are derived from ReportLab, I tried to
> > investigate if there is something that I can use, this is where I
> reached:
> >
> > from reportlab.pdfgen.canvas import Canvas
> > c = Canvas(filename,pagesize=(400,200))
> > c.drawString(25,180, 'solid')
> >
> > However to use this property 'solid', drawstring needs to be used which
> is a
> > property of canvas.
> >
> > What can I do to over ride the default property of transparency for sigil
> > colors? Any Inputs?
> >
> > Thanks,
> > Asma
> >
> >
> >
> > _______________________________________________
> > Biopython mailing list - Biopython at mailman.open-bio.org
> > http://mailman.open-bio.org/mailman/listinfo/biopython
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.open-bio.org/pipermail/biopython/attachments/20141003/d30d4751/attachment-0001.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: MyImage.pdf
Type: application/pdf
Size: 1999348 bytes
Desc: not available
URL: <http://mailman.open-bio.org/pipermail/biopython/attachments/20141003/d30d4751/attachment-0001.pdf>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: solid.png
Type: image/png
Size: 29917 bytes
Desc: not available
URL: <http://mailman.open-bio.org/pipermail/biopython/attachments/20141003/d30d4751/attachment-0001.png>
More information about the Biopython
mailing list