1
我想在gnuplot中製作一個像圖一樣的樹,到目前爲止我已經將點與標籤排列在樹狀結構中。我想連接節點(點),因此每個節點都將連接到更高級別的節點。如何在gnuplot中繪製一個樹形圖
gnuplot code:
set term png
set output "tree.png"
set xrange [0:50]
set yrange [0:50]
plot 'data.txt' using 1:2:3 with points pointtype 7 lt 1 title 'title', \
'' using 1:2:3 with labels offset 0,char 1
data:
20 35 1
15 30 1.1
10 25 1.1.1
5 20 1.1.1.1
15 20 1.1.1.2
25 30 1.2
30 25 1.2.1
25 20 1.2.1.1
35 20 1.2.1.2
謝謝
非常感謝你:)它完美的作品 –