Hello Bertrand

The most secure way of handling that is to use explicit ticks at.
Replace with
%%%%%%%%
\begin{axis}[xtick={1,2,3,4,5},xticklabels={a,b,c,d,e}]
%%%%%%%%%%%%
It forces ticks at x values 1,2,3,4,5 and then ensures that the first 5
xticklabels names are used!

Kind regards Nick

2010/9/26 Bertrand Masson <bertrandmas...@free.fr>

> For a chart I need ordinate alphanumeric, so I use xticklabels = (a, b,
> c, d, e) to substitute the numerical values. But in this case the first
> ordinate (the a and the b) does not appear. For good result I have to
> write xticklabels = (,,a, b, c, d, e).
> Here is an example
> %%%%%%%%%%%%%%%%%%%%
> \documentclass{article}
> \usepackage{tikz}
> \usepackage{pgfplots}
>
> \begin{document}
> \begin{tikzpicture}
> \begin{axis}[xticklabels={a,b,c,d,e}]
> \addplot coordinates{(1,21)(2,2)(3,12)(4,5)(5,7.5)};
> \end{axis}
> \end{tikzpicture}
> \end{document}
> %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
> I use TexLive2010
> Did I miss something?
> Are there any other method?
> Bertrand
>
>
> ------------------------------------------------------------------------------
> Start uncovering the many advantages of virtual appliances
> and start using them to simplify application deployment and
> accelerate your shift to cloud computing.
> http://p.sf.net/sfu/novell-sfdev2dev
> _______________________________________________
> Pgfplots-features mailing list
> Pgfplots-features@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/pgfplots-features
>
------------------------------------------------------------------------------
Start uncovering the many advantages of virtual appliances
and start using them to simplify application deployment and
accelerate your shift to cloud computing.
http://p.sf.net/sfu/novell-sfdev2dev
_______________________________________________
Pgfplots-features mailing list
Pgfplots-features@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/pgfplots-features

Reply via email to