1

コマンドを使用してプロットした太陽スペクトルの 3D ライン プロットがあります。

from mpl_toolkits.mplot3d.axes3d import Axes3D
from matplotlib.collections import PolyCollection, LineCollection
from matplotlib.colors import colorConverter, ListedColormap, BoundaryNorm
import matplotlib.cm as cm

fig = plt.figure(figsize(15, 8))
ax = fig.gca(projection='3d')

x = SpectrumDF['Wavelength']
z = SpectrumDF['DNI']
y = SpectrumDF['TESTNUM']

ax.plot(x, y, z)
ax.set_xlabel('Wavelength')
ax.set_ylabel('Test Number')
ax.set_zlabel('Intensity')

結果のプロットは青一色で、関数 plot( ) で指定した個々の色を使用します。

z 軸に沿って色のグラデーション、強度を作成しようとしましたが、成功しませんでした。

約 500 のテスト番号があり、それぞれに 744 のデータ ポイントがあります。

お手伝いありがとう!

十分な評判がないため、これでは画像を投稿できません。とにかく、これは私がこのコードを使用して得たプロットへのリンクですhttps://plus.google.com/106871046257785761571/posts/fMYsDF5wAQa

ここに画像の説明を入力

4

1 に答える 1