(self, X, Y, C, mappable)
| 638 | self.dividers.set_segments(segments) |
| 639 | |
| 640 | def _add_solids_patches(self, X, Y, C, mappable): |
| 641 | hatches = mappable.hatches * (len(C) + 1) # Have enough hatches. |
| 642 | if self._extend_lower(): |
| 643 | # remove first hatch that goes into the extend patch |
| 644 | hatches = hatches[1:] |
| 645 | patches = [] |
| 646 | for i in range(len(X) - 1): |
| 647 | xy = np.array([[X[i, 0], Y[i, 1]], |
| 648 | [X[i, 1], Y[i, 0]], |
| 649 | [X[i + 1, 1], Y[i + 1, 0]], |
| 650 | [X[i + 1, 0], Y[i + 1, 1]]]) |
| 651 | patch = mpatches.PathPatch(mpath.Path(xy), |
| 652 | facecolor=self.cmap(self.norm(C[i][0])), |
| 653 | hatch=hatches[i], linewidth=0, |
| 654 | antialiased=False, alpha=self.alpha) |
| 655 | self.ax.add_patch(patch) |
| 656 | patches.append(patch) |
| 657 | self.solids_patches = patches |
| 658 | |
| 659 | def _do_extends(self, ax=None): |
| 660 | """ |
no test coverage detected