publiplots.get_hatch_mode¶
- publiplots.get_hatch_mode()[source]¶
Get the current global hatch pattern density mode.
Returns the mode that will be used for hatch pattern generation. If no mode has been explicitly set, returns DEFAULT_HATCH_MODE from config.
- Returns:
Current hatch mode (1, 2, 3, or 4).
- Return type:
Examples
Check current mode: >>> import publiplots as pp >>> pp.get_hatch_mode() 1
Change and verify mode: >>> pp.set_hatch_mode(3) >>> pp.get_hatch_mode() 3
Reset to default: >>> pp.set_hatch_mode() # Reset using no arguments >>> pp.get_hatch_mode() 1
See also
set_hatch_modeSet or reset the global hatch mode
get_hatch_patternsGet patterns for a specific mode