Test — различия между версиями
Материал из YourcmcWiki
м |
м |
||
Строка 6: | Строка 6: | ||
</gallery> | </gallery> | ||
− | + | plot 'lang.dat' using 2:1 title 'Скорость' with boxes | |
+ | |||
+ | <hbarchart> | ||
+ | C++ 45.9 | ||
+ | Java 8 47.3 | ||
+ | PyPy 34.9 | ||
+ | node.js 32.1 | ||
+ | PHP 7 4.5 | ||
+ | Python 3.5 2.34 | ||
+ | Python 2.7 2.12 | ||
+ | Perl 1.7 | ||
+ | PHP 5.6 1.0 | ||
+ | </hbarchart> | ||
+ | |||
+ | <plot> | ||
+ | set yrange [0:10] | ||
+ | set ytics ('C++' 1, 'Java 8' 2, 'PyPy' 3, 'node.js' 4, 'PHP7' 5, 'Python 3.5' 6, 'Python 2.7' 7, 'Perl' 8, 'PHP 5.6' 9) | ||
+ | set grid xtics | ||
+ | set mxtics 1 | ||
+ | set style fill solid 1.0 noborder | ||
+ | set boxwidth 0.7 relative | ||
+ | plot 'lang.dat' using 'median':'center':'min':'max':(0):($2):ytic(1) with boxxyerrorbars | ||
+ | DATASET lang | ||
+ | 1.0 45.9 | ||
+ | 2.0 47.3 | ||
+ | 3.0 34.9 | ||
+ | 4.0 32.1 | ||
+ | 5.0 4.5 | ||
+ | 6.0 2.34 | ||
+ | 7.0 2.12 | ||
+ | 8.0 1.7 | ||
+ | 9.0 1.0 | ||
+ | ENDDATASET | ||
+ | </plot> |
Версия 15:28, 12 октября 2016
plot 'lang.dat' using 2:1 title 'Скорость' with boxes
|