Làm cách nào để vẽ các loại đường khác nhau trên gnuplot? Tôi phải vẽ các màu khác nhau. Kịch bản của tôi tham gia một số tệp và tôi nghĩ đó là lý do tại sao các dòng không phải là dấu gạch ngang. Chỉ có hai trong số bốn người bị tiêu tan. Cảm ơn FelipeLoại dòng Gnuplot
#!/usr/bin/gnuplot
set grid
set title 'Estado dos arquivos no BTRIM com peers de comportamento condicionado'
set xlabel 'Tempo discreto'
set ylabel 'Quantidade de arquivos'
set style line 1 lc rgb '#0060ad' lt 1 lw 2 pi -1 ps 1.0
set style line 2 lc rgb '#dd181f' lt 9 lw 2 pi -1 ps 1.0
set style line 3 lc rgb '#29c524' lt 6 lw 2 pi -1 ps 1.0
set style line 4 lc rgb '#7D72F9' lt 7 lw 2 pi -1 ps 1.0
set style line 5 lc rgb '#000000' lt 8 lw 2 pi -1 ps 1.0
set termoption dashed
#set pointintervalbox 0
#set boxwidth 0.1
#set style fill solid
plot '<paste ../00/StatisticNormal.txt ../01/StatisticNormal.txt ../02/StatisticNormal.txt ../03/StatisticNormal.txt ../04/StatisticNormal.txt ../05/StatisticNormal.txt ../06/StatisticNormal.txt ../07/StatisticNormal.txt ../08/StatisticNormal.txt ../09/StatisticNormal.txt' smooth unique with line ls 1 title 'Normais', \
'<paste ../00/StatisticVogue.txt ../01/StatisticVogue.txt ../02/StatisticVogue.txt ../03/StatisticVogue.txt ../04/StatisticVogue.txt ../05/StatisticVogue.txt ../06/StatisticVogue.txt ../07/StatisticVogue.txt ../08/StatisticVogue.txt ../09/StatisticVogue.txt' smooth unique with line ls 2 title 'na Moda', \
'<paste ../00/StatisticPopular.txt ../01/StatisticPopular.txt ../02/StatisticPopular.txt ../03/StatisticPopular.txt ../04/StatisticPopular.txt ../05/StatisticPopular.txt ../06/StatisticPopular.txt ../07/StatisticPopular.txt ../08/StatisticPopular.txt ../09/StatisticPopular.txt' smooth unique with line ls 3 title 'Populares', \
'<paste ../00/StatisticRarity.txt ../01/StatisticRarity.txt ../02/StatisticRarity.txt ../03/StatisticRarity.txt ../04/StatisticRarity.txt ../05/StatisticRarity.txt ../06/StatisticRarity.txt ../07/StatisticRarity.txt ../08/StatisticRarity.txt ../09/StatisticRarity.txt' smooth unique with line ls 4 title 'Raros'
pause -1
tôi! "linetype 1" –
Vì vậy, đó là giải pháp của bạn? Nếu bạn sử dụng 'lc' trong định nghĩa kiểu dòng, phần' lt' chỉ để chọn kiểu dấu gạch ngang. Điều này phụ thuộc vào thiết bị đầu cuối. Để xem các loại dấu gạch ngang được hỗ trợ và với loại linetype được liên kết, chỉ cần sử dụng lệnh 'test', ví dụ: 'thiết lập thiết bị đầu cuối pngcairo dashed; đặt đầu ra 'test.png'; kiểm tra; đặt đầu ra' hoặc tương tự với bất kỳ loại thiết bị đầu cuối nào khác. – Christoph