legend Subroutine

public subroutine legend(loc, box, fontsize, position)

Display figure legend (matplotlib-compatible)

Arguments mirror matplotlib.pyplot.legend: loc - legend location string (e.g. 'upper right', 'best') box - accepted for compatibility; styling not yet implemented fontsize - accepted for compatibility; styling not yet implemented position - deprecated alias for loc, kept for backward compatibility

Arguments

Type IntentOptional Attributes Name
character(len=*), intent(in), optional :: loc
logical, intent(in), optional :: box
integer, intent(in), optional :: fontsize
character(len=*), intent(in), optional :: position