Fatbands
Plot weights along line.
- storylines.fatband.fatband(points, width, weights, shifts, nib=None)[source]
Represent weighted data points via varying linewidth.
- Parameters:
- pointslist of 2-tuple
Vertices of linear spline.
- widthfloat
Overall linewidth scaling factor.
- weightslist of float
Weights of points.
- shiftslist of float
Displacements in weight direction.
- nibfloat
Angle of broad pen nib. If
None, the nib is held perpendicular to the direction of the line. The direction is always the average of the directions of adjacent line segments.
- Returns:
- list of 2-tuple
Fatband outline.
See also
miter_buttEquivalent routine with miter line join.
- storylines.fatband.miter_butt(points, width, weights, shifts, nib=None)[source]
Represent weighted data points via varying linewidth.
- Parameters:
- pointslist of 2-tuple
Vertices of linear spline.
- widthfloat
Overall linewidth scaling factor.
- weightslist of float
Weights of points.
- shiftslist of float
Displacements in weight direction.
- nibfloat
Angle of broad pen nib. If
None, the nib is held perpendicular to the direction of the current line segment. Line segments are connected using the miter joint.
- Returns:
- list of 2-tuple
Fatband outline.
See also
fatbandEquivalent routine without miter line join.