Graphics, Figures & TablesMaking bar diagrams

Information and discussion about graphics, figures & tables in LaTeX documents.
Post Reply
Hakarl
Posts: 14
Joined: Sun Feb 18, 2018 7:59 pm

Making bar diagrams

Post by Hakarl »

Hello everyone,

I am trying to build simple bar diagrams in a latex document and found the bardiag package. I have read the description for the package but I unsure about the preamble needed to use this package. I am a relative newbie so still learning. Other use use package{bardiag} and say document class{article} for example what else do I need to make this thing run?

Many thanks

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org
TikZ book
User avatar
Stefan Kottwitz
Site Admin
Posts: 10311
Joined: Mon Mar 10, 2008 9:44 pm

Making bar diagrams

Post by Stefan Kottwitz »

Hi Hakarl!

Have a look at this example: http://latex-cookbook.net/cookbook/examples/bar-chart/.

I made it using the pgfplots package. The example has a complete preamble and all necessary settings.

Stefan
LaTeX.org admin
Hakarl
Posts: 14
Joined: Sun Feb 18, 2018 7:59 pm

Making bar diagrams

Post by Hakarl »

Stefan,

Thanks for the advice. I will try the pgfplots package instead. The bardiag package seems to be obsolete by the way and in fact latex recommends using pstricks instead when you try to compile using bardiag.

H

P. S. I have the manual you referred to.
Post Reply