Quantcast
Channel: Use count as variable name within \foreach - TeX - LaTeX Stack Exchange
Browsing index pages (2 articles)
↧

Image may be NSFW.
Clik here to view.

Use count as variable name within \foreach

I'm trying to build a bar graph using \foreach.I'd like to have each bar colored based on a variable defined. (this is part of a broader project, so I can't change how they are defined.)Using the...

View Article


Image may be NSFW.
Clik here to view.

Answer by Steven B. Segletes for Use count as variable name within \foreach

The expansion of the optional argument to \addplot was definitely quite finicky. In the end, I use a listofitems list to define and expand the colors. See ADDENDUM for version without...

View Article

Browsing index pages (2 articles)


Latest Images