TransWikia.com

Plot Totcounter-Value

TeX - LaTeX Asked by cmprmsd on June 22, 2021

I’m trying to get tikzpicture and pgfplots working with totcount to create the following bars.

Example from Word

I count all occurrences of the different ratings with totcounter and in text I am able to read the counts with:

total{critCounter}
total{highCounter}
total{mediumCounter}
total{lowCounter}
total{infoCounter}

But when I try to load the values into a plot, I get a plethora of error messages.

addplot[style={black,fill=red,mark=none}]
        coordinates {(Kritisch,total{highCount})};

The messages reach from Missing number, treated as zero. to Missing endcsname inserted. and Undefined control sequence.

I guess this burns down to compilation sequence issues. Does anyone have an idea for a better approach?
The graph should show the identified issue ratings through the document, which I just count and want to visualize.

One Answer

I should answer myself here.

The totcounter package is incompatible with pgfplot and I solved the issue by using xassoccnt.

Define the counter: NewTotalDocumentCounter{countername} Step like any other counter: stepcounter{countername} Read the counter: TotalValue{countername}

Answered by cmprmsd on June 22, 2021

Add your own answers!

Ask a Question

Get help from others!

© 2024 TransWikia.com. All rights reserved. Sites we Love: PCI Database, UKBizDB, Menu Kuliner, Sharing RPP