我也做了下面的代碼從文件中繪製的節點和邊緣的彩色地圖顏色: ## NODES COLORS##
Active={}
with open('NWWE/node'+str('{:03d}'.format(i))+'.txt', 'r') as f:
for j in f:
a,b=j.split(',')
Active[a]=b[0]
for node in G
我試圖重疊兩個圖表區域。他們會共享相同的x值,但Y會有不同的值和尺度。 這裏是我的代碼結果: 正如你所看到的紅色系列是不符合綠色series.I正在尋找這個網站的答案比對,但無法找到一個工作。有人能解釋我爲什麼不對齊嗎? 代碼: using System;
using System.Drawing;
using System.Windows.Forms;
using System.Windo