social_dilemmas/envs/map_env.py
def render(self, filename=None):
        """ Creates an image of the map to plot or save.

        Args:
            filename: If a string is passed, will save the image
                      to disk at this location.
        """
        rgb_arr = self.full_map_to_colors()
        plt.cla()
        plt.imshow(rgb_arr, interpolation="nearest")
        if filename is None:
            plt.show()
        else:
            plt.savefig(filename)
 Creates an image of the map to plot or save.

        Args:
            filename: If a string is passed, will save the image
                      to disk at this location.
        
Creates an image of the map to plot or save.
Creates an image of the map to plot or save .
def render(self, filename=None):
        rgb_arr = self.full_map_to_colors()
        plt.cla()
        plt.imshow(rgb_arr, interpolation="nearest")
        if filename is None:
            plt.show()
        else:
            plt.savefig(filename)
def render ( self , filename = None ) : rgb_arr = self . full_map_to_colors ( ) plt . cla ( ) plt . imshow ( rgb_arr , interpolation = "nearest" ) if filename is None : plt . show ( ) else : plt . savefig ( filename )
Creates an image of the map to plot or save.
Creates an image of the map to plot or save .
""" Creates an image of the map to plot or save.

        Args:
            filename: If a string is passed, will save the image
                      to disk at this location.
        """
self
filename
If a string is passed, will save the image
to disk at this location.
If a string is passed will save the image to disk at this location .