Something went wrong. Try again.
This repository has no description
Something went wrong. Try again.
1.3 kB · 44 lines
at develop
123456789101112131415161718192021222324252627282930313233343536373839404142434445\documentclass{standalone}\usepackage{pgfplots}\usepackage{pgfplotstable}\pgfplotsset{compat=1.17}\usetikzlibrary{patterns}
\begin{document}
\definecolor{cb1}{RGB}{230, 159, 0}\definecolor{cb2}{RGB}{ 86, 180, 223}\definecolor{cb3}{RGB}{ 0, 158, 115}\definecolor{cb4}{RGB}{240, 228, 66}
\pgfplotstableread[ col sep=comma,]{assets/table/rew_functional.csv}\rewFuncData{}\begin{tikzpicture}\begin{axis}[ xbar, reverse legend, legend style={at={(0.77,0.8)}, anchor=west,legend columns=1}, xlabel={Run-time (ms)}, symbolic y coords={{A(3,6)},{Fib(23)},{Tak(18,12,6)}}, ytick=data, % cycle list name=exotic, nodes near coords, nodes near coords align={horizontal}, width = \columnwidth, height = 8cm, enlarge y limits={0.3}, enlarge x limits={0.03}, xmin = 0, xmax = 130,]\addplot[fill=cb1, postaction={pattern=grid}] table [y={test}, x={MiniZinc}]{\rewFuncData};\addplot[fill=cb2, postaction={pattern=north east lines}] table [y={test}, x={Python}]{\rewFuncData};\addplot[fill=cb3, postaction={pattern=dots}] table [y={test}, x={Prototype}]{\rewFuncData};\addplot[fill=cb4] table [y={test}, x={OCaml}]{\rewFuncData};\legend{MiniZinc,Python,Prototype,OCaml}\end{axis}\end{tikzpicture}
\end{document}