<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">&lt;<a href="mailto:p.j.a.cock@googlemail.com" target="_blank">p.j.a.cock@googlemail.com</a>&gt;</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 &quot;Feature sigils&quot; 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 &lt;<a href="mailto:asmariyaz23@gmail.com">asmariyaz23@gmail.com</a>&gt; wrote:<br>
&gt; Hi<br>
&gt;<br>
&gt; I am using Genome Diagram to draw features on tracks, and I need to know if<br>
&gt; there is a way to make the sigil color solid instead of transparent. Since<br>
&gt; BIGARROW sigil is what I prefer the track line behind each feature is<br>
&gt; visible.<br>
&gt;<br>
&gt; Since colors for this module are derived from ReportLab, I tried to<br>
&gt; investigate if there is something that I can use, this is where I reached:<br>
&gt;<br>
&gt; from reportlab.pdfgen.canvas import Canvas<br>
&gt; c = Canvas(filename,pagesize=(400,200))<br>
&gt; c.drawString(25,180, &#39;solid&#39;)<br>
&gt;<br>
&gt; However to use this property &#39;solid&#39;, drawstring needs to be used which is a<br>
&gt; property of canvas.<br>
&gt;<br>
&gt; What can I do to over ride the default property of transparency for sigil<br>
&gt; colors? Any Inputs?<br>
&gt;<br>
&gt; Thanks,<br>
&gt; Asma<br>
&gt;<br>
&gt;<br>
&gt;<br>
</div></div>&gt; _______________________________________________<br>
&gt; Biopython mailing list  -  <a href="mailto:Biopython@mailman.open-bio.org">Biopython@mailman.open-bio.org</a><br>
&gt; <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>