From 497d782e2c92f4699780fae0abf254a77714ff0f Mon Sep 17 00:00:00 2001 From: Peter Corke Date: Fri, 16 Oct 2026 16:56:28 +1000 Subject: [PATCH] fix(figures): drop path_marker= from fig5_16 and fig5_20 RTB's PlannerBase.plot accepted path_marker but never used it, so these scripts drew the default path style, which is what the published figures show. RTB now honours path_marker (as a deprecated alias of path_style), so passing it would change the figures. Remove the argument and the now-unused style variables, so the scripts keep producing the printed figures. Co-Authored-By: Claude Sonnet 5.5 --- figures/code/chapter5/fig5_16.py | 5 ++--- figures/code/chapter5/fig5_20.py | 4 +--- 2 files changed, 3 insertions(+), 6 deletions(-) diff --git a/figures/code/chapter5/fig5_16.py b/figures/code/chapter5/fig5_16.py index 081a6fb..9f5bea3 100755 --- a/figures/code/chapter5/fig5_16.py +++ b/figures/code/chapter5/fig5_16.py @@ -9,17 +9,16 @@ floorplan = house['floorplan'] places = house['places'] -pmarker = dict(markersize=6, color='y') dx = DistanceTransformPlanner(floorplan, inflate=5) dx.plan(places.kitchen) p = dx.query(places.br3) -dx.plot(p, inflated=True, path_marker=pmarker) +dx.plot(p, inflated=True) rvcprint.rvcprint() # plt.clf() # dx = DistanceTransformPlanner(floorplan) # dx.plan(places.kitchen) -# dx.plot(path=p, path_marker=pmarker, start=places.br3) +# dx.plot(path=p, start=places.br3) # rvcprint.rvcprint(subfig='b'); diff --git a/figures/code/chapter5/fig5_20.py b/figures/code/chapter5/fig5_20.py index 0523c81..10c1637 100755 --- a/figures/code/chapter5/fig5_20.py +++ b/figures/code/chapter5/fig5_20.py @@ -25,9 +25,7 @@ path = prm.query(places.br3, places.kitchen) print(prm) -striped_line = (dict(color='k', linewidth=3, zorder=21), - dict(color='yellow', linewidth=2, dashes=(4,4), zorder=21)) -prm.plot(path, edge=dict(alpha=0.1), vertex=dict(alpha=0.1), path_marker=striped_line) +prm.plot(path, edge=dict(alpha=0.1), vertex=dict(alpha=0.1)) rvcprint.rvcprint(subfig='a', thicken=None)