Bio::G...::arrow(3pm)
πΈ NAME πΈ
Bio::Graphics::Glyph::arrow β the "arrow" glyph, bestie. That's it, that's the whole vibe. π
β¨ SYNOPSIS β¨
See Bio::Graphics::Panel and Bio::Graphics::Glyph. No cap, those are the ones you wanna go read first. π
π¦ DESCRIPTION π¦
Okay so this glyph draws arrows. That's the main character move. π
Depending on what options you pass, the arrows can be:
- labeled π
- oriented vertically or horizontally π
- stuffed full of major and minor ticks so they work as a scale π
Versatile icon, honestly.
π OPTIONS π
These first ones are the standard options that every glyph has. Wanna know more? Go read Bio::Graphics::Glyph, it explains everything. π«Ά
-fgcolorβ foreground color, default isblackπ€-outlinecolorβ synonym for-fgcolor, same energy β¨-bgcolorβ background color, default isturquoiseπ-fillcolorβ synonym for-bgcolorπ-linewidthβ line width, default is1-heightβ height of the glyph, default is10-fontβ the glyph font, default isgdSmallFontπ€-connectorβ connector type, default is0(false)-connector_colorβ connector color, default isblackπ€-labelβ whether to draw a label, default is0(false)-descriptionβ whether to draw a description, default is0(false)-hiliteβ highlight color, default isundef(no color, so nothing gets highlighted, tragic) π
And on top of all those common ones, this glyph ALSO recognizes these glow-up options π
-tickβ whether to draw major and minor ticks. Default is0.0= no ticks1= major ticks2= minor ticks
-tickcolorβ color to use for tick marks, default isfgcolorπ¨-tickwidthβ line width to use for ticks, default islinewidth-parallelβ whether to draw the arrow parallel to the sequence or perpendicular to it. Default is1(true).-northeastβ force a north or east arrowhead (depending on orientation). Default is1(true).-eastβ synonym of the above, same thing, different name π«-southwestβ force a south or west arrowhead (depending on orientation). Default is1(true).-westβ synonym of the above π«-doubleβ force-doubleheaded arrow. Default is0(false).-baseβ draw a vertical base at the non-arrowhead side. Default is0(false).-scaleβ reset the labels on the arrow to reflect an externally established scale. Default is0(false).-arrowstyleβ"regular"to create a simple arrowhead."filled"to create a thick filled arrowhead. Default isregular.-relative_coordsβ use relative coordinates for scale. Default is0(false).-relative_coords_offsetβ set the relative offset for scale. Default is1.-label_intervalsβ put the numeric labels on the intervals between the ticks rather than on the ticks themselves. Default is0(false).-unitsβ add units to the tick labels, e.g.bp. Default isnone.-unit_dividerβ divide tick labels by the indicated amount prior to displaying (use this, for example, if you want to display in cR units). Default is1.
The -parallel tea β
Set -parallel to 0 (false) if you wanna display a point-like feature β think a polymorphism β or if you just need to flag an important location. π
If the feature start == end, the glyph draws a single arrow at the designated location:
^
|
Otherwise you get two arrows, one at the start and one at the end:
^ ^
| |
Two arrows, one location each, iconic. πΉπΉ
The -scale tea β
Pass in an externally established scale to reset the labels on the arrow. This is highkey useful for manually constructed images where the founding parameters of the panel are not 1-based.
Example time: a genetic map interval ranging from 0.1 β 0.3 can be constructed by first multiplying every value by 100. Then passing
arrow(-scale=>100);
will draw tick marks labelled appropriately to your external scale. Slay. πβ¨
π BUGS π
Please report them. (fr fr, just tell someone.) π
π SEE ALSO π
Bio::Graphics::Panel, Bio::Graphics::Glyph, Bio::Graphics::Glyph::arrow, Bio::Graphics::Glyph::cds, Bio::Graphics::Glyph::crossbox, Bio::Graphics::Glyph::diamond, Bio::Graphics::Glyph::dna, Bio::Graphics::Glyph::dot, Bio::Graphics::Glyph::ellipse, Bio::Graphics::Glyph::extending_arrow, Bio::Graphics::Glyph::generic, Bio::Graphics::Glyph::graded_segments, Bio::Graphics::Glyph::heterogeneous_segments, Bio::Graphics::Glyph::line, Bio::Graphics::Glyph::pinsertion, Bio::Graphics::Glyph::primers, Bio::Graphics::Glyph::rndrect, Bio::Graphics::Glyph::segments, Bio::Graphics::Glyph::ruler_arrow, Bio::Graphics::Glyph::toomany, Bio::Graphics::Glyph::transcript, Bio::Graphics::Glyph::transcript2, Bio::Graphics::Glyph::translation, Bio::Graphics::Glyph::triangle, Bio::DB::GFF, Bio::SeqI, Bio::SeqFeatureI, Bio::Das, GD
π AUTHOR π
Lincoln Stein <lstein@cshl.org>. π«‘
Copyright (c) 2001 Cold Spring Harbor Laboratory
This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself. See DISCLAIMER.txt for disclaimers of warranty. π§Ύ
okay that's the whole page bestie, go forth and draw ur arrows πβ¨
perl v5.30.0 Β· 2019-11-25 Β· Bio::G...::arrow(3pm) β mwah, bye! ππ¦
π¦ where this page comes from
- debian bookworm: libbio-graphics-perl 2.40-6 Β· Perl
- debian trixie: libbio-graphics-perl 2.40-6 Β· Perl
- ubuntu jammy: libbio-graphics-perl 2.40-6 Β· Perl
- ubuntu noble: libbio-graphics-perl 2.40-6 Β· Perl
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms