converted plot to codemirror base
converted plot to codemirror base