Adding Tips to Axis Lines
Clash Royale CLAN TAG#URR8PPP
up vote
4
down vote
favorite
I am trying to add arrows pointing on the axis lines for the following graph:
documentclassarticle
usepackagexcolor
usepackagepgfplots
usepackageamsmath
begindocument
beginfigure[ht]
centering
begintikzpicture[scale=1.75,line width=1pt]
beginaxis[
color= gray,
xmin=-4.9,
xmax=4.9,
ymin=-1.9,
ymax=2.9,
axis equal image,
axis lines=middle,
font=scriptsize,
xtick distance=1,
ytick distance=1,
xticklabels=,
yticklabels=,
legend pos=outer north east,
]
addplot[red, smooth, domain=-4.9:4.9] (8)/(4 + x^2);
addlegendentry$f(x)$
addplot[blue, smooth, domain=-4.9:4.9](-16*x)/((4+x^2)^2);
addlegendentry$f'(x)$
addplot[green, smooth, domain=-4.9:4.9]-(((16)*((4 + x^2)^2))-((4 + x^2)*
(64*(x^2))))/((4+x^2)^4);
addlegendentry$f''(x)$
endaxis
endtikzpicture
captionPlotting the curve when $r=1$.
labelfig:1
endfigure
enddocument
Here is the output of the code:
See how only the top and the right end of the axis lines have arrow pointers, and the bottom and the left do not? Is there a way so I could get some on all four ends?
Thanks!
tikz-pgf pgfplots axis
add a comment |Â
up vote
4
down vote
favorite
I am trying to add arrows pointing on the axis lines for the following graph:
documentclassarticle
usepackagexcolor
usepackagepgfplots
usepackageamsmath
begindocument
beginfigure[ht]
centering
begintikzpicture[scale=1.75,line width=1pt]
beginaxis[
color= gray,
xmin=-4.9,
xmax=4.9,
ymin=-1.9,
ymax=2.9,
axis equal image,
axis lines=middle,
font=scriptsize,
xtick distance=1,
ytick distance=1,
xticklabels=,
yticklabels=,
legend pos=outer north east,
]
addplot[red, smooth, domain=-4.9:4.9] (8)/(4 + x^2);
addlegendentry$f(x)$
addplot[blue, smooth, domain=-4.9:4.9](-16*x)/((4+x^2)^2);
addlegendentry$f'(x)$
addplot[green, smooth, domain=-4.9:4.9]-(((16)*((4 + x^2)^2))-((4 + x^2)*
(64*(x^2))))/((4+x^2)^4);
addlegendentry$f''(x)$
endaxis
endtikzpicture
captionPlotting the curve when $r=1$.
labelfig:1
endfigure
enddocument
Here is the output of the code:
See how only the top and the right end of the axis lines have arrow pointers, and the bottom and the left do not? Is there a way so I could get some on all four ends?
Thanks!
tikz-pgf pgfplots axis
add a comment |Â
up vote
4
down vote
favorite
up vote
4
down vote
favorite
I am trying to add arrows pointing on the axis lines for the following graph:
documentclassarticle
usepackagexcolor
usepackagepgfplots
usepackageamsmath
begindocument
beginfigure[ht]
centering
begintikzpicture[scale=1.75,line width=1pt]
beginaxis[
color= gray,
xmin=-4.9,
xmax=4.9,
ymin=-1.9,
ymax=2.9,
axis equal image,
axis lines=middle,
font=scriptsize,
xtick distance=1,
ytick distance=1,
xticklabels=,
yticklabels=,
legend pos=outer north east,
]
addplot[red, smooth, domain=-4.9:4.9] (8)/(4 + x^2);
addlegendentry$f(x)$
addplot[blue, smooth, domain=-4.9:4.9](-16*x)/((4+x^2)^2);
addlegendentry$f'(x)$
addplot[green, smooth, domain=-4.9:4.9]-(((16)*((4 + x^2)^2))-((4 + x^2)*
(64*(x^2))))/((4+x^2)^4);
addlegendentry$f''(x)$
endaxis
endtikzpicture
captionPlotting the curve when $r=1$.
labelfig:1
endfigure
enddocument
Here is the output of the code:
See how only the top and the right end of the axis lines have arrow pointers, and the bottom and the left do not? Is there a way so I could get some on all four ends?
Thanks!
tikz-pgf pgfplots axis
I am trying to add arrows pointing on the axis lines for the following graph:
documentclassarticle
usepackagexcolor
usepackagepgfplots
usepackageamsmath
begindocument
beginfigure[ht]
centering
begintikzpicture[scale=1.75,line width=1pt]
beginaxis[
color= gray,
xmin=-4.9,
xmax=4.9,
ymin=-1.9,
ymax=2.9,
axis equal image,
axis lines=middle,
font=scriptsize,
xtick distance=1,
ytick distance=1,
xticklabels=,
yticklabels=,
legend pos=outer north east,
]
addplot[red, smooth, domain=-4.9:4.9] (8)/(4 + x^2);
addlegendentry$f(x)$
addplot[blue, smooth, domain=-4.9:4.9](-16*x)/((4+x^2)^2);
addlegendentry$f'(x)$
addplot[green, smooth, domain=-4.9:4.9]-(((16)*((4 + x^2)^2))-((4 + x^2)*
(64*(x^2))))/((4+x^2)^4);
addlegendentry$f''(x)$
endaxis
endtikzpicture
captionPlotting the curve when $r=1$.
labelfig:1
endfigure
enddocument
Here is the output of the code:
See how only the top and the right end of the axis lines have arrow pointers, and the bottom and the left do not? Is there a way so I could get some on all four ends?
Thanks!
tikz-pgf pgfplots axis
tikz-pgf pgfplots axis
asked 4 hours ago
Aiden Kenny
553
553
add a comment |Â
add a comment |Â
1 Answer
1
active
oldest
votes
up vote
4
down vote
Add
every inner x axis line/.append style=stealth-stealth,
every inner y axis line/.append style=stealth-stealth,
at the end of your axis options, just after the legend pos=outer north east,
and just before the ]
See section 4.9.9 of the current reference manual.
If you are happy with them both being the same, you could just set a single key (as pointed out in the comments):
inner axis line style=stealth-stealth
1
Slightly shorter would beinner axis line style=stealth-stealth
.
â Torbjørn T.
2 hours ago
add a comment |Â
1 Answer
1
active
oldest
votes
1 Answer
1
active
oldest
votes
active
oldest
votes
active
oldest
votes
up vote
4
down vote
Add
every inner x axis line/.append style=stealth-stealth,
every inner y axis line/.append style=stealth-stealth,
at the end of your axis options, just after the legend pos=outer north east,
and just before the ]
See section 4.9.9 of the current reference manual.
If you are happy with them both being the same, you could just set a single key (as pointed out in the comments):
inner axis line style=stealth-stealth
1
Slightly shorter would beinner axis line style=stealth-stealth
.
â Torbjørn T.
2 hours ago
add a comment |Â
up vote
4
down vote
Add
every inner x axis line/.append style=stealth-stealth,
every inner y axis line/.append style=stealth-stealth,
at the end of your axis options, just after the legend pos=outer north east,
and just before the ]
See section 4.9.9 of the current reference manual.
If you are happy with them both being the same, you could just set a single key (as pointed out in the comments):
inner axis line style=stealth-stealth
1
Slightly shorter would beinner axis line style=stealth-stealth
.
â Torbjørn T.
2 hours ago
add a comment |Â
up vote
4
down vote
up vote
4
down vote
Add
every inner x axis line/.append style=stealth-stealth,
every inner y axis line/.append style=stealth-stealth,
at the end of your axis options, just after the legend pos=outer north east,
and just before the ]
See section 4.9.9 of the current reference manual.
If you are happy with them both being the same, you could just set a single key (as pointed out in the comments):
inner axis line style=stealth-stealth
Add
every inner x axis line/.append style=stealth-stealth,
every inner y axis line/.append style=stealth-stealth,
at the end of your axis options, just after the legend pos=outer north east,
and just before the ]
See section 4.9.9 of the current reference manual.
If you are happy with them both being the same, you could just set a single key (as pointed out in the comments):
inner axis line style=stealth-stealth
edited 44 mins ago
answered 2 hours ago
Thruston
25.1k23988
25.1k23988
1
Slightly shorter would beinner axis line style=stealth-stealth
.
â Torbjørn T.
2 hours ago
add a comment |Â
1
Slightly shorter would beinner axis line style=stealth-stealth
.
â Torbjørn T.
2 hours ago
1
1
Slightly shorter would be
inner axis line style=stealth-stealth
.â Torbjørn T.
2 hours ago
Slightly shorter would be
inner axis line style=stealth-stealth
.â Torbjørn T.
2 hours ago
add a comment |Â
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
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2ftex.stackexchange.com%2fquestions%2f456155%2fadding-tips-to-axis-lines%23new-answer', 'question_page');
);
Post as a guest
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
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
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