original_docstring: Saves the figure as an image by the given path.
docstring: Saves the figure as an image by the given path.
docstring_tokens: Saves the figure as an image by the given path .
code: def save(self, path: str, autoclose: bool = True, resample: int = Image.BILINEAR):
          """Saves the figure as an image by the given path."""
          origin_size = (self.width // 2, self.height // 2)
          self.img = self.img.resize(size=origin_size, resample=resample)
          self.img.save(path, compress_level=1)
  
          if autoclose:
              self.close()
code_tokens: def save ( self , path : str , autoclose : bool = True , resample : int = Image . BILINEAR ) : origin_size = ( self . width // 2 , self . height // 2 ) self . img = self . img . resize ( size = origin_size , resample = resample ) self . img . save ( path , compress_level = 1 ) if autoclose : self . close ( )
short_docstring: Saves the figure as an image by the given path.
short_docstring_tokens: Saves the figure as an image by the given path .
comment: """Saves the figure as an image by the given path."""