File tree 1 file changed +6
-6
lines changed
1 file changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -476,7 +476,7 @@ def plot(
476
476
start = None ,
477
477
goal = None ,
478
478
ax = None ,
479
- block = False ,
479
+ block = None ,
480
480
bgargs = {},
481
481
** unused ,
482
482
):
@@ -587,7 +587,6 @@ def plot(
587
587
:seealso: :meth:`plot_bg` :func:`base.plot_poly`
588
588
"""
589
589
# create default markers
590
-
591
590
# passed to Matplotlib plot()
592
591
if start_marker is None :
593
592
start_marker = {
@@ -803,7 +802,7 @@ def plot_bg(
803
802
ax = None ,
804
803
inflated = True ,
805
804
colorbar = True ,
806
- block = False ,
805
+ block = None ,
807
806
** unused ,
808
807
):
809
808
"""
@@ -905,7 +904,7 @@ def plot_bg(
905
904
# overlay obstacles
906
905
c_map = mpl .colors .ListedColormap (colors )
907
906
# self.occgrid.plot(image, cmap=c_map, zorder=1)
908
- self .occgrid .plot (cmap = c_map , zorder = 1 )
907
+ self .occgrid .plot (cmap = c_map , zorder = 1 , ax = ax )
909
908
910
909
ax .set_facecolor ((1 , 1 , 1 )) # create white background
911
910
ax .set_xlabel ("x (cells)" )
@@ -916,8 +915,9 @@ def plot_bg(
916
915
# ax.set_xlim(ax.get_xlim())
917
916
# ax.set_ylim(ax.get_ylim())
918
917
919
- plt .draw ()
920
- plt .show (block = False )
918
+ # plt.draw()
919
+ if block is not None :
920
+ plt .show (block = block )
921
921
922
922
def message (self , s , color = None ):
923
923
"""
You can’t perform that action at this time.
0 commit comments