Skip to content

Missing character warnings when dividing large numbers by 1e9 #514

@frx-wintermute

Description

@frx-wintermute

Hello and thanks for developing pgfplots!

I am seeing missing character warnings in some plots. Please take a look at the following MWE:

\documentclass[tikz,margin=1pt]{standalone}
\usepackage{pgfplots}
\pgfplotsset{compat=1.18}
\begin{document}
\begin{tikzpicture}
  \pagecolor{white}
  \begin{axis}
    \addplot
    table
    [
      x expr={\thisrowno{0}/1e9},
      y expr={\thisrowno{1}},
    ]
    {
      1100000000   30
      1400000000   80
      1800000000   65
    };
  \end{axis}
\end{tikzpicture}
\end{document}

The PDF file obtained (with both pdflatex and lualatex) looks correct, but I see the following warnings:

$ texfot pdflatex null_ch_test
/usr/bin/texfot: invoking: pdflatex null_ch_test
This is pdfTeX, Version 3.141592653-2.6-1.40.28 (TeX Live 2025/Debian) (preloaded format=pdflatex)
Missing character: There is no 0 in font nullfont!
Missing character: There is no 0 in font nullfont!
Missing character: There is no 0 in font nullfont!
Missing character: There is no 0 in font nullfont!
Missing character: There is no 0 in font nullfont!
Missing character: There is no 0 in font nullfont!
Missing character: There is no 0 in font nullfont!
Missing character: There is no 0 in font nullfont!
Output written on null_ch_test.pdf (1 page, 19452 bytes).
$ texfot lualatex null_ch_test
/usr/bin/texfot: invoking: lualatex null_ch_test
This is LuaHBTeX, Version 1.22.0 (TeX Live 2025/Debian) 
Missing character: There is no 0 (U+0030) in font nullfont!
Missing character: There is no 0 (U+0030) in font nullfont!
Missing character: There is no 0 (U+0030) in font nullfont!
Missing character: There is no 0 (U+0030) in font nullfont!
Missing character: There is no 0 (U+0030) in font nullfont!
Missing character: There is no 0 (U+0030) in font nullfont!
Missing character: There is no 0 (U+0030) in font nullfont!
Missing character: There is no 0 (U+0030) in font nullfont!
Output written on null_ch_test.pdf (1 page, 17865 bytes).

Please note that an identical PDF file may be obtained without any warnings with the following modified LaTeX code:

\documentclass[tikz,margin=1pt]{standalone}
\usepackage{pgfplots}
\pgfplotsset{compat=1.18}
\begin{document}
\begin{tikzpicture}
  \pagecolor{white}
  \begin{axis}
    \addplot
    table
    [
      x expr={\thisrowno{0}},
      y expr={\thisrowno{1}},
    ]
    {
      1.100000000   30
      1.400000000   80
      1.800000000   65
    };
  \end{axis}
\end{tikzpicture}
\end{document}

Is there anything wrong with the MWE code?
Or is there anything that should be fixed in pgfplots?

Please let me know, thanks for your time and dedication! :-)

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions