Remove cientific notation in a tikzpicture axis xbar graph












1















How can I remove the scientific notation of each bar's value?



begin{tikzpicture}
begin{axis}[
xbar,
bar width = .3cm,
y axis line style = { opacity = 0 },
ytick = data,
yticklabels = {TACos-MLevel, LSMDC, 20BN-S-S},
% scaled ticks = false
% tick label style = {/pgf/number format/fixed}
y dir = reverse,
axis x line = none,
width = .7textwidth,
height = .5textwidth,
xmin = 0,
xmax = 320000,
xlabel = {number of clips},
point meta = explicit symbolic,
visualization depends on=xasDataX,
nodes near coords ={pgfmathprintnumber{DataX} pgfplotspointmeta},
nodes near coords align=right,
enlarge y limits={abs=2*pgfplotbarwidth}
]
addplot coordinates {
(185,0)
(108503,1)
(220847,2)
};
addplot coordinates {
(52593,0)
(108503,1)
(318572,2)
};
legend{videos, sentences}
end{axis}
end{tikzpicture}


output









share



























    1















    How can I remove the scientific notation of each bar's value?



    begin{tikzpicture}
    begin{axis}[
    xbar,
    bar width = .3cm,
    y axis line style = { opacity = 0 },
    ytick = data,
    yticklabels = {TACos-MLevel, LSMDC, 20BN-S-S},
    % scaled ticks = false
    % tick label style = {/pgf/number format/fixed}
    y dir = reverse,
    axis x line = none,
    width = .7textwidth,
    height = .5textwidth,
    xmin = 0,
    xmax = 320000,
    xlabel = {number of clips},
    point meta = explicit symbolic,
    visualization depends on=xasDataX,
    nodes near coords ={pgfmathprintnumber{DataX} pgfplotspointmeta},
    nodes near coords align=right,
    enlarge y limits={abs=2*pgfplotbarwidth}
    ]
    addplot coordinates {
    (185,0)
    (108503,1)
    (220847,2)
    };
    addplot coordinates {
    (52593,0)
    (108503,1)
    (318572,2)
    };
    legend{videos, sentences}
    end{axis}
    end{tikzpicture}


    output









    share

























      1












      1








      1








      How can I remove the scientific notation of each bar's value?



      begin{tikzpicture}
      begin{axis}[
      xbar,
      bar width = .3cm,
      y axis line style = { opacity = 0 },
      ytick = data,
      yticklabels = {TACos-MLevel, LSMDC, 20BN-S-S},
      % scaled ticks = false
      % tick label style = {/pgf/number format/fixed}
      y dir = reverse,
      axis x line = none,
      width = .7textwidth,
      height = .5textwidth,
      xmin = 0,
      xmax = 320000,
      xlabel = {number of clips},
      point meta = explicit symbolic,
      visualization depends on=xasDataX,
      nodes near coords ={pgfmathprintnumber{DataX} pgfplotspointmeta},
      nodes near coords align=right,
      enlarge y limits={abs=2*pgfplotbarwidth}
      ]
      addplot coordinates {
      (185,0)
      (108503,1)
      (220847,2)
      };
      addplot coordinates {
      (52593,0)
      (108503,1)
      (318572,2)
      };
      legend{videos, sentences}
      end{axis}
      end{tikzpicture}


      output









      share














      How can I remove the scientific notation of each bar's value?



      begin{tikzpicture}
      begin{axis}[
      xbar,
      bar width = .3cm,
      y axis line style = { opacity = 0 },
      ytick = data,
      yticklabels = {TACos-MLevel, LSMDC, 20BN-S-S},
      % scaled ticks = false
      % tick label style = {/pgf/number format/fixed}
      y dir = reverse,
      axis x line = none,
      width = .7textwidth,
      height = .5textwidth,
      xmin = 0,
      xmax = 320000,
      xlabel = {number of clips},
      point meta = explicit symbolic,
      visualization depends on=xasDataX,
      nodes near coords ={pgfmathprintnumber{DataX} pgfplotspointmeta},
      nodes near coords align=right,
      enlarge y limits={abs=2*pgfplotbarwidth}
      ]
      addplot coordinates {
      (185,0)
      (108503,1)
      (220847,2)
      };
      addplot coordinates {
      (52593,0)
      (108503,1)
      (318572,2)
      };
      legend{videos, sentences}
      end{axis}
      end{tikzpicture}


      output







      tikz-pgf





      share












      share










      share



      share










      asked 6 mins ago









      jperezmartinjperezmartin

      304




      304






















          1 Answer
          1






          active

          oldest

          votes


















          0














          Just use another number format. In this example I added fixed: pgfmathprintnumber[fixed]{DataX} pgfplotspointmeta.



          documentclass[tikz,border=3.14mm]{standalone}
          usepackage{pgfplots}
          pgfplotsset{compat=1.16}
          begin{document}
          begin{tikzpicture}
          begin{axis}[
          xbar,
          bar width = .3cm,
          y axis line style = { opacity = 0 },
          ytick = data,
          yticklabels = {TACos-MLevel, LSMDC, 20BN-S-S},
          % scaled ticks = false
          % tick label style = {/pgf/number format/fixed}
          y dir = reverse,
          axis x line = none,
          width = .7textwidth,
          height = .5textwidth,
          xmin = 0,
          xmax = 320000,
          xlabel = {number of clips},
          point meta = explicit symbolic,
          visualization depends on=xasDataX,
          nodes near coords ={pgfmathprintnumber[fixed]{DataX} pgfplotspointmeta},
          nodes near coords align=right,
          enlarge y limits={abs=2*pgfplotbarwidth}
          ]
          addplot coordinates {
          (185,0)
          (108503,1)
          (220847,2)
          };
          addplot coordinates {
          (52593,0)
          (108503,1)
          (318572,2)
          };
          legend{videos, sentences}
          end{axis}
          end{tikzpicture}
          end{document}


          enter image description here





          share























            Your Answer








            StackExchange.ready(function() {
            var channelOptions = {
            tags: "".split(" "),
            id: "85"
            };
            initTagRenderer("".split(" "), "".split(" "), channelOptions);

            StackExchange.using("externalEditor", function() {
            // Have to fire editor after snippets, if snippets enabled
            if (StackExchange.settings.snippets.snippetsEnabled) {
            StackExchange.using("snippets", function() {
            createEditor();
            });
            }
            else {
            createEditor();
            }
            });

            function createEditor() {
            StackExchange.prepareEditor({
            heartbeatType: 'answer',
            autoActivateHeartbeat: false,
            convertImagesToLinks: false,
            noModals: true,
            showLowRepImageUploadWarning: true,
            reputationToPostImages: null,
            bindNavPrevention: true,
            postfix: "",
            imageUploader: {
            brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
            contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
            allowUrls: true
            },
            onDemand: true,
            discardSelector: ".discard-answer"
            ,immediatelyShowMarkdownHelp:true
            });


            }
            });














            draft saved

            draft discarded


















            StackExchange.ready(
            function () {
            StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2ftex.stackexchange.com%2fquestions%2f477974%2fremove-cientific-notation-in-a-tikzpicture-axis-xbar-graph%23new-answer', 'question_page');
            }
            );

            Post as a guest















            Required, but never shown

























            1 Answer
            1






            active

            oldest

            votes








            1 Answer
            1






            active

            oldest

            votes









            active

            oldest

            votes






            active

            oldest

            votes









            0














            Just use another number format. In this example I added fixed: pgfmathprintnumber[fixed]{DataX} pgfplotspointmeta.



            documentclass[tikz,border=3.14mm]{standalone}
            usepackage{pgfplots}
            pgfplotsset{compat=1.16}
            begin{document}
            begin{tikzpicture}
            begin{axis}[
            xbar,
            bar width = .3cm,
            y axis line style = { opacity = 0 },
            ytick = data,
            yticklabels = {TACos-MLevel, LSMDC, 20BN-S-S},
            % scaled ticks = false
            % tick label style = {/pgf/number format/fixed}
            y dir = reverse,
            axis x line = none,
            width = .7textwidth,
            height = .5textwidth,
            xmin = 0,
            xmax = 320000,
            xlabel = {number of clips},
            point meta = explicit symbolic,
            visualization depends on=xasDataX,
            nodes near coords ={pgfmathprintnumber[fixed]{DataX} pgfplotspointmeta},
            nodes near coords align=right,
            enlarge y limits={abs=2*pgfplotbarwidth}
            ]
            addplot coordinates {
            (185,0)
            (108503,1)
            (220847,2)
            };
            addplot coordinates {
            (52593,0)
            (108503,1)
            (318572,2)
            };
            legend{videos, sentences}
            end{axis}
            end{tikzpicture}
            end{document}


            enter image description here





            share




























              0














              Just use another number format. In this example I added fixed: pgfmathprintnumber[fixed]{DataX} pgfplotspointmeta.



              documentclass[tikz,border=3.14mm]{standalone}
              usepackage{pgfplots}
              pgfplotsset{compat=1.16}
              begin{document}
              begin{tikzpicture}
              begin{axis}[
              xbar,
              bar width = .3cm,
              y axis line style = { opacity = 0 },
              ytick = data,
              yticklabels = {TACos-MLevel, LSMDC, 20BN-S-S},
              % scaled ticks = false
              % tick label style = {/pgf/number format/fixed}
              y dir = reverse,
              axis x line = none,
              width = .7textwidth,
              height = .5textwidth,
              xmin = 0,
              xmax = 320000,
              xlabel = {number of clips},
              point meta = explicit symbolic,
              visualization depends on=xasDataX,
              nodes near coords ={pgfmathprintnumber[fixed]{DataX} pgfplotspointmeta},
              nodes near coords align=right,
              enlarge y limits={abs=2*pgfplotbarwidth}
              ]
              addplot coordinates {
              (185,0)
              (108503,1)
              (220847,2)
              };
              addplot coordinates {
              (52593,0)
              (108503,1)
              (318572,2)
              };
              legend{videos, sentences}
              end{axis}
              end{tikzpicture}
              end{document}


              enter image description here





              share


























                0












                0








                0







                Just use another number format. In this example I added fixed: pgfmathprintnumber[fixed]{DataX} pgfplotspointmeta.



                documentclass[tikz,border=3.14mm]{standalone}
                usepackage{pgfplots}
                pgfplotsset{compat=1.16}
                begin{document}
                begin{tikzpicture}
                begin{axis}[
                xbar,
                bar width = .3cm,
                y axis line style = { opacity = 0 },
                ytick = data,
                yticklabels = {TACos-MLevel, LSMDC, 20BN-S-S},
                % scaled ticks = false
                % tick label style = {/pgf/number format/fixed}
                y dir = reverse,
                axis x line = none,
                width = .7textwidth,
                height = .5textwidth,
                xmin = 0,
                xmax = 320000,
                xlabel = {number of clips},
                point meta = explicit symbolic,
                visualization depends on=xasDataX,
                nodes near coords ={pgfmathprintnumber[fixed]{DataX} pgfplotspointmeta},
                nodes near coords align=right,
                enlarge y limits={abs=2*pgfplotbarwidth}
                ]
                addplot coordinates {
                (185,0)
                (108503,1)
                (220847,2)
                };
                addplot coordinates {
                (52593,0)
                (108503,1)
                (318572,2)
                };
                legend{videos, sentences}
                end{axis}
                end{tikzpicture}
                end{document}


                enter image description here





                share













                Just use another number format. In this example I added fixed: pgfmathprintnumber[fixed]{DataX} pgfplotspointmeta.



                documentclass[tikz,border=3.14mm]{standalone}
                usepackage{pgfplots}
                pgfplotsset{compat=1.16}
                begin{document}
                begin{tikzpicture}
                begin{axis}[
                xbar,
                bar width = .3cm,
                y axis line style = { opacity = 0 },
                ytick = data,
                yticklabels = {TACos-MLevel, LSMDC, 20BN-S-S},
                % scaled ticks = false
                % tick label style = {/pgf/number format/fixed}
                y dir = reverse,
                axis x line = none,
                width = .7textwidth,
                height = .5textwidth,
                xmin = 0,
                xmax = 320000,
                xlabel = {number of clips},
                point meta = explicit symbolic,
                visualization depends on=xasDataX,
                nodes near coords ={pgfmathprintnumber[fixed]{DataX} pgfplotspointmeta},
                nodes near coords align=right,
                enlarge y limits={abs=2*pgfplotbarwidth}
                ]
                addplot coordinates {
                (185,0)
                (108503,1)
                (220847,2)
                };
                addplot coordinates {
                (52593,0)
                (108503,1)
                (318572,2)
                };
                legend{videos, sentences}
                end{axis}
                end{tikzpicture}
                end{document}


                enter image description here






                share











                share


                share










                answered 3 mins ago









                marmotmarmot

                106k4127242




                106k4127242






























                    draft saved

                    draft discarded




















































                    Thanks for contributing an answer to TeX - LaTeX Stack Exchange!


                    • Please be sure to answer the question. Provide details and share your research!

                    But avoid



                    • Asking for help, clarification, or responding to other answers.

                    • Making statements based on opinion; back them up with references or personal experience.


                    To learn more, see our tips on writing great answers.




                    draft saved


                    draft discarded














                    StackExchange.ready(
                    function () {
                    StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2ftex.stackexchange.com%2fquestions%2f477974%2fremove-cientific-notation-in-a-tikzpicture-axis-xbar-graph%23new-answer', 'question_page');
                    }
                    );

                    Post as a guest















                    Required, but never shown





















































                    Required, but never shown














                    Required, but never shown












                    Required, but never shown







                    Required, but never shown

































                    Required, but never shown














                    Required, but never shown












                    Required, but never shown







                    Required, but never shown







                    Popular posts from this blog

                    Accessing regular linux commands in Huawei's Dopra Linux

                    Can't connect RFCOMM socket: Host is down

                    Kernel panic - not syncing: Fatal Exception in Interrupt