tabular with xticks enabled at some plots make one plot moved

Multi tool use
Multi tool use

The name of the pictureThe name of the pictureThe name of the pictureClash Royale CLAN TAG#URR8PPP











up vote
5
down vote

favorite
1












I have 4 plots arranged using tabular:



resulting document



documentclassscrartcl

usepackagepgfplots
pgfplotssetcompat=1.16

begindocument

pgfplotsset
height=4cm, width=linewidth*0.5,
every axis plot post/.append style=mark=none,
xmin=-1, xmax=1, domain=-1:1, samples=100, minor y tick num=1,
xtick=empty


begintabularrl
begintikzpicture[baseline,trim axis left]
beginaxis[title=Gaussian,
legend entries=$s=2$, $s=4$,$s=8$]
addplot exp(- (2*x)^2);
addplot exp(- (4*x)^2);
addplot exp(- (8*x)^2);
endaxis
endtikzpicture
&
begintikzpicture[baseline,trim axis right]
beginaxis[title=Volume Splines]
addplot abs(x);
endaxis
endtikzpicture
\
begintikzpicture[baseline,trim axis left]
beginaxis[title=Multi Quadrics,
legend entries=$s=2$, $s=4$,$s=6$,
xtick=]
addplot sqrt(2^2 + x^2);
addplot sqrt(4^2 + x^2);
addplot sqrt(6^2 + x^2);
endaxis
endtikzpicture
&
begintikzpicture[baseline,trim axis right]
beginaxis[title=Inverse Multi Quadrics,
legend entries=$s=1$, $s=2$,$s=3$,
xtick=]
addplot 1/sqrt(1^2 + x^2);
addplot 1/sqrt(2^2 + x^2);
addplot 1/sqrt(3^2 + x^2);
endaxis
endtikzpicture
endtabular

enddocument


As you can see, the lower left plot is slightly moved to the left. How can I fix that?



Why I don't use groupplots? I want different legends for each of the plots, as you can see. AFAIK this is not possible with groupplots.



Why I don't use matrix? According to pgfplots documentation 4.19.4 with matrix you need to use legend to name.



If it's possible with either one of the other two methods, I happily stand corrected.



Thanks!










share|improve this question





















  • I think the problem is in the y-axis in your bottom-left figure. It contains 2, 4 and 6. But for your top-left figure, it contains a 0.5, and there is additional space for the extra 0. part.
    – Ruixi Zhang
    Sep 3 at 15:35











  • Welcome to TeX.SE! Would you be open to use groupplots for that?
    – marmot
    Sep 3 at 15:36














up vote
5
down vote

favorite
1












I have 4 plots arranged using tabular:



resulting document



documentclassscrartcl

usepackagepgfplots
pgfplotssetcompat=1.16

begindocument

pgfplotsset
height=4cm, width=linewidth*0.5,
every axis plot post/.append style=mark=none,
xmin=-1, xmax=1, domain=-1:1, samples=100, minor y tick num=1,
xtick=empty


begintabularrl
begintikzpicture[baseline,trim axis left]
beginaxis[title=Gaussian,
legend entries=$s=2$, $s=4$,$s=8$]
addplot exp(- (2*x)^2);
addplot exp(- (4*x)^2);
addplot exp(- (8*x)^2);
endaxis
endtikzpicture
&
begintikzpicture[baseline,trim axis right]
beginaxis[title=Volume Splines]
addplot abs(x);
endaxis
endtikzpicture
\
begintikzpicture[baseline,trim axis left]
beginaxis[title=Multi Quadrics,
legend entries=$s=2$, $s=4$,$s=6$,
xtick=]
addplot sqrt(2^2 + x^2);
addplot sqrt(4^2 + x^2);
addplot sqrt(6^2 + x^2);
endaxis
endtikzpicture
&
begintikzpicture[baseline,trim axis right]
beginaxis[title=Inverse Multi Quadrics,
legend entries=$s=1$, $s=2$,$s=3$,
xtick=]
addplot 1/sqrt(1^2 + x^2);
addplot 1/sqrt(2^2 + x^2);
addplot 1/sqrt(3^2 + x^2);
endaxis
endtikzpicture
endtabular

enddocument


As you can see, the lower left plot is slightly moved to the left. How can I fix that?



Why I don't use groupplots? I want different legends for each of the plots, as you can see. AFAIK this is not possible with groupplots.



Why I don't use matrix? According to pgfplots documentation 4.19.4 with matrix you need to use legend to name.



If it's possible with either one of the other two methods, I happily stand corrected.



Thanks!










share|improve this question





















  • I think the problem is in the y-axis in your bottom-left figure. It contains 2, 4 and 6. But for your top-left figure, it contains a 0.5, and there is additional space for the extra 0. part.
    – Ruixi Zhang
    Sep 3 at 15:35











  • Welcome to TeX.SE! Would you be open to use groupplots for that?
    – marmot
    Sep 3 at 15:36












up vote
5
down vote

favorite
1









up vote
5
down vote

favorite
1






1





I have 4 plots arranged using tabular:



resulting document



documentclassscrartcl

usepackagepgfplots
pgfplotssetcompat=1.16

begindocument

pgfplotsset
height=4cm, width=linewidth*0.5,
every axis plot post/.append style=mark=none,
xmin=-1, xmax=1, domain=-1:1, samples=100, minor y tick num=1,
xtick=empty


begintabularrl
begintikzpicture[baseline,trim axis left]
beginaxis[title=Gaussian,
legend entries=$s=2$, $s=4$,$s=8$]
addplot exp(- (2*x)^2);
addplot exp(- (4*x)^2);
addplot exp(- (8*x)^2);
endaxis
endtikzpicture
&
begintikzpicture[baseline,trim axis right]
beginaxis[title=Volume Splines]
addplot abs(x);
endaxis
endtikzpicture
\
begintikzpicture[baseline,trim axis left]
beginaxis[title=Multi Quadrics,
legend entries=$s=2$, $s=4$,$s=6$,
xtick=]
addplot sqrt(2^2 + x^2);
addplot sqrt(4^2 + x^2);
addplot sqrt(6^2 + x^2);
endaxis
endtikzpicture
&
begintikzpicture[baseline,trim axis right]
beginaxis[title=Inverse Multi Quadrics,
legend entries=$s=1$, $s=2$,$s=3$,
xtick=]
addplot 1/sqrt(1^2 + x^2);
addplot 1/sqrt(2^2 + x^2);
addplot 1/sqrt(3^2 + x^2);
endaxis
endtikzpicture
endtabular

enddocument


As you can see, the lower left plot is slightly moved to the left. How can I fix that?



Why I don't use groupplots? I want different legends for each of the plots, as you can see. AFAIK this is not possible with groupplots.



Why I don't use matrix? According to pgfplots documentation 4.19.4 with matrix you need to use legend to name.



If it's possible with either one of the other two methods, I happily stand corrected.



Thanks!










share|improve this question













I have 4 plots arranged using tabular:



resulting document



documentclassscrartcl

usepackagepgfplots
pgfplotssetcompat=1.16

begindocument

pgfplotsset
height=4cm, width=linewidth*0.5,
every axis plot post/.append style=mark=none,
xmin=-1, xmax=1, domain=-1:1, samples=100, minor y tick num=1,
xtick=empty


begintabularrl
begintikzpicture[baseline,trim axis left]
beginaxis[title=Gaussian,
legend entries=$s=2$, $s=4$,$s=8$]
addplot exp(- (2*x)^2);
addplot exp(- (4*x)^2);
addplot exp(- (8*x)^2);
endaxis
endtikzpicture
&
begintikzpicture[baseline,trim axis right]
beginaxis[title=Volume Splines]
addplot abs(x);
endaxis
endtikzpicture
\
begintikzpicture[baseline,trim axis left]
beginaxis[title=Multi Quadrics,
legend entries=$s=2$, $s=4$,$s=6$,
xtick=]
addplot sqrt(2^2 + x^2);
addplot sqrt(4^2 + x^2);
addplot sqrt(6^2 + x^2);
endaxis
endtikzpicture
&
begintikzpicture[baseline,trim axis right]
beginaxis[title=Inverse Multi Quadrics,
legend entries=$s=1$, $s=2$,$s=3$,
xtick=]
addplot 1/sqrt(1^2 + x^2);
addplot 1/sqrt(2^2 + x^2);
addplot 1/sqrt(3^2 + x^2);
endaxis
endtikzpicture
endtabular

enddocument


As you can see, the lower left plot is slightly moved to the left. How can I fix that?



Why I don't use groupplots? I want different legends for each of the plots, as you can see. AFAIK this is not possible with groupplots.



Why I don't use matrix? According to pgfplots documentation 4.19.4 with matrix you need to use legend to name.



If it's possible with either one of the other two methods, I happily stand corrected.



Thanks!







pgfplots plot groupplots






share|improve this question













share|improve this question











share|improve this question




share|improve this question










asked Sep 3 at 15:30









Horus

1502




1502











  • I think the problem is in the y-axis in your bottom-left figure. It contains 2, 4 and 6. But for your top-left figure, it contains a 0.5, and there is additional space for the extra 0. part.
    – Ruixi Zhang
    Sep 3 at 15:35











  • Welcome to TeX.SE! Would you be open to use groupplots for that?
    – marmot
    Sep 3 at 15:36
















  • I think the problem is in the y-axis in your bottom-left figure. It contains 2, 4 and 6. But for your top-left figure, it contains a 0.5, and there is additional space for the extra 0. part.
    – Ruixi Zhang
    Sep 3 at 15:35











  • Welcome to TeX.SE! Would you be open to use groupplots for that?
    – marmot
    Sep 3 at 15:36















I think the problem is in the y-axis in your bottom-left figure. It contains 2, 4 and 6. But for your top-left figure, it contains a 0.5, and there is additional space for the extra 0. part.
– Ruixi Zhang
Sep 3 at 15:35





I think the problem is in the y-axis in your bottom-left figure. It contains 2, 4 and 6. But for your top-left figure, it contains a 0.5, and there is additional space for the extra 0. part.
– Ruixi Zhang
Sep 3 at 15:35













Welcome to TeX.SE! Would you be open to use groupplots for that?
– marmot
Sep 3 at 15:36




Welcome to TeX.SE! Would you be open to use groupplots for that?
– marmot
Sep 3 at 15:36










2 Answers
2






active

oldest

votes

















up vote
3
down vote



accepted










The groupplot library is made for this.



documentclassscrartcl

usepackagepgfplots
pgfplotssetcompat=1.16
usepgfplotslibrarygroupplots

begindocument

pgfplotsset
height=4cm, width=linewidth*0.5,
every axis plot post/.append style=mark=none,
xmin=-1, xmax=1, domain=-1:1, samples=100, minor y tick num=1,
xtick=empty

begintikzpicture
begingroupplot[group style=group size=2 by 2,height=4cm, width=linewidth*0.5,]
nextgroupplot[title=Gaussian,
legend entries=$s=2$, $s=4$,$s=8$]
addplot exp(- (2*x)^2);
addplot exp(- (4*x)^2);
addplot exp(- (8*x)^2);
nextgroupplot[title=Volume Splines]
addplot abs(x);
nextgroupplot[title=Multi Quadrics,
legend entries=$s=2$, $s=4$,$s=6$,
xtick=]
addplot sqrt(2^2 + x^2);
addplot sqrt(4^2 + x^2);
addplot sqrt(6^2 + x^2);
nextgroupplot[title=Inverse Multi Quadrics,
legend entries=$s=1$, $s=2$,$s=3$,
xtick=]
addplot 1/sqrt(1^2 + x^2);
addplot 1/sqrt(2^2 + x^2);
addplot 1/sqrt(3^2 + x^2);
endgroupplot
endtikzpicture
enddocument


enter image description here






share|improve this answer




















  • Lovely! Not sure why I said that groupplot is not suitable. Thanks!
    – Horus
    Sep 4 at 7:04

















up vote
4
down vote













Simply use begintabularll:



documentclassscrartcl
usepackagepgfplots
pgfplotssetcompat=1.16

begindocument

pgfplotsset
height=4cm, width=linewidth*0.5,
every axis plot post/.append style=mark=none,
xmin=-1, xmax=1, domain=-1:1, samples=100, minor y tick num=1,
xtick=empty


begintabularll
begintikzpicture[baseline,trim axis left]
beginaxis[title=Gaussian,
legend entries=$s=2$, $s=4$,$s=8$]
addplot exp(- (2*x)^2);
addplot exp(- (4*x)^2);
addplot exp(- (8*x)^2);
endaxis
endtikzpicture
&
begintikzpicture[baseline,trim axis right]
beginaxis[title=Volume Splines]
addplot abs(x);
endaxis
endtikzpicture
\
begintikzpicture[baseline,trim axis left]
beginaxis[title=Multi Quadrics,
legend entries=$s=2$, $s=4$,$s=6$,
xtick=]
addplot sqrt(2^2 + x^2);
addplot sqrt(4^2 + x^2);
addplot sqrt(6^2 + x^2);
endaxis
endtikzpicture
&
begintikzpicture[baseline,trim axis right]
beginaxis[title=Inverse Multi Quadrics,
legend entries=$s=1$, $s=2$,$s=3$,
xtick=]
addplot 1/sqrt(1^2 + x^2);
addplot 1/sqrt(2^2 + x^2);
addplot 1/sqrt(3^2 + x^2);
endaxis
endtikzpicture
endtabular

enddocument


figure aligned






share|improve this answer




















  • @marmot Agreed. I don’t think the OP is aware of still being able to create different legends with groupplots. I took that as a “no” for using groupplots.
    – Ruixi Zhang
    Sep 3 at 20:22










  • I agree with you. Honestly, I did not read the question that far. ;-)
    – marmot
    Sep 3 at 20:24










  • Thanks for your reply, I should mark both as a valid answer. I prefer groupplot though, don't know why I thought that different legends where not possible.
    – Horus
    Sep 4 at 7:05










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',
convertImagesToLinks: false,
noModals: false,
showLowRepImageUploadWarning: true,
reputationToPostImages: null,
bindNavPrevention: true,
postfix: "",
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%2f449136%2ftabular-with-xticks-enabled-at-some-plots-make-one-plot-moved%23new-answer', 'question_page');

);

Post as a guest






























2 Answers
2






active

oldest

votes








2 Answers
2






active

oldest

votes









active

oldest

votes






active

oldest

votes








up vote
3
down vote



accepted










The groupplot library is made for this.



documentclassscrartcl

usepackagepgfplots
pgfplotssetcompat=1.16
usepgfplotslibrarygroupplots

begindocument

pgfplotsset
height=4cm, width=linewidth*0.5,
every axis plot post/.append style=mark=none,
xmin=-1, xmax=1, domain=-1:1, samples=100, minor y tick num=1,
xtick=empty

begintikzpicture
begingroupplot[group style=group size=2 by 2,height=4cm, width=linewidth*0.5,]
nextgroupplot[title=Gaussian,
legend entries=$s=2$, $s=4$,$s=8$]
addplot exp(- (2*x)^2);
addplot exp(- (4*x)^2);
addplot exp(- (8*x)^2);
nextgroupplot[title=Volume Splines]
addplot abs(x);
nextgroupplot[title=Multi Quadrics,
legend entries=$s=2$, $s=4$,$s=6$,
xtick=]
addplot sqrt(2^2 + x^2);
addplot sqrt(4^2 + x^2);
addplot sqrt(6^2 + x^2);
nextgroupplot[title=Inverse Multi Quadrics,
legend entries=$s=1$, $s=2$,$s=3$,
xtick=]
addplot 1/sqrt(1^2 + x^2);
addplot 1/sqrt(2^2 + x^2);
addplot 1/sqrt(3^2 + x^2);
endgroupplot
endtikzpicture
enddocument


enter image description here






share|improve this answer




















  • Lovely! Not sure why I said that groupplot is not suitable. Thanks!
    – Horus
    Sep 4 at 7:04














up vote
3
down vote



accepted










The groupplot library is made for this.



documentclassscrartcl

usepackagepgfplots
pgfplotssetcompat=1.16
usepgfplotslibrarygroupplots

begindocument

pgfplotsset
height=4cm, width=linewidth*0.5,
every axis plot post/.append style=mark=none,
xmin=-1, xmax=1, domain=-1:1, samples=100, minor y tick num=1,
xtick=empty

begintikzpicture
begingroupplot[group style=group size=2 by 2,height=4cm, width=linewidth*0.5,]
nextgroupplot[title=Gaussian,
legend entries=$s=2$, $s=4$,$s=8$]
addplot exp(- (2*x)^2);
addplot exp(- (4*x)^2);
addplot exp(- (8*x)^2);
nextgroupplot[title=Volume Splines]
addplot abs(x);
nextgroupplot[title=Multi Quadrics,
legend entries=$s=2$, $s=4$,$s=6$,
xtick=]
addplot sqrt(2^2 + x^2);
addplot sqrt(4^2 + x^2);
addplot sqrt(6^2 + x^2);
nextgroupplot[title=Inverse Multi Quadrics,
legend entries=$s=1$, $s=2$,$s=3$,
xtick=]
addplot 1/sqrt(1^2 + x^2);
addplot 1/sqrt(2^2 + x^2);
addplot 1/sqrt(3^2 + x^2);
endgroupplot
endtikzpicture
enddocument


enter image description here






share|improve this answer




















  • Lovely! Not sure why I said that groupplot is not suitable. Thanks!
    – Horus
    Sep 4 at 7:04












up vote
3
down vote



accepted







up vote
3
down vote



accepted






The groupplot library is made for this.



documentclassscrartcl

usepackagepgfplots
pgfplotssetcompat=1.16
usepgfplotslibrarygroupplots

begindocument

pgfplotsset
height=4cm, width=linewidth*0.5,
every axis plot post/.append style=mark=none,
xmin=-1, xmax=1, domain=-1:1, samples=100, minor y tick num=1,
xtick=empty

begintikzpicture
begingroupplot[group style=group size=2 by 2,height=4cm, width=linewidth*0.5,]
nextgroupplot[title=Gaussian,
legend entries=$s=2$, $s=4$,$s=8$]
addplot exp(- (2*x)^2);
addplot exp(- (4*x)^2);
addplot exp(- (8*x)^2);
nextgroupplot[title=Volume Splines]
addplot abs(x);
nextgroupplot[title=Multi Quadrics,
legend entries=$s=2$, $s=4$,$s=6$,
xtick=]
addplot sqrt(2^2 + x^2);
addplot sqrt(4^2 + x^2);
addplot sqrt(6^2 + x^2);
nextgroupplot[title=Inverse Multi Quadrics,
legend entries=$s=1$, $s=2$,$s=3$,
xtick=]
addplot 1/sqrt(1^2 + x^2);
addplot 1/sqrt(2^2 + x^2);
addplot 1/sqrt(3^2 + x^2);
endgroupplot
endtikzpicture
enddocument


enter image description here






share|improve this answer












The groupplot library is made for this.



documentclassscrartcl

usepackagepgfplots
pgfplotssetcompat=1.16
usepgfplotslibrarygroupplots

begindocument

pgfplotsset
height=4cm, width=linewidth*0.5,
every axis plot post/.append style=mark=none,
xmin=-1, xmax=1, domain=-1:1, samples=100, minor y tick num=1,
xtick=empty

begintikzpicture
begingroupplot[group style=group size=2 by 2,height=4cm, width=linewidth*0.5,]
nextgroupplot[title=Gaussian,
legend entries=$s=2$, $s=4$,$s=8$]
addplot exp(- (2*x)^2);
addplot exp(- (4*x)^2);
addplot exp(- (8*x)^2);
nextgroupplot[title=Volume Splines]
addplot abs(x);
nextgroupplot[title=Multi Quadrics,
legend entries=$s=2$, $s=4$,$s=6$,
xtick=]
addplot sqrt(2^2 + x^2);
addplot sqrt(4^2 + x^2);
addplot sqrt(6^2 + x^2);
nextgroupplot[title=Inverse Multi Quadrics,
legend entries=$s=1$, $s=2$,$s=3$,
xtick=]
addplot 1/sqrt(1^2 + x^2);
addplot 1/sqrt(2^2 + x^2);
addplot 1/sqrt(3^2 + x^2);
endgroupplot
endtikzpicture
enddocument


enter image description here







share|improve this answer












share|improve this answer



share|improve this answer










answered Sep 3 at 15:45









marmot

60.7k464132




60.7k464132











  • Lovely! Not sure why I said that groupplot is not suitable. Thanks!
    – Horus
    Sep 4 at 7:04
















  • Lovely! Not sure why I said that groupplot is not suitable. Thanks!
    – Horus
    Sep 4 at 7:04















Lovely! Not sure why I said that groupplot is not suitable. Thanks!
– Horus
Sep 4 at 7:04




Lovely! Not sure why I said that groupplot is not suitable. Thanks!
– Horus
Sep 4 at 7:04










up vote
4
down vote













Simply use begintabularll:



documentclassscrartcl
usepackagepgfplots
pgfplotssetcompat=1.16

begindocument

pgfplotsset
height=4cm, width=linewidth*0.5,
every axis plot post/.append style=mark=none,
xmin=-1, xmax=1, domain=-1:1, samples=100, minor y tick num=1,
xtick=empty


begintabularll
begintikzpicture[baseline,trim axis left]
beginaxis[title=Gaussian,
legend entries=$s=2$, $s=4$,$s=8$]
addplot exp(- (2*x)^2);
addplot exp(- (4*x)^2);
addplot exp(- (8*x)^2);
endaxis
endtikzpicture
&
begintikzpicture[baseline,trim axis right]
beginaxis[title=Volume Splines]
addplot abs(x);
endaxis
endtikzpicture
\
begintikzpicture[baseline,trim axis left]
beginaxis[title=Multi Quadrics,
legend entries=$s=2$, $s=4$,$s=6$,
xtick=]
addplot sqrt(2^2 + x^2);
addplot sqrt(4^2 + x^2);
addplot sqrt(6^2 + x^2);
endaxis
endtikzpicture
&
begintikzpicture[baseline,trim axis right]
beginaxis[title=Inverse Multi Quadrics,
legend entries=$s=1$, $s=2$,$s=3$,
xtick=]
addplot 1/sqrt(1^2 + x^2);
addplot 1/sqrt(2^2 + x^2);
addplot 1/sqrt(3^2 + x^2);
endaxis
endtikzpicture
endtabular

enddocument


figure aligned






share|improve this answer




















  • @marmot Agreed. I don’t think the OP is aware of still being able to create different legends with groupplots. I took that as a “no” for using groupplots.
    – Ruixi Zhang
    Sep 3 at 20:22










  • I agree with you. Honestly, I did not read the question that far. ;-)
    – marmot
    Sep 3 at 20:24










  • Thanks for your reply, I should mark both as a valid answer. I prefer groupplot though, don't know why I thought that different legends where not possible.
    – Horus
    Sep 4 at 7:05














up vote
4
down vote













Simply use begintabularll:



documentclassscrartcl
usepackagepgfplots
pgfplotssetcompat=1.16

begindocument

pgfplotsset
height=4cm, width=linewidth*0.5,
every axis plot post/.append style=mark=none,
xmin=-1, xmax=1, domain=-1:1, samples=100, minor y tick num=1,
xtick=empty


begintabularll
begintikzpicture[baseline,trim axis left]
beginaxis[title=Gaussian,
legend entries=$s=2$, $s=4$,$s=8$]
addplot exp(- (2*x)^2);
addplot exp(- (4*x)^2);
addplot exp(- (8*x)^2);
endaxis
endtikzpicture
&
begintikzpicture[baseline,trim axis right]
beginaxis[title=Volume Splines]
addplot abs(x);
endaxis
endtikzpicture
\
begintikzpicture[baseline,trim axis left]
beginaxis[title=Multi Quadrics,
legend entries=$s=2$, $s=4$,$s=6$,
xtick=]
addplot sqrt(2^2 + x^2);
addplot sqrt(4^2 + x^2);
addplot sqrt(6^2 + x^2);
endaxis
endtikzpicture
&
begintikzpicture[baseline,trim axis right]
beginaxis[title=Inverse Multi Quadrics,
legend entries=$s=1$, $s=2$,$s=3$,
xtick=]
addplot 1/sqrt(1^2 + x^2);
addplot 1/sqrt(2^2 + x^2);
addplot 1/sqrt(3^2 + x^2);
endaxis
endtikzpicture
endtabular

enddocument


figure aligned






share|improve this answer




















  • @marmot Agreed. I don’t think the OP is aware of still being able to create different legends with groupplots. I took that as a “no” for using groupplots.
    – Ruixi Zhang
    Sep 3 at 20:22










  • I agree with you. Honestly, I did not read the question that far. ;-)
    – marmot
    Sep 3 at 20:24










  • Thanks for your reply, I should mark both as a valid answer. I prefer groupplot though, don't know why I thought that different legends where not possible.
    – Horus
    Sep 4 at 7:05












up vote
4
down vote










up vote
4
down vote









Simply use begintabularll:



documentclassscrartcl
usepackagepgfplots
pgfplotssetcompat=1.16

begindocument

pgfplotsset
height=4cm, width=linewidth*0.5,
every axis plot post/.append style=mark=none,
xmin=-1, xmax=1, domain=-1:1, samples=100, minor y tick num=1,
xtick=empty


begintabularll
begintikzpicture[baseline,trim axis left]
beginaxis[title=Gaussian,
legend entries=$s=2$, $s=4$,$s=8$]
addplot exp(- (2*x)^2);
addplot exp(- (4*x)^2);
addplot exp(- (8*x)^2);
endaxis
endtikzpicture
&
begintikzpicture[baseline,trim axis right]
beginaxis[title=Volume Splines]
addplot abs(x);
endaxis
endtikzpicture
\
begintikzpicture[baseline,trim axis left]
beginaxis[title=Multi Quadrics,
legend entries=$s=2$, $s=4$,$s=6$,
xtick=]
addplot sqrt(2^2 + x^2);
addplot sqrt(4^2 + x^2);
addplot sqrt(6^2 + x^2);
endaxis
endtikzpicture
&
begintikzpicture[baseline,trim axis right]
beginaxis[title=Inverse Multi Quadrics,
legend entries=$s=1$, $s=2$,$s=3$,
xtick=]
addplot 1/sqrt(1^2 + x^2);
addplot 1/sqrt(2^2 + x^2);
addplot 1/sqrt(3^2 + x^2);
endaxis
endtikzpicture
endtabular

enddocument


figure aligned






share|improve this answer












Simply use begintabularll:



documentclassscrartcl
usepackagepgfplots
pgfplotssetcompat=1.16

begindocument

pgfplotsset
height=4cm, width=linewidth*0.5,
every axis plot post/.append style=mark=none,
xmin=-1, xmax=1, domain=-1:1, samples=100, minor y tick num=1,
xtick=empty


begintabularll
begintikzpicture[baseline,trim axis left]
beginaxis[title=Gaussian,
legend entries=$s=2$, $s=4$,$s=8$]
addplot exp(- (2*x)^2);
addplot exp(- (4*x)^2);
addplot exp(- (8*x)^2);
endaxis
endtikzpicture
&
begintikzpicture[baseline,trim axis right]
beginaxis[title=Volume Splines]
addplot abs(x);
endaxis
endtikzpicture
\
begintikzpicture[baseline,trim axis left]
beginaxis[title=Multi Quadrics,
legend entries=$s=2$, $s=4$,$s=6$,
xtick=]
addplot sqrt(2^2 + x^2);
addplot sqrt(4^2 + x^2);
addplot sqrt(6^2 + x^2);
endaxis
endtikzpicture
&
begintikzpicture[baseline,trim axis right]
beginaxis[title=Inverse Multi Quadrics,
legend entries=$s=1$, $s=2$,$s=3$,
xtick=]
addplot 1/sqrt(1^2 + x^2);
addplot 1/sqrt(2^2 + x^2);
addplot 1/sqrt(3^2 + x^2);
endaxis
endtikzpicture
endtabular

enddocument


figure aligned







share|improve this answer












share|improve this answer



share|improve this answer










answered Sep 3 at 15:42









Ruixi Zhang

4,051318




4,051318











  • @marmot Agreed. I don’t think the OP is aware of still being able to create different legends with groupplots. I took that as a “no” for using groupplots.
    – Ruixi Zhang
    Sep 3 at 20:22










  • I agree with you. Honestly, I did not read the question that far. ;-)
    – marmot
    Sep 3 at 20:24










  • Thanks for your reply, I should mark both as a valid answer. I prefer groupplot though, don't know why I thought that different legends where not possible.
    – Horus
    Sep 4 at 7:05
















  • @marmot Agreed. I don’t think the OP is aware of still being able to create different legends with groupplots. I took that as a “no” for using groupplots.
    – Ruixi Zhang
    Sep 3 at 20:22










  • I agree with you. Honestly, I did not read the question that far. ;-)
    – marmot
    Sep 3 at 20:24










  • Thanks for your reply, I should mark both as a valid answer. I prefer groupplot though, don't know why I thought that different legends where not possible.
    – Horus
    Sep 4 at 7:05















@marmot Agreed. I don’t think the OP is aware of still being able to create different legends with groupplots. I took that as a “no” for using groupplots.
– Ruixi Zhang
Sep 3 at 20:22




@marmot Agreed. I don’t think the OP is aware of still being able to create different legends with groupplots. I took that as a “no” for using groupplots.
– Ruixi Zhang
Sep 3 at 20:22












I agree with you. Honestly, I did not read the question that far. ;-)
– marmot
Sep 3 at 20:24




I agree with you. Honestly, I did not read the question that far. ;-)
– marmot
Sep 3 at 20:24












Thanks for your reply, I should mark both as a valid answer. I prefer groupplot though, don't know why I thought that different legends where not possible.
– Horus
Sep 4 at 7:05




Thanks for your reply, I should mark both as a valid answer. I prefer groupplot though, don't know why I thought that different legends where not possible.
– Horus
Sep 4 at 7:05

















 

draft saved


draft discarded















































 


draft saved


draft discarded














StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2ftex.stackexchange.com%2fquestions%2f449136%2ftabular-with-xticks-enabled-at-some-plots-make-one-plot-moved%23new-answer', 'question_page');

);

Post as a guest













































































J3Z,z6xuC,b68,wX kCcek,3VM,I7lQZz1Xx1Tl eyjjlf z6VRlAhV,HeavnNt,KW2L1eCXrEznd YhU4N
ovAhA1oFw,wgLXTyTRsMj6ahKs,EZCUKOQ

Popular posts from this blog

How to check contact read email or not when send email to Individual?

How many registers does an x86_64 CPU actually have?

Displaying single band from multi-band raster using QGIS