Remove cientific notation in a tikzpicture axis xbar graph
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}
tikz-pgf
add a comment |
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}
tikz-pgf
add a comment |
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}
tikz-pgf
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}
tikz-pgf
tikz-pgf
asked 6 mins ago
jperezmartinjperezmartin
304
304
add a comment |
add a comment |
1 Answer
1
active
oldest
votes
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}
add a comment |
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
});
}
});
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
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
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}
add a comment |
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}
add a comment |
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}
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}
answered 3 mins ago
marmotmarmot
106k4127242
106k4127242
add a comment |
add a comment |
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.
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
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
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
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