# -*- coding: utf-8 -*-
"""
Spyder 编辑器
这是一个临时脚本文件。
"""
# import pygal
from mpl_toolkits.mplot3d import Axes3D
import numpy as np
import matplotlib.pyplot as plt
import xlrd
# import pandas as pd
# from matplotlib import cm
# import matplotlib as mpl
fig = plt.figure()
ax = plt.subplot(111,projection='3d')
导入数据
# workBook = xlrd.open_workbook(r'C:\Users\123\Desktop\1.xlsx')
# sheet1_content1 = workBook.sheet_by_index(1)
# ax = fig.add_subplot(111, projection='3d')
# x = sheet1_content1.col_values(4)#
# y = sheet1_content1.col_values(3)#
# z = sheet1_content1.col_values(1)#
#颜色
colors = plt.cm.jet(np.array(z).flatten()/float(np.array(z).max()))
#添加线条与线条注释
plt.plot([2,2],[-4,