Graphics, Figures & TablesIncreasing the decimal digits

Information and discussion about graphics, figures & tables in LaTeX documents.
Post Reply
tarektarek
Posts: 30
Joined: Fri Nov 23, 2007 12:56 am

Increasing the decimal digits

Post by tarektarek »

Hi,
I have a simple question which I could not solve.
If I have numbers along the Y-axis using pgfplots. Say these numbers are
1.1,1.2,1.3,... How can I make them as follows 1.10,1.20,1.30?

Thanks in advance

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org

NEW: TikZ book now 40% off at Amazon.com for a short time.

And: Currently, Packt sells ebooks for $4.99 each if you buy 5 of their over 1000 ebooks. If you choose only a single one, $9.99. How about combining 3 LaTeX books with Python, gnuplot, mathplotlib, Matlab, ChatGPT or other AI books? Epub and PDF. Bundle (3 books, add more for higher discount): https://packt.link/MDH5p

tarektarek
Posts: 30
Joined: Fri Nov 23, 2007 12:56 am

Re: Increasing the decimal digits

Post by tarektarek »

Hello Everyone,
Is there something that is not clear and you need me to clarify?
josephwright
Site Moderator
Posts: 814
Joined: Tue Jul 01, 2008 2:19 pm

Increasing the decimal digits

Post by josephwright »

Code: Select all

\begin{axis}[
    yticklabel style={%
        /pgf/number format/.cd,
            fixed,
            fixed zerofill,
            precision=2,
    }
]
...
Joseph Wright
tarektarek
Posts: 30
Joined: Fri Nov 23, 2007 12:56 am

Re: Increasing the decimal digits

Post by tarektarek »

Thank you josephwright
Post Reply