def __init__(self, args):
        if args.term == "null":
            self.loaded = False
            return
        BasePlugin.__init__(self)
        self.time = None
        sys.path.append(os.path.abspath(os.path.join(os.path.dirname(__file__), "..", "terminals")))
        try:
            terminal = importlib.import_module(args.term + "_terminal")
        except ImportError as e:
            print("Terminal %s not available: %s" % (args.term, e))
            raise SystemExit
        self.debug = args.debug

        m = re.match(r"(\d+)x(\d+)", args.geometry)
        if m is None:
            print("Invalid geometry `%s`" % args.geometry)
            args.width, args.height = 80, 24
        else:
            args.width = int(m.group(1))
            args.height = int(m.group(2))

        self.term = terminal.Terminal(args)
        self.name += "-%s" % args.term
        self.term.show()
Plot a surface for 3d plotting for the inputs (X, Y, Z).
dataset/ETHPy150Open jtauber/dcpu16py/plugins/terminalplugin.py/TerminalPlugin.__init__--crossover with--dataset/ETHPy150Open SheffieldML/GPy/GPy/plotting/abstract_plotting_library.py/AbstractPlottingLibrary.surface