Tag Info

New answers tagged

3

You have to add xtick=data so that xticks are taken from data. \documentclass[tikz, border=10pt]{standalone} \usepackage[english]{babel} \usepackage{pgfplots} \begin{document} \begin{tikzpicture} \begin{axis} [width=8cm, symbolic x coords={egg,corn,spoon},xtick=data] \addplot plot coordinates{ (egg,2) (corn,6) ...



Top 50 recent answers are included