MCPcopy Index your code
hub / github.com/matplotlib/matplotlib / set_hatch

Method set_hatch

lib/matplotlib/patches.py:619–647  ·  view source on GitHub ↗

r""" Set the hatching pattern. *hatch* can be one of:: / - diagonal hatching \ - back diagonal | - vertical - - horizontal + - crossed x - crossed diagonal o - small circle O - large cir

(self, hatch)

Source from the content-addressed store, hash-verified

617 return self._joinstyle.name
618
619 def set_hatch(self, hatch):
620 r"""
621 Set the hatching pattern.
622
623 *hatch* can be one of::
624
625 / - diagonal hatching
626 \ - back diagonal
627 | - vertical
628 - - horizontal
629 + - crossed
630 x - crossed diagonal
631 o - small circle
632 O - large circle
633 . - dots
634 * - stars
635
636 Letters can be combined, in which case all the specified
637 hatchings are done. If same letter repeats, it increases the
638 density of hatching of that pattern.
639
640 Parameters
641 ----------
642 hatch : {'/', '\\', '|', '-', '+', 'x', 'o', 'O', '.', '*'}
643 """
644 # Use validate_hatch(list) after deprecation.
645 mhatch._validate_hatch_pattern(hatch)
646 self._hatch = hatch
647 self.stale = True
648
649 def get_hatch(self):
650 """Return the hatching pattern."""

Callers 8

__init__Method · 0.95
plot_hatchFunction · 0.45
test_pie_hatch_singleFunction · 0.45
test_pie_hatch_multiFunction · 0.45
test_multi_color_hatchFunction · 0.45
test_chunksize_failsFunction · 0.45
sankey_basics.pyFile · 0.45

Calls

no outgoing calls

Tested by 5

plot_hatchFunction · 0.36
test_pie_hatch_singleFunction · 0.36
test_pie_hatch_multiFunction · 0.36
test_multi_color_hatchFunction · 0.36
test_chunksize_failsFunction · 0.36