Skip to content

Commit ea5dfef

Browse files
authored
Merge pull request #46 from ksunden/patch_examples
fix patch examples
2 parents 8b1d326 + 5190182 commit ea5dfef

File tree

2 files changed

+3
-7
lines changed

2 files changed

+3
-7
lines changed

data_prototype/patches.py

+3-3
Original file line numberDiff line numberDiff line change
@@ -51,8 +51,8 @@ def draw(self, renderer, graph: Graph) -> None:
5151
"x": desc,
5252
"y": desc,
5353
"codes": desc,
54-
"facecolor": Desc((), "display"),
55-
"edgecolor": Desc(("M",), "display"),
54+
"facecolor": scalar,
55+
"edgecolor": scalar,
5656
"linewidth": scalar,
5757
"linestyle": scalar,
5858
"hatch": scalar,
@@ -93,7 +93,7 @@ def draw(self, renderer, graph: Graph) -> None:
9393

9494
if evald["hatch"] is not None:
9595
gc.set_hatch(evald["hatch"])
96-
gc.set_hatch_color(evald["hatch_color"])
96+
# gc.set_hatch_color(evald["hatch_color"])
9797

9898
# if self.get_sketch_params() is not None:
9999
# gc.set_sketch_params(*self.get_sketch_params())

examples/simple_patch.py

-4
Original file line numberDiff line numberDiff line change
@@ -25,12 +25,10 @@
2525
upper_right_x=np.array(-1),
2626
upper_right_y=np.array(3),
2727
edgecolor=np.array([0, 0, 0]),
28-
hatch_color=np.array([0, 0, 0]),
2928
facecolor="green",
3029
linewidth=3,
3130
linestyle="-",
3231
antialiased=np.array([True]),
33-
hatch="*",
3432
fill=np.array([True]),
3533
capstyle=np.array(["round"]),
3634
joinstyle=np.array(["miter"]),
@@ -46,12 +44,10 @@
4644
rotation_point_x=np.array(1),
4745
rotation_point_y=np.array(3.5),
4846
edgecolor=np.array([0.5, 0.2, 0]),
49-
hatch_color=np.array([0, 0, 0]),
5047
facecolor="red",
5148
linewidth=6,
5249
linestyle="-",
5350
antialiased=np.array([True]),
54-
hatch="",
5551
fill=np.array([True]),
5652
capstyle=np.array(["round"]),
5753
joinstyle=np.array(["miter"]),

0 commit comments

Comments
 (0)