ascii_minus_to_unicode Function

public function ascii_minus_to_unicode(label) result(converted)

Replace a leading ASCII hyphen-minus (U+002D) marking a negative number with the typographic minus sign U+2212, matching matplotlib's default tick/colorbar labels. Only the sign position is converted; interior hyphens (none occur in numeric labels) and non-negative labels pass through unchanged.

Arguments

Type IntentOptional Attributes Name
character(len=*), intent(in) :: label

Return Value character(len=len)