<div dir="ltr">Hi,<div><br></div><div>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. </div><div>What I was hoping to achieve was an effect such as in solid.png (taken from this link <a href="http://www.reportlab.com/snippets/12/">http://www.reportlab.com/snippets/12/</a>). </div><div><br></div><div>Any suggestions?</div><div><br></div><div>Thanks,</div><div>Asma</div><div><br></div><div><br></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Fri, Oct 3, 2014 at 5:24 AM, Peter Cock <span dir="ltr"><<a href="mailto:p.j.a.cock@googlemail.com" target="_blank">p.j.a.cock@googlemail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi Asma,<br>
<br>
Note that in addition to transparency, with ReportLab (and other<br>
vector image tools), the z-order is important for the final display.<br>
<br>
IIRC, the default sigil colors ARE solid (unless you explicitly use<br>
a transparent color via a ReportLab color with alpha transparency<br>
set).<br>
<br>
If you look at the "Feature sigils" example in the Tutorial, the<br>
black central track axis is always visible above the sigils<br>
(including the BIGARROW), while the background (optional)<br>
grey track is always at the back.<br>
<br>
<a href="http://biopython.org/DIST/docs/tutorial/Tutorial.html" target="_blank">http://biopython.org/DIST/docs/tutorial/Tutorial.html</a><br>
<a href="http://biopython.org/DIST/docs/tutorial/images/GD_sigils.png" target="_blank">http://biopython.org/DIST/docs/tutorial/images/GD_sigils.png</a><br>
<br>
Could you try to rephrase your question, or prepare an image<br>
to illustrate what you want to achieve?<br>
<br>
Thanks,<br>
<br>
Peter<br>
<div><div class="h5"><br>
On Thu, Oct 2, 2014 at 7:58 PM, Asma Riyaz <<a href="mailto:asmariyaz23@gmail.com">asmariyaz23@gmail.com</a>> wrote:<br>
> Hi<br>
><br>
> I am using Genome Diagram to draw features on tracks, and I need to know if<br>
> there is a way to make the sigil color solid instead of transparent. Since<br>
> BIGARROW sigil is what I prefer the track line behind each feature is<br>
> visible.<br>
><br>
> Since colors for this module are derived from ReportLab, I tried to<br>
> investigate if there is something that I can use, this is where I reached:<br>
><br>
> from reportlab.pdfgen.canvas import Canvas<br>
> c = Canvas(filename,pagesize=(400,200))<br>
> c.drawString(25,180, 'solid')<br>
><br>
> However to use this property 'solid', drawstring needs to be used which is a<br>
> property of canvas.<br>
><br>
> What can I do to over ride the default property of transparency for sigil<br>
> colors? Any Inputs?<br>
><br>
> Thanks,<br>
> Asma<br>
><br>
><br>
><br>
</div></div>> _______________________________________________<br>
> Biopython mailing list - <a href="mailto:Biopython@mailman.open-bio.org">Biopython@mailman.open-bio.org</a><br>
> <a href="http://mailman.open-bio.org/mailman/listinfo/biopython" target="_blank">http://mailman.open-bio.org/mailman/listinfo/biopython</a><br>
</blockquote></div><br></div>