publiplots.get_hatch_mode

publiplots.get_hatch_mode()[source]

Get the current global hatch pattern density mode.

Reads pp.rcParams["hatch_mode"]; returns the package default (1) if no other mode has been set.

Returns:

Current hatch mode (one of 1, 2, 3, 4).

Return type:

int

Examples

Check the current mode:

>>> import publiplots as pp
>>> pp.get_hatch_mode()
1

Change and verify the mode:

>>> pp.set_hatch_mode(3)
>>> pp.get_hatch_mode()
3

Reset to the default:

>>> pp.set_hatch_mode()
>>> pp.get_hatch_mode()
1

See also

set_hatch_mode

Set or reset the global hatch mode.

get_hatch_patterns

Get patterns for a specific mode.