Skip to content

Stroke color and width

Tree

(A:0.1,B:0.2,(C:0.3,D:0.4)100:0.5)90:0.43;

(not all datasets support these modifiers)

!defaultStrokeWidth

By default, a stroke width of '1' (one pixel) will be used; this can be changed by using a modifier:

!defaultStrokeWidth	stroke_width_value
  • always separate the key and attributes with a single TAB character
  • this value will be applied to all shapes.

!defaultStrokeColor

A default colour can also be specified by the following modifier:

!defaultStrokeColor	valid_stroke_color

and it will be applied to shapes without user-supplied stroke colours.

Example

Example 1

Placeholder

##color strips
!defaultstrokewidth	1
!type	rect,star,triangle,rect
!showlegends	0
A	white:grey,white:blue
B	white:red
C	white:grey
D	white:red

In EvolView, the colur attribute of an object can be written as:

fill_color[:stroke_color](_stroke_color)
When the stroke_color is omitted, no stroke will be drawn.

Example

Example 2

Placeholder

##color strips
!defaultstrokewidth	2
!defaultstrokecolor	gold
!type	rect,circle,star,triangle
!showlegends	1
A	red,green,blue:red
B	purple,darkred,lightgreen
C	lightblue
D	darkgreen,grey,pink
Tip

The colorstroke propery can also be used in other plots too. you can check these examples: barplot example 1, barplot example 2