Some question about “tikzpicture” to draw the graphsTikZ scaling graphic and adjust node position and...
Retract an already submitted recommendation letter (written for an undergrad student)
Why didn't the Space Shuttle bounce back into space as many times as possible so as to lose a lot of kinetic energy up there?
Which big number is bigger?
Are there moral objections to a life motivated purely by money? How to sway a person from this lifestyle?
Apply a different color ramp to subset of categorized symbols in QGIS?
Multiple options vs single option UI
Creating a chemical industry from a medieval tech level without petroleum
How can I practically buy stocks?
What to do with someone that cheated their way through university and a PhD program?
What does "function" actually mean in music?
Extracting Dirichlet series coefficients
What makes accurate emulation of old systems a difficult task?
Work requires me to come in early to start computer but wont let me clock in to get paid for it
Philosophical question on logistic regression: why isn't the optimal threshold value trained?
Contradiction proof for inequality of P and NP?
Check if a string is entirely made of the same substring
Does the damage from the Absorb Elements spell apply to your next attack, or to your first attack on your next turn?
How important is it that $TERM is correct?
Negative Resistance
Can a level 2 Warlock take one level in rogue, then continue advancing as a warlock?
Cayley's Matrix Notation
How to not starve gigantic beasts
Drawing a german abacus as in the books of Adam Ries
How to have a sharp product image?
Some question about “tikzpicture” to draw the graphs
TikZ scaling graphic and adjust node position and keep font sizeSome problem with tikzpictureA question about the draw commandHow to prevent rounded and duplicated tick labels in pgfplots with fixed precision?draw graphs in tikzMultiple graphs in tikzpictureQuestion about including tikzpicture in a research paperHow to configure axis using characters and draw graphs? (tikzpicture)draw graphs by tikzA Question about Loop in TikZ
I have drawn graphs of two types.
However, I do not want to add a small line associated with the x-axis name.
Figure 1 shows a small line with the axis name, red box. Figure 2 shows that the small line is inside, so I want it to come out the same or not.
Could you tell me how?
The code:
Code 1.
begin{tikzpicture}
begin{axis}[
%small,
ybar,%=8pt, % configures ‘bar shift’
% enlargelimits=0.1,
ylabel={Ratio},
ymin=0,ymax=1,
height=7cm,
symbolic x coords={R-F, R-Mth, AP-F, AP-Mth},
%xtick=data,
tick label style={font=footnotesize},
legend style={at={(1,1)},anchor=north east,
legend columns=-1},
nodes near coords,
every node near coord/.append style={font=tiny},
nodes near coords align={vertical},
]
addplot coordinates {(R-F, 0.8) (R-Mth, 0.71) (AP-F, 0.68) (AP-Mth, 0.62)};
addplot coordinates {(R-F, 0.20) (R-Mth, 0.62) (AP-F, 0.59) (AP-Mth, 0.64)};
legend{Changed, Maintained}
end{axis}
end{tikzpicture}
Code 2.
begin{tikzpicture}
begin{axis}[
boxplot/draw direction=y,
ylabel={log(ratio of changes)},
tick label style={font=scriptsize},
height=7cm,
ymajorgrids=true,
ymin=-1,ymax=1,
cycle list={{blue}},
boxplot={
%
% Idea:
% place the
% group 1 at 0.3333 and 0.6666
% group 2 at 1.3333 and 1.6666
% group 3 at 2.3333 and 2.6666
% ...
% in a formular:
% draw position={1/3 + floor(plotnumofactualtype/2) + 1/3*mod(plotnumofactualtype,2)},
%
% that means the box extend must be at most 0.33333 :
% box extend=0.33
},
% ... it also means that 1 unit in x controls the width:
% x=1cm,
% ... and it means that we should describe intervals:
xtick={0,1,2,3,4},
% x tick label as interval,
xticklabels={,R-F,R-Mth,AP-F,AP-Mth},
tick label style={font=scriptsize},
nodes near coords,
every node near coord/.append style={font=tiny},
nodes near coords align={vertical},
]
addplot
table[row sep=\,y index=0] {
data\
0.764\
0.538\
0.075\
-0.493\
-0.785\
};
addplot
table[row sep=\,y index=0] {
data\
0.175\
0.013\
0.006\
-0.093\
-0.9\
};
addplot
table[row sep=\,y index=0] {
data\
0.9\
0.659\
0.357\
-0.451\
-0.816\
};
addplot
table[row sep=\,y index=0] {
data\
0.280\
0.0482\
-0.0787\
-0.326\
-0.795\
};
% addplot [domain=-10:10, thick, red] {0.0};
end{axis}
end{tikzpicture}
tikz-pgf
New contributor
add a comment |
I have drawn graphs of two types.
However, I do not want to add a small line associated with the x-axis name.
Figure 1 shows a small line with the axis name, red box. Figure 2 shows that the small line is inside, so I want it to come out the same or not.
Could you tell me how?
The code:
Code 1.
begin{tikzpicture}
begin{axis}[
%small,
ybar,%=8pt, % configures ‘bar shift’
% enlargelimits=0.1,
ylabel={Ratio},
ymin=0,ymax=1,
height=7cm,
symbolic x coords={R-F, R-Mth, AP-F, AP-Mth},
%xtick=data,
tick label style={font=footnotesize},
legend style={at={(1,1)},anchor=north east,
legend columns=-1},
nodes near coords,
every node near coord/.append style={font=tiny},
nodes near coords align={vertical},
]
addplot coordinates {(R-F, 0.8) (R-Mth, 0.71) (AP-F, 0.68) (AP-Mth, 0.62)};
addplot coordinates {(R-F, 0.20) (R-Mth, 0.62) (AP-F, 0.59) (AP-Mth, 0.64)};
legend{Changed, Maintained}
end{axis}
end{tikzpicture}
Code 2.
begin{tikzpicture}
begin{axis}[
boxplot/draw direction=y,
ylabel={log(ratio of changes)},
tick label style={font=scriptsize},
height=7cm,
ymajorgrids=true,
ymin=-1,ymax=1,
cycle list={{blue}},
boxplot={
%
% Idea:
% place the
% group 1 at 0.3333 and 0.6666
% group 2 at 1.3333 and 1.6666
% group 3 at 2.3333 and 2.6666
% ...
% in a formular:
% draw position={1/3 + floor(plotnumofactualtype/2) + 1/3*mod(plotnumofactualtype,2)},
%
% that means the box extend must be at most 0.33333 :
% box extend=0.33
},
% ... it also means that 1 unit in x controls the width:
% x=1cm,
% ... and it means that we should describe intervals:
xtick={0,1,2,3,4},
% x tick label as interval,
xticklabels={,R-F,R-Mth,AP-F,AP-Mth},
tick label style={font=scriptsize},
nodes near coords,
every node near coord/.append style={font=tiny},
nodes near coords align={vertical},
]
addplot
table[row sep=\,y index=0] {
data\
0.764\
0.538\
0.075\
-0.493\
-0.785\
};
addplot
table[row sep=\,y index=0] {
data\
0.175\
0.013\
0.006\
-0.093\
-0.9\
};
addplot
table[row sep=\,y index=0] {
data\
0.9\
0.659\
0.357\
-0.451\
-0.816\
};
addplot
table[row sep=\,y index=0] {
data\
0.280\
0.0482\
-0.0787\
-0.326\
-0.795\
};
% addplot [domain=-10:10, thick, red] {0.0};
end{axis}
end{tikzpicture}
tikz-pgf
New contributor
add a comment |
I have drawn graphs of two types.
However, I do not want to add a small line associated with the x-axis name.
Figure 1 shows a small line with the axis name, red box. Figure 2 shows that the small line is inside, so I want it to come out the same or not.
Could you tell me how?
The code:
Code 1.
begin{tikzpicture}
begin{axis}[
%small,
ybar,%=8pt, % configures ‘bar shift’
% enlargelimits=0.1,
ylabel={Ratio},
ymin=0,ymax=1,
height=7cm,
symbolic x coords={R-F, R-Mth, AP-F, AP-Mth},
%xtick=data,
tick label style={font=footnotesize},
legend style={at={(1,1)},anchor=north east,
legend columns=-1},
nodes near coords,
every node near coord/.append style={font=tiny},
nodes near coords align={vertical},
]
addplot coordinates {(R-F, 0.8) (R-Mth, 0.71) (AP-F, 0.68) (AP-Mth, 0.62)};
addplot coordinates {(R-F, 0.20) (R-Mth, 0.62) (AP-F, 0.59) (AP-Mth, 0.64)};
legend{Changed, Maintained}
end{axis}
end{tikzpicture}
Code 2.
begin{tikzpicture}
begin{axis}[
boxplot/draw direction=y,
ylabel={log(ratio of changes)},
tick label style={font=scriptsize},
height=7cm,
ymajorgrids=true,
ymin=-1,ymax=1,
cycle list={{blue}},
boxplot={
%
% Idea:
% place the
% group 1 at 0.3333 and 0.6666
% group 2 at 1.3333 and 1.6666
% group 3 at 2.3333 and 2.6666
% ...
% in a formular:
% draw position={1/3 + floor(plotnumofactualtype/2) + 1/3*mod(plotnumofactualtype,2)},
%
% that means the box extend must be at most 0.33333 :
% box extend=0.33
},
% ... it also means that 1 unit in x controls the width:
% x=1cm,
% ... and it means that we should describe intervals:
xtick={0,1,2,3,4},
% x tick label as interval,
xticklabels={,R-F,R-Mth,AP-F,AP-Mth},
tick label style={font=scriptsize},
nodes near coords,
every node near coord/.append style={font=tiny},
nodes near coords align={vertical},
]
addplot
table[row sep=\,y index=0] {
data\
0.764\
0.538\
0.075\
-0.493\
-0.785\
};
addplot
table[row sep=\,y index=0] {
data\
0.175\
0.013\
0.006\
-0.093\
-0.9\
};
addplot
table[row sep=\,y index=0] {
data\
0.9\
0.659\
0.357\
-0.451\
-0.816\
};
addplot
table[row sep=\,y index=0] {
data\
0.280\
0.0482\
-0.0787\
-0.326\
-0.795\
};
% addplot [domain=-10:10, thick, red] {0.0};
end{axis}
end{tikzpicture}
tikz-pgf
New contributor
I have drawn graphs of two types.
However, I do not want to add a small line associated with the x-axis name.
Figure 1 shows a small line with the axis name, red box. Figure 2 shows that the small line is inside, so I want it to come out the same or not.
Could you tell me how?
The code:
Code 1.
begin{tikzpicture}
begin{axis}[
%small,
ybar,%=8pt, % configures ‘bar shift’
% enlargelimits=0.1,
ylabel={Ratio},
ymin=0,ymax=1,
height=7cm,
symbolic x coords={R-F, R-Mth, AP-F, AP-Mth},
%xtick=data,
tick label style={font=footnotesize},
legend style={at={(1,1)},anchor=north east,
legend columns=-1},
nodes near coords,
every node near coord/.append style={font=tiny},
nodes near coords align={vertical},
]
addplot coordinates {(R-F, 0.8) (R-Mth, 0.71) (AP-F, 0.68) (AP-Mth, 0.62)};
addplot coordinates {(R-F, 0.20) (R-Mth, 0.62) (AP-F, 0.59) (AP-Mth, 0.64)};
legend{Changed, Maintained}
end{axis}
end{tikzpicture}
Code 2.
begin{tikzpicture}
begin{axis}[
boxplot/draw direction=y,
ylabel={log(ratio of changes)},
tick label style={font=scriptsize},
height=7cm,
ymajorgrids=true,
ymin=-1,ymax=1,
cycle list={{blue}},
boxplot={
%
% Idea:
% place the
% group 1 at 0.3333 and 0.6666
% group 2 at 1.3333 and 1.6666
% group 3 at 2.3333 and 2.6666
% ...
% in a formular:
% draw position={1/3 + floor(plotnumofactualtype/2) + 1/3*mod(plotnumofactualtype,2)},
%
% that means the box extend must be at most 0.33333 :
% box extend=0.33
},
% ... it also means that 1 unit in x controls the width:
% x=1cm,
% ... and it means that we should describe intervals:
xtick={0,1,2,3,4},
% x tick label as interval,
xticklabels={,R-F,R-Mth,AP-F,AP-Mth},
tick label style={font=scriptsize},
nodes near coords,
every node near coord/.append style={font=tiny},
nodes near coords align={vertical},
]
addplot
table[row sep=\,y index=0] {
data\
0.764\
0.538\
0.075\
-0.493\
-0.785\
};
addplot
table[row sep=\,y index=0] {
data\
0.175\
0.013\
0.006\
-0.093\
-0.9\
};
addplot
table[row sep=\,y index=0] {
data\
0.9\
0.659\
0.357\
-0.451\
-0.816\
};
addplot
table[row sep=\,y index=0] {
data\
0.280\
0.0482\
-0.0787\
-0.326\
-0.795\
};
% addplot [domain=-10:10, thick, red] {0.0};
end{axis}
end{tikzpicture}
tikz-pgf
tikz-pgf
New contributor
New contributor
New contributor
asked 7 mins ago
Kim RoseKim Rose
1
1
New contributor
New contributor
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
});
}
});
Kim Rose is a new contributor. Be nice, and check out our Code of Conduct.
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%2f487663%2fsome-question-about-tikzpicture-to-draw-the-graphs%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
Kim Rose is a new contributor. Be nice, and check out our Code of Conduct.
Kim Rose is a new contributor. Be nice, and check out our Code of Conduct.
Kim Rose is a new contributor. Be nice, and check out our Code of Conduct.
Kim Rose is a new contributor. Be nice, and check out our Code of Conduct.
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%2f487663%2fsome-question-about-tikzpicture-to-draw-the-graphs%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