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

Method set_hatch

lib/matplotlib/collections.py:579–611  ·  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 circ

(self, hatch)

Source from the content-addressed store, hash-verified

577 return self._urls
578
579 def set_hatch(self, hatch):
580 r"""
581 Set the hatching pattern
582
583 *hatch* can be one of::
584
585 / - diagonal hatching
586 \ - back diagonal
587 | - vertical
588 - - horizontal
589 + - crossed
590 x - crossed diagonal
591 o - small circle
592 O - large circle
593 . - dots
594 * - stars
595
596 Letters can be combined, in which case all the specified
597 hatchings are done. If same letter repeats, it increases the
598 density of hatching of that pattern.
599
600 Unlike other properties such as linewidth and colors, hatching
601 can only be specified for the collection as a whole, not separately
602 for each member.
603
604 Parameters
605 ----------
606 hatch : {'/', '\\', '|', '-', '+', 'x', 'o', 'O', '.', '*'}
607 """
608 # Use validate_hatch(list) after deprecation.
609 mhatch._validate_hatch_pattern(hatch)
610 self._hatch = hatch
611 self.stale = True
612
613 def get_hatch(self):
614 """Return the current hatching pattern."""

Callers 2

__init__Method · 0.95
drawMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected