grid Subroutine

public subroutine grid(visible, which, axis, alpha, linestyle, enabled)

Toggle or style grid lines (matplotlib-compatible)

Arguments: visible - show grid when .true.; canonical matplotlib name which - 'major', 'minor', or 'both' axis - 'x', 'y', or 'both' alpha - grid line transparency linestyle - grid line style ('-', '--', ':', '-.') enabled - deprecated alias for visible, kept for backward compatibility

Default grid state follows the active style: MPL mode disables grid by default; Vega-Lite mode enables it.

When neither visible nor enabled is present and no styling kwargs are given, grid() is a no-op. When styling kwargs (which, axis, alpha, linestyle) are present without a visibility argument, the grid is implicitly enabled with the given styling.

Arguments

Type IntentOptional Attributes Name
logical, intent(in), optional :: visible
character(len=*), intent(in), optional :: which
character(len=*), intent(in), optional :: axis
real(kind=wp), intent(in), optional :: alpha
character(len=*), intent(in), optional :: linestyle
logical, intent(in), optional :: enabled