get_line_pattern Subroutine

public subroutine get_line_pattern(linestyle, pattern, pattern_size)

Get line pattern array for a given style, in points. Single source of truth: the matplotlib default dash sequences. On/off lengths are in points; callers scale by line width (points) and convert to device units (see scale_pattern_to_pixels).

Arguments

Type IntentOptional Attributes Name
character(len=*), intent(in) :: linestyle
real(kind=wp), intent(out) :: pattern(20)
integer, intent(out) :: pattern_size