Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions data_prototype/patches.py
Original file line number Diff line number Diff line change
Expand Up @@ -51,8 +51,8 @@ def draw(self, renderer, graph: Graph) -> None:
"x": desc,
"y": desc,
"codes": desc,
"facecolor": Desc((), "display"),
"edgecolor": Desc(("M",), "display"),
"facecolor": scalar,
"edgecolor": scalar,
"linewidth": scalar,
"linestyle": scalar,
"hatch": scalar,
Expand Down Expand Up @@ -93,7 +93,7 @@ def draw(self, renderer, graph: Graph) -> None:

if evald["hatch"] is not None:
gc.set_hatch(evald["hatch"])
gc.set_hatch_color(evald["hatch_color"])
# gc.set_hatch_color(evald["hatch_color"])

# if self.get_sketch_params() is not None:
# gc.set_sketch_params(*self.get_sketch_params())
Expand Down
4 changes: 0 additions & 4 deletions examples/simple_patch.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,12 +25,10 @@
upper_right_x=np.array(-1),
upper_right_y=np.array(3),
edgecolor=np.array([0, 0, 0]),
hatch_color=np.array([0, 0, 0]),
facecolor="green",
linewidth=3,
linestyle="-",
antialiased=np.array([True]),
hatch="*",
fill=np.array([True]),
capstyle=np.array(["round"]),
joinstyle=np.array(["miter"]),
Expand All @@ -46,12 +44,10 @@
rotation_point_x=np.array(1),
rotation_point_y=np.array(3.5),
edgecolor=np.array([0.5, 0.2, 0]),
hatch_color=np.array([0, 0, 0]),
facecolor="red",
linewidth=6,
linestyle="-",
antialiased=np.array([True]),
hatch="",
fill=np.array([True]),
capstyle=np.array(["round"]),
joinstyle=np.array(["miter"]),
Expand Down
Loading