我正在尝试制作一些 kb 值的条形图,但收到此错误:
! Dimension too large.
<to be read again>
\relax
l.254 \bcbar[text=Bule]{19419}
I can't work with sizes bigger than about 19 feet.
Continue and I'll use the largest value I can.
这是我的代码:
\documentclass[a4paper, 10pt]{article}
\usepackage[utf8]{inputenc}
\usepackage{amsmath}
\usepackage{tikz}
\usepackage[romanian]{babel}
\usepackage{graphicx}
\usepackage{hyperref}
\usepackage{listings}
\usepackage{bchart}
%opening
\begin{document}
\begin{bchart}[step=20000,max=100]
\bcbar[text=Bule]{19419}
\bcbar[text=Inserție]{19513}
\bcbar[text=Shell]{19513}
\bcbar[text=Interclasare]{19517}
\bcbar[text=Rapidă]{19525}
\bcbar[text=Selecție]{19537}
\end{bchart}
\end{document}
我如何制作这些值的条形图?谢谢
答案1
这个问题在软件包中有详细记录bchart
。建议将条形图缩放 10 倍左右,然后使用键value
打印出正确的值,即:
\documentclass[10pt,a4paper,roman]{article}
\usepackage{bchart}
\usepackage{graphicx}
\begin{document}
\begin{bchart}[step=100,max=200]
\bcbar[text=Bule,value=19419]{194.19}
\bcbar[text=Inserție,value=19513]{195.13}
\bcbar[text=Shell,value=19513]{195.13}
\bcbar[text=Interclasare,value=19517]{195.17}
\bcbar[text=Rapidă,value=19525]{195.25}
\bcbar[text=Selecție,value=19537]{195.37}
\end{bchart}
\end{document}