Test — различия между версиями
Материал из YourcmcWiki
м |
м |
||
Строка 9: | Строка 9: | ||
<hbarchart> | <hbarchart> | ||
− | C++ | + | C++ 45.9 |
Java 8 47.3 | Java 8 47.3 | ||
PyPy 34.9 | PyPy 34.9 | ||
Строка 21: | Строка 21: | ||
<plot> | <plot> | ||
+ | binwidth=0.5 | ||
set yrange [0:10] | 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 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) | ||
Строка 27: | Строка 28: | ||
set style fill solid 1.0 noborder | set style fill solid 1.0 noborder | ||
set boxwidth 0.7 relative | set boxwidth 0.7 relative | ||
− | plot 'lang.dat' using ' | + | plot 'lang.dat' using 2:1:(0.0):2:(($1)-(binwidth/2.0)):(($1)+(binwidth/2.0)) with boxxyerrorbars title 'Быстрее PHP 5.6 в X раз' |
+ | DATASET lang | ||
+ | 1.0 61.39 | ||
+ | 2.0 48.32 | ||
+ | 3.0 40.12 | ||
+ | 4.0 34.5 | ||
+ | 5.0 10.3 | ||
+ | 6.0 3.63 | ||
+ | 7.0 3.29 | ||
+ | 8.0 2.76 | ||
+ | 9.0 1.0 | ||
+ | ENDDATASET | ||
+ | </plot> | ||
+ | |||
+ | <plot> | ||
+ | binwidth=0.5 | ||
+ | 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 2:1:(0.0):2:(($1)-(binwidth/2.0)):(($1)+(binwidth/2.0)) with boxxyerrorbars title 'Быстрее PHP 5.6 в X раз' | ||
DATASET lang | DATASET lang | ||
1.0 45.9 | 1.0 45.9 |
Версия 15:35, 12 октября 2016
plot 'lang.dat' using 2:1 title 'Скорость' with boxes
|