Remove scientific 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|improve this question





























    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|improve this question



























      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|improve this question
















      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|improve this question















      share|improve this question













      share|improve this question




      share|improve this question








      edited 7 mins ago









      AndréC

      9,71311547




      9,71311547










      asked 15 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|improve this answer























            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-scientific-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|improve this answer




























              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|improve this answer


























                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|improve this answer













                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|improve this answer












                share|improve this answer



                share|improve this answer










                answered 11 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-scientific-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

                    Contact image not getting when fetch all contact list from iPhone by CNContact

                    count number of partitions of a set with n elements into k subsets

                    A CLEAN and SIMPLE way to add appendices to Table of Contents and bookmarks