scale_pattern_to_pixels Subroutine

public subroutine scale_pattern_to_pixels(pattern, pattern_size, dpi, line_width_pt)

Scale a point-based pattern in place to device pixels, matching matplotlib: multiply each on/off length (points) by the line width (points), then convert points to pixels via px = pt * dpi / 72. The solid sentinel is left untouched.

Arguments

Type IntentOptional Attributes Name
real(kind=wp), intent(inout) :: pattern(20)
integer, intent(in) :: pattern_size
real(kind=wp), intent(in) :: dpi
real(kind=wp), intent(in) :: line_width_pt