File tree Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -476,7 +476,7 @@ def plot(
476476 start = None ,
477477 goal = None ,
478478 ax = None ,
479- block = False ,
479+ block = None ,
480480 bgargs = {},
481481 ** unused ,
482482 ):
@@ -587,7 +587,6 @@ def plot(
587587 :seealso: :meth:`plot_bg` :func:`base.plot_poly`
588588 """
589589 # create default markers
590-
591590 # passed to Matplotlib plot()
592591 if start_marker is None :
593592 start_marker = {
@@ -803,7 +802,7 @@ def plot_bg(
803802 ax = None ,
804803 inflated = True ,
805804 colorbar = True ,
806- block = False ,
805+ block = None ,
807806 ** unused ,
808807 ):
809808 """
@@ -905,7 +904,7 @@ def plot_bg(
905904 # overlay obstacles
906905 c_map = mpl .colors .ListedColormap (colors )
907906 # 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 )
909908
910909 ax .set_facecolor ((1 , 1 , 1 )) # create white background
911910 ax .set_xlabel ("x (cells)" )
@@ -916,8 +915,9 @@ def plot_bg(
916915 # ax.set_xlim(ax.get_xlim())
917916 # ax.set_ylim(ax.get_ylim())
918917
919- plt .draw ()
920- plt .show (block = False )
918+ # plt.draw()
919+ if block is not None :
920+ plt .show (block = block )
921921
922922 def message (self , s , color = None ):
923923 """
You can’t perform that action at this time.
0 commit comments