原神角色分析維度框架(構思中)

#要貼就貼能跑的
#python3.9
# -*- coding: UTF-8 -*-
#數(shù)據(jù)分析三板斧安裝
#pip install matplotlib numpy pandas?
#代碼開始
import matplotlib.pyplot as plt
from mpl_toolkits.mplot3d import Axes3D
fig = plt.figure()
#ax = fig.add_subplot(111, projection='3d')
ax = plt.axes(projection='3d')
plt.rcParams['font.sans-serif'] = ['SimHei']? # 用來正常顯示中文標簽
plt.rcParams['axes.unicode_minus'] = False? # 用來正常顯示負號
xs=['反應', '純色','物理']
ys=['輸出', '控制','回復','增傷']
zs=['前臺','后臺','靈活']
plt.title("原神角色分析維度")
ax.set_xlabel('1.類型')
ax.set_ylabel('2.定位')
ax.set_zlabel('3.位置')
#ax.scatter(range(len(xs)), range(len(xs)), zs)
ax.set(xticks=range(len(xs)), xticklabels=xs,
? ? ? ?yticks=range(len(ys)), yticklabels=ys,
? ? ? ?zticks=range(len(zs)), zticklabels=zs
? ? ? ?)?
plt.show()
#代碼結束
#一時興起,構思中。
#參考資料(不給貼外鏈,那就貼標題。)
#- matplotlib完美中文顯示
#- 3d-scatterplot-with-strings-in-python
#- stable/gallery/mplot3d/2dcollections3d
#- Matplotlib基礎--在matplotlib中創(chuàng)建三維圖表