Problem in bar plot, separating each set of dataUse BPchem Numbering As Labels in a PGFPlotplotting two time...
How to acknowledge an embarrassing job interview, now that I work directly with the interviewer?
Getting a UK passport renewed when you have dual nationality and a different name in your second country?
Closed form for these polynomials?
Called into a meeting and told we are being made redundant (laid off) and "not to share outside". Can I tell my partner?
Word or phrase for showing great skill at something without formal training in it
The vanishing of sum of coefficients: symmetric polynomials
Can pricing be copyrighted?
Dilemma of explaining to interviewer that he is the reason for declining second interview
What are the advantages of using `make` for small projects?
Tikzing a circled star
How can I improve my fireworks photography?
How is the Incom shipyard still in business?
How did the original light saber work?
Number of FLOP (Floating Point Operations) for exponentiation
Unwarranted claim of higher degree of accuracy in zircon geochronology
How should I handle players who ignore the session zero agreement?
Can a hotel cancel a confirmed reservation?
What is the etymology of the kanji 食?
If I delete my router's history can my ISP still provide it to my parents?
What is the wife of a henpecked husband called?
What do you call a fact that doesn't match the settings?
How to avoid being sexist when trying to employ someone to function in a very sexist environment?
Can we use the stored gravitational potential energy of a building to produce power?
How to deal with an incendiary email that was recalled
Problem in bar plot, separating each set of data
Use BPchem Numbering As Labels in a PGFPlotplotting two time series with boundsGrouped bar chartHow do i get the x axis on top but keep a line on the bottomHow to prevent rounded and duplicated tick labels in pgfplots with fixed precision?How to hide empty (value 0) ybars with pgfplots?Show mark labels near marks and not centered in ybar interaval graphpgfplots: percentage in matrix plotCenter the axes in the coordinate originPlot bar graph using table data
I want to use a bar plot to compare some data. When I typed my code the results were not what I wanted. I want each set of bars to be separated clearly. The second point I want is the numbers are shown as I typed but int output the numbers were rounded. How can I solve these problems?
Here is my code
documentclass{standalone}
usepackage{amsmath}
usepackage{amsfonts}
usepackage{amssymb}
usepackage{pgfplots}
pgfplotsset{compat=newest}
usepackage{tikz}
begin{document}
begin{tikzpicture}
begin{axis}[
ybar=.5cm,
x tick label style={rotate=90},
enlarge x limits=0.2,
legend style={at={(0.5,-0.15)},
anchor=north,legend columns=-1},
bar width = 0.2 cm,
symbolic x coords= {4g,6g,8g,10g,2gamma,3gamma,4gamma,5gamma,6gamma,7gamma,0beta},
xtick=data,
xticklabels={$ 4_g $, $ 6_g $, $ 8_g $, $ 10_g $, $ 2_gamma $, $ 3_gamma $, $ 4_gamma $, $ 5_gamma $, $ 6_gamma $, $ 7_gamma $, $ 0_beta $},
nodes near coords,
nodes near coords align={vertical},
]
addplot coordinates {(4g, 2.337) (6g, 3.949) (8g, 5.815) (10g, 7.924) (2gamma, 1.830) (3gamma, 2.581) (4gamma, 4.379) (5gamma, 4.590) (6gamma, 6.983) (7gamma, 6.792) (0beta, 3.790)};
addplot coordinates {(4g, 2.479) (6g, 4.314) (8g, 6.377) (10g, 8.624) (2gamma, 1.935) (3gamma, 2.91) (4gamma, 3.795) (5gamma, 4.682) (6gamma, 5.905) (7gamma, 6.677) (0beta, 3.776)};
addplot coordinates {(4g, 2.350) (6g, 3.984) (8g, 5.877 ) (10g, 8.019) (2gamma, 1.837) (3gamma, 2.597) (4gamma, 4.420) (5gamma, 4.634) (6gamma, 7.063) (7gamma, 6.869) (0beta, 3.913)};
legend{used,understood,not understood}
end{axis}
end{tikzpicture}
end{document}
Many thanks.
pgfplots plot tkz-graph
add a comment |
I want to use a bar plot to compare some data. When I typed my code the results were not what I wanted. I want each set of bars to be separated clearly. The second point I want is the numbers are shown as I typed but int output the numbers were rounded. How can I solve these problems?
Here is my code
documentclass{standalone}
usepackage{amsmath}
usepackage{amsfonts}
usepackage{amssymb}
usepackage{pgfplots}
pgfplotsset{compat=newest}
usepackage{tikz}
begin{document}
begin{tikzpicture}
begin{axis}[
ybar=.5cm,
x tick label style={rotate=90},
enlarge x limits=0.2,
legend style={at={(0.5,-0.15)},
anchor=north,legend columns=-1},
bar width = 0.2 cm,
symbolic x coords= {4g,6g,8g,10g,2gamma,3gamma,4gamma,5gamma,6gamma,7gamma,0beta},
xtick=data,
xticklabels={$ 4_g $, $ 6_g $, $ 8_g $, $ 10_g $, $ 2_gamma $, $ 3_gamma $, $ 4_gamma $, $ 5_gamma $, $ 6_gamma $, $ 7_gamma $, $ 0_beta $},
nodes near coords,
nodes near coords align={vertical},
]
addplot coordinates {(4g, 2.337) (6g, 3.949) (8g, 5.815) (10g, 7.924) (2gamma, 1.830) (3gamma, 2.581) (4gamma, 4.379) (5gamma, 4.590) (6gamma, 6.983) (7gamma, 6.792) (0beta, 3.790)};
addplot coordinates {(4g, 2.479) (6g, 4.314) (8g, 6.377) (10g, 8.624) (2gamma, 1.935) (3gamma, 2.91) (4gamma, 3.795) (5gamma, 4.682) (6gamma, 5.905) (7gamma, 6.677) (0beta, 3.776)};
addplot coordinates {(4g, 2.350) (6g, 3.984) (8g, 5.877 ) (10g, 8.019) (2gamma, 1.837) (3gamma, 2.597) (4gamma, 4.420) (5gamma, 4.634) (6gamma, 7.063) (7gamma, 6.869) (0beta, 3.913)};
legend{used,understood,not understood}
end{axis}
end{tikzpicture}
end{document}
Many thanks.
pgfplots plot tkz-graph
add a comment |
I want to use a bar plot to compare some data. When I typed my code the results were not what I wanted. I want each set of bars to be separated clearly. The second point I want is the numbers are shown as I typed but int output the numbers were rounded. How can I solve these problems?
Here is my code
documentclass{standalone}
usepackage{amsmath}
usepackage{amsfonts}
usepackage{amssymb}
usepackage{pgfplots}
pgfplotsset{compat=newest}
usepackage{tikz}
begin{document}
begin{tikzpicture}
begin{axis}[
ybar=.5cm,
x tick label style={rotate=90},
enlarge x limits=0.2,
legend style={at={(0.5,-0.15)},
anchor=north,legend columns=-1},
bar width = 0.2 cm,
symbolic x coords= {4g,6g,8g,10g,2gamma,3gamma,4gamma,5gamma,6gamma,7gamma,0beta},
xtick=data,
xticklabels={$ 4_g $, $ 6_g $, $ 8_g $, $ 10_g $, $ 2_gamma $, $ 3_gamma $, $ 4_gamma $, $ 5_gamma $, $ 6_gamma $, $ 7_gamma $, $ 0_beta $},
nodes near coords,
nodes near coords align={vertical},
]
addplot coordinates {(4g, 2.337) (6g, 3.949) (8g, 5.815) (10g, 7.924) (2gamma, 1.830) (3gamma, 2.581) (4gamma, 4.379) (5gamma, 4.590) (6gamma, 6.983) (7gamma, 6.792) (0beta, 3.790)};
addplot coordinates {(4g, 2.479) (6g, 4.314) (8g, 6.377) (10g, 8.624) (2gamma, 1.935) (3gamma, 2.91) (4gamma, 3.795) (5gamma, 4.682) (6gamma, 5.905) (7gamma, 6.677) (0beta, 3.776)};
addplot coordinates {(4g, 2.350) (6g, 3.984) (8g, 5.877 ) (10g, 8.019) (2gamma, 1.837) (3gamma, 2.597) (4gamma, 4.420) (5gamma, 4.634) (6gamma, 7.063) (7gamma, 6.869) (0beta, 3.913)};
legend{used,understood,not understood}
end{axis}
end{tikzpicture}
end{document}
Many thanks.
pgfplots plot tkz-graph
I want to use a bar plot to compare some data. When I typed my code the results were not what I wanted. I want each set of bars to be separated clearly. The second point I want is the numbers are shown as I typed but int output the numbers were rounded. How can I solve these problems?
Here is my code
documentclass{standalone}
usepackage{amsmath}
usepackage{amsfonts}
usepackage{amssymb}
usepackage{pgfplots}
pgfplotsset{compat=newest}
usepackage{tikz}
begin{document}
begin{tikzpicture}
begin{axis}[
ybar=.5cm,
x tick label style={rotate=90},
enlarge x limits=0.2,
legend style={at={(0.5,-0.15)},
anchor=north,legend columns=-1},
bar width = 0.2 cm,
symbolic x coords= {4g,6g,8g,10g,2gamma,3gamma,4gamma,5gamma,6gamma,7gamma,0beta},
xtick=data,
xticklabels={$ 4_g $, $ 6_g $, $ 8_g $, $ 10_g $, $ 2_gamma $, $ 3_gamma $, $ 4_gamma $, $ 5_gamma $, $ 6_gamma $, $ 7_gamma $, $ 0_beta $},
nodes near coords,
nodes near coords align={vertical},
]
addplot coordinates {(4g, 2.337) (6g, 3.949) (8g, 5.815) (10g, 7.924) (2gamma, 1.830) (3gamma, 2.581) (4gamma, 4.379) (5gamma, 4.590) (6gamma, 6.983) (7gamma, 6.792) (0beta, 3.790)};
addplot coordinates {(4g, 2.479) (6g, 4.314) (8g, 6.377) (10g, 8.624) (2gamma, 1.935) (3gamma, 2.91) (4gamma, 3.795) (5gamma, 4.682) (6gamma, 5.905) (7gamma, 6.677) (0beta, 3.776)};
addplot coordinates {(4g, 2.350) (6g, 3.984) (8g, 5.877 ) (10g, 8.019) (2gamma, 1.837) (3gamma, 2.597) (4gamma, 4.420) (5gamma, 4.634) (6gamma, 7.063) (7gamma, 6.869) (0beta, 3.913)};
legend{used,understood,not understood}
end{axis}
end{tikzpicture}
end{document}
Many thanks.
pgfplots plot tkz-graph
pgfplots plot tkz-graph
asked 3 mins ago
Hadi SobhaniHadi Sobhani
24616
24616
add a comment |
add a comment |
0
active
oldest
votes
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%2f477509%2fproblem-in-bar-plot-separating-each-set-of-data%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
0
active
oldest
votes
0
active
oldest
votes
active
oldest
votes
active
oldest
votes
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%2f477509%2fproblem-in-bar-plot-separating-each-set-of-data%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