Is zero-length line with an arrow in TikZ a bug?
Question
Is zero-length line with an arrow in TikZ a bug?
documentclass[tikz,border=12pt,12pt]{standalone}
begin{document}
begin{tikzpicture}
draw[->](1,1)--(1,1);
end{tikzpicture}
end{document}
Note: PSTricks behaves the same.
I am trying to find whether it is mathematically useful (at least for me) but in fact it is not.
The direction of the arrow does not converge. :-)
documentclass[tikz,border=12pt,12pt]{standalone}
begin{document}
foreach i in {6,5,...,1}{%
begin{tikzpicture}
draw (0,0) grid (6,6);
draw[->,ultra thick,red](45:1)--(45:i);
end{tikzpicture}}
end{document}
tikz-pgf
|
show 2 more comments
Question
Is zero-length line with an arrow in TikZ a bug?
documentclass[tikz,border=12pt,12pt]{standalone}
begin{document}
begin{tikzpicture}
draw[->](1,1)--(1,1);
end{tikzpicture}
end{document}
Note: PSTricks behaves the same.
I am trying to find whether it is mathematically useful (at least for me) but in fact it is not.
The direction of the arrow does not converge. :-)
documentclass[tikz,border=12pt,12pt]{standalone}
begin{document}
foreach i in {6,5,...,1}{%
begin{tikzpicture}
draw (0,0) grid (6,6);
draw[->,ultra thick,red](45:1)--(45:i);
end{tikzpicture}}
end{document}
tikz-pgf
6
In what way would this be a bug? It seems reasonable to me.
– Joseph Wright♦
yesterday
@JosephWright: Why is it reasonable to you? Just a blank (nothing gets rendered) is reasonable to me.
– God Must Be Crazy
yesterday
1
There are two steps: 'draw a line' and 'add an arrow at the end of the line'. Just because the line has length zero, doesn't make it vanish.
– Joseph Wright♦
yesterday
@JosephWright: That is the bug. What is an arrow for in this case? :-)
– God Must Be Crazy
yesterday
2
It might be useful to be able to draw an arrow tip without any line. However, then one has the problem of pointing it in the desired direction! A couple notes: Justdraw[->](1,1);
is enough to get the arrow tip. If you want to give it direction, there is this trick:draw[->](1,1)--++(60:1000sp)
. Interestingly, if you shrink the second dimension to less than about 600sp, the arrow tip reverts to pointing up. The exact limit may depend on the overall scale of the picture. This seems to me more a useless feature than a bug, but this site is not supposed to be about opinions.
– Harald Hanche-Olsen
yesterday
|
show 2 more comments
Question
Is zero-length line with an arrow in TikZ a bug?
documentclass[tikz,border=12pt,12pt]{standalone}
begin{document}
begin{tikzpicture}
draw[->](1,1)--(1,1);
end{tikzpicture}
end{document}
Note: PSTricks behaves the same.
I am trying to find whether it is mathematically useful (at least for me) but in fact it is not.
The direction of the arrow does not converge. :-)
documentclass[tikz,border=12pt,12pt]{standalone}
begin{document}
foreach i in {6,5,...,1}{%
begin{tikzpicture}
draw (0,0) grid (6,6);
draw[->,ultra thick,red](45:1)--(45:i);
end{tikzpicture}}
end{document}
tikz-pgf
Question
Is zero-length line with an arrow in TikZ a bug?
documentclass[tikz,border=12pt,12pt]{standalone}
begin{document}
begin{tikzpicture}
draw[->](1,1)--(1,1);
end{tikzpicture}
end{document}
Note: PSTricks behaves the same.
I am trying to find whether it is mathematically useful (at least for me) but in fact it is not.
The direction of the arrow does not converge. :-)
documentclass[tikz,border=12pt,12pt]{standalone}
begin{document}
foreach i in {6,5,...,1}{%
begin{tikzpicture}
draw (0,0) grid (6,6);
draw[->,ultra thick,red](45:1)--(45:i);
end{tikzpicture}}
end{document}
tikz-pgf
tikz-pgf
edited yesterday
God Must Be Crazy
asked yesterday
God Must Be CrazyGod Must Be Crazy
5,88211039
5,88211039
6
In what way would this be a bug? It seems reasonable to me.
– Joseph Wright♦
yesterday
@JosephWright: Why is it reasonable to you? Just a blank (nothing gets rendered) is reasonable to me.
– God Must Be Crazy
yesterday
1
There are two steps: 'draw a line' and 'add an arrow at the end of the line'. Just because the line has length zero, doesn't make it vanish.
– Joseph Wright♦
yesterday
@JosephWright: That is the bug. What is an arrow for in this case? :-)
– God Must Be Crazy
yesterday
2
It might be useful to be able to draw an arrow tip without any line. However, then one has the problem of pointing it in the desired direction! A couple notes: Justdraw[->](1,1);
is enough to get the arrow tip. If you want to give it direction, there is this trick:draw[->](1,1)--++(60:1000sp)
. Interestingly, if you shrink the second dimension to less than about 600sp, the arrow tip reverts to pointing up. The exact limit may depend on the overall scale of the picture. This seems to me more a useless feature than a bug, but this site is not supposed to be about opinions.
– Harald Hanche-Olsen
yesterday
|
show 2 more comments
6
In what way would this be a bug? It seems reasonable to me.
– Joseph Wright♦
yesterday
@JosephWright: Why is it reasonable to you? Just a blank (nothing gets rendered) is reasonable to me.
– God Must Be Crazy
yesterday
1
There are two steps: 'draw a line' and 'add an arrow at the end of the line'. Just because the line has length zero, doesn't make it vanish.
– Joseph Wright♦
yesterday
@JosephWright: That is the bug. What is an arrow for in this case? :-)
– God Must Be Crazy
yesterday
2
It might be useful to be able to draw an arrow tip without any line. However, then one has the problem of pointing it in the desired direction! A couple notes: Justdraw[->](1,1);
is enough to get the arrow tip. If you want to give it direction, there is this trick:draw[->](1,1)--++(60:1000sp)
. Interestingly, if you shrink the second dimension to less than about 600sp, the arrow tip reverts to pointing up. The exact limit may depend on the overall scale of the picture. This seems to me more a useless feature than a bug, but this site is not supposed to be about opinions.
– Harald Hanche-Olsen
yesterday
6
6
In what way would this be a bug? It seems reasonable to me.
– Joseph Wright♦
yesterday
In what way would this be a bug? It seems reasonable to me.
– Joseph Wright♦
yesterday
@JosephWright: Why is it reasonable to you? Just a blank (nothing gets rendered) is reasonable to me.
– God Must Be Crazy
yesterday
@JosephWright: Why is it reasonable to you? Just a blank (nothing gets rendered) is reasonable to me.
– God Must Be Crazy
yesterday
1
1
There are two steps: 'draw a line' and 'add an arrow at the end of the line'. Just because the line has length zero, doesn't make it vanish.
– Joseph Wright♦
yesterday
There are two steps: 'draw a line' and 'add an arrow at the end of the line'. Just because the line has length zero, doesn't make it vanish.
– Joseph Wright♦
yesterday
@JosephWright: That is the bug. What is an arrow for in this case? :-)
– God Must Be Crazy
yesterday
@JosephWright: That is the bug. What is an arrow for in this case? :-)
– God Must Be Crazy
yesterday
2
2
It might be useful to be able to draw an arrow tip without any line. However, then one has the problem of pointing it in the desired direction! A couple notes: Just
draw[->](1,1);
is enough to get the arrow tip. If you want to give it direction, there is this trick: draw[->](1,1)--++(60:1000sp)
. Interestingly, if you shrink the second dimension to less than about 600sp, the arrow tip reverts to pointing up. The exact limit may depend on the overall scale of the picture. This seems to me more a useless feature than a bug, but this site is not supposed to be about opinions.– Harald Hanche-Olsen
yesterday
It might be useful to be able to draw an arrow tip without any line. However, then one has the problem of pointing it in the desired direction! A couple notes: Just
draw[->](1,1);
is enough to get the arrow tip. If you want to give it direction, there is this trick: draw[->](1,1)--++(60:1000sp)
. Interestingly, if you shrink the second dimension to less than about 600sp, the arrow tip reverts to pointing up. The exact limit may depend on the overall scale of the picture. This seems to me more a useless feature than a bug, but this site is not supposed to be about opinions.– Harald Hanche-Olsen
yesterday
|
show 2 more comments
1 Answer
1
active
oldest
votes
In agreement with the comments by Joseph Wright and Harald Hanche-Olsen, I would say that the answer to your question is
no, it is not a bug.
Usually, a bug is some behavior that is different than what one expects from what is written in the manual. As pointed out by Paul Gaborit (Thanks!!!), on p. 183 of the pgfmanual there is a distinction between proper and non-proper tips. All you need to do is to add tips=proper
to get
documentclass[tikz,border=12pt]{standalone}
begin{document}
begin{tikzpicture}
draw[->](1,1)--(1,1);
begin{scope}[tips=proper,xshift=1cm]
draw[->](1,1)--(1,1);
end{scope}
end{tikzpicture}
end{document}
As you can see, the second arrow gets suppressed completely, which is, judging from your question and comments, the behavior you feel is appropriate. So all you need to do in your TikZ pictures is to add this style. (If you want it for all your pictures, just do tikzset{every picture/.append style={tips=proper}}
.)
Naively, you may think that TikZ could produce an error if the information is not sufficient, as it is if one does not specify the direction of the arrow. However, there is no error message. Rather, if there is no well-defined direction, TikZ will find one for you. I'd call that a feature.
Also, I cannot see the point of the animation. Clearly, TikZ (nor any other tool I know of) has knowledge on what happened in the previous frame (without further ado) . The last frame of your animation shows an arrow of length 0, regardless of whether the previous frames had arrows or ducks in. How is there a limit?
Because this bug is not so dangerous, let me call it a useless feature. :-)
– God Must Be Crazy
yesterday
1
@GodMustBeCrazy I dunno. What do you expect? You enter strange code and get a strange result. If you ask TeX to typeset$1=2$
it will also do that without complaining. Yet I would not blame it on TeX if the equation is wrong.
– marmot
yesterday
If you buy a fried chicken, you can optionally get a pepper powder. Now you don't buy a fried chicken, should you get a pepper powder? :-)
– God Must Be Crazy
yesterday
@GodMustBeCrazy I am vegetarian. This is yet another example showing that it is good to be vegetarian. I do not have this problem.
– marmot
yesterday
1
@GodMustBeCrazy Imagine you just need dressing (maybe you already have the salad in your garden). Wouldn't it be annoyingly if the clerk at the supermarket would refuse to sell you dressing because you are not buying salad as well? Imagine you already have some image and just need to add an arrowhead, how would you do this if you are not allowed to draw an arrowhead without line?
– samcarter
11 hours ago
|
show 7 more comments
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%2f468866%2fis-zero-length-line-with-an-arrow-in-tikz-a-bug%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
In agreement with the comments by Joseph Wright and Harald Hanche-Olsen, I would say that the answer to your question is
no, it is not a bug.
Usually, a bug is some behavior that is different than what one expects from what is written in the manual. As pointed out by Paul Gaborit (Thanks!!!), on p. 183 of the pgfmanual there is a distinction between proper and non-proper tips. All you need to do is to add tips=proper
to get
documentclass[tikz,border=12pt]{standalone}
begin{document}
begin{tikzpicture}
draw[->](1,1)--(1,1);
begin{scope}[tips=proper,xshift=1cm]
draw[->](1,1)--(1,1);
end{scope}
end{tikzpicture}
end{document}
As you can see, the second arrow gets suppressed completely, which is, judging from your question and comments, the behavior you feel is appropriate. So all you need to do in your TikZ pictures is to add this style. (If you want it for all your pictures, just do tikzset{every picture/.append style={tips=proper}}
.)
Naively, you may think that TikZ could produce an error if the information is not sufficient, as it is if one does not specify the direction of the arrow. However, there is no error message. Rather, if there is no well-defined direction, TikZ will find one for you. I'd call that a feature.
Also, I cannot see the point of the animation. Clearly, TikZ (nor any other tool I know of) has knowledge on what happened in the previous frame (without further ado) . The last frame of your animation shows an arrow of length 0, regardless of whether the previous frames had arrows or ducks in. How is there a limit?
Because this bug is not so dangerous, let me call it a useless feature. :-)
– God Must Be Crazy
yesterday
1
@GodMustBeCrazy I dunno. What do you expect? You enter strange code and get a strange result. If you ask TeX to typeset$1=2$
it will also do that without complaining. Yet I would not blame it on TeX if the equation is wrong.
– marmot
yesterday
If you buy a fried chicken, you can optionally get a pepper powder. Now you don't buy a fried chicken, should you get a pepper powder? :-)
– God Must Be Crazy
yesterday
@GodMustBeCrazy I am vegetarian. This is yet another example showing that it is good to be vegetarian. I do not have this problem.
– marmot
yesterday
1
@GodMustBeCrazy Imagine you just need dressing (maybe you already have the salad in your garden). Wouldn't it be annoyingly if the clerk at the supermarket would refuse to sell you dressing because you are not buying salad as well? Imagine you already have some image and just need to add an arrowhead, how would you do this if you are not allowed to draw an arrowhead without line?
– samcarter
11 hours ago
|
show 7 more comments
In agreement with the comments by Joseph Wright and Harald Hanche-Olsen, I would say that the answer to your question is
no, it is not a bug.
Usually, a bug is some behavior that is different than what one expects from what is written in the manual. As pointed out by Paul Gaborit (Thanks!!!), on p. 183 of the pgfmanual there is a distinction between proper and non-proper tips. All you need to do is to add tips=proper
to get
documentclass[tikz,border=12pt]{standalone}
begin{document}
begin{tikzpicture}
draw[->](1,1)--(1,1);
begin{scope}[tips=proper,xshift=1cm]
draw[->](1,1)--(1,1);
end{scope}
end{tikzpicture}
end{document}
As you can see, the second arrow gets suppressed completely, which is, judging from your question and comments, the behavior you feel is appropriate. So all you need to do in your TikZ pictures is to add this style. (If you want it for all your pictures, just do tikzset{every picture/.append style={tips=proper}}
.)
Naively, you may think that TikZ could produce an error if the information is not sufficient, as it is if one does not specify the direction of the arrow. However, there is no error message. Rather, if there is no well-defined direction, TikZ will find one for you. I'd call that a feature.
Also, I cannot see the point of the animation. Clearly, TikZ (nor any other tool I know of) has knowledge on what happened in the previous frame (without further ado) . The last frame of your animation shows an arrow of length 0, regardless of whether the previous frames had arrows or ducks in. How is there a limit?
Because this bug is not so dangerous, let me call it a useless feature. :-)
– God Must Be Crazy
yesterday
1
@GodMustBeCrazy I dunno. What do you expect? You enter strange code and get a strange result. If you ask TeX to typeset$1=2$
it will also do that without complaining. Yet I would not blame it on TeX if the equation is wrong.
– marmot
yesterday
If you buy a fried chicken, you can optionally get a pepper powder. Now you don't buy a fried chicken, should you get a pepper powder? :-)
– God Must Be Crazy
yesterday
@GodMustBeCrazy I am vegetarian. This is yet another example showing that it is good to be vegetarian. I do not have this problem.
– marmot
yesterday
1
@GodMustBeCrazy Imagine you just need dressing (maybe you already have the salad in your garden). Wouldn't it be annoyingly if the clerk at the supermarket would refuse to sell you dressing because you are not buying salad as well? Imagine you already have some image and just need to add an arrowhead, how would you do this if you are not allowed to draw an arrowhead without line?
– samcarter
11 hours ago
|
show 7 more comments
In agreement with the comments by Joseph Wright and Harald Hanche-Olsen, I would say that the answer to your question is
no, it is not a bug.
Usually, a bug is some behavior that is different than what one expects from what is written in the manual. As pointed out by Paul Gaborit (Thanks!!!), on p. 183 of the pgfmanual there is a distinction between proper and non-proper tips. All you need to do is to add tips=proper
to get
documentclass[tikz,border=12pt]{standalone}
begin{document}
begin{tikzpicture}
draw[->](1,1)--(1,1);
begin{scope}[tips=proper,xshift=1cm]
draw[->](1,1)--(1,1);
end{scope}
end{tikzpicture}
end{document}
As you can see, the second arrow gets suppressed completely, which is, judging from your question and comments, the behavior you feel is appropriate. So all you need to do in your TikZ pictures is to add this style. (If you want it for all your pictures, just do tikzset{every picture/.append style={tips=proper}}
.)
Naively, you may think that TikZ could produce an error if the information is not sufficient, as it is if one does not specify the direction of the arrow. However, there is no error message. Rather, if there is no well-defined direction, TikZ will find one for you. I'd call that a feature.
Also, I cannot see the point of the animation. Clearly, TikZ (nor any other tool I know of) has knowledge on what happened in the previous frame (without further ado) . The last frame of your animation shows an arrow of length 0, regardless of whether the previous frames had arrows or ducks in. How is there a limit?
In agreement with the comments by Joseph Wright and Harald Hanche-Olsen, I would say that the answer to your question is
no, it is not a bug.
Usually, a bug is some behavior that is different than what one expects from what is written in the manual. As pointed out by Paul Gaborit (Thanks!!!), on p. 183 of the pgfmanual there is a distinction between proper and non-proper tips. All you need to do is to add tips=proper
to get
documentclass[tikz,border=12pt]{standalone}
begin{document}
begin{tikzpicture}
draw[->](1,1)--(1,1);
begin{scope}[tips=proper,xshift=1cm]
draw[->](1,1)--(1,1);
end{scope}
end{tikzpicture}
end{document}
As you can see, the second arrow gets suppressed completely, which is, judging from your question and comments, the behavior you feel is appropriate. So all you need to do in your TikZ pictures is to add this style. (If you want it for all your pictures, just do tikzset{every picture/.append style={tips=proper}}
.)
Naively, you may think that TikZ could produce an error if the information is not sufficient, as it is if one does not specify the direction of the arrow. However, there is no error message. Rather, if there is no well-defined direction, TikZ will find one for you. I'd call that a feature.
Also, I cannot see the point of the animation. Clearly, TikZ (nor any other tool I know of) has knowledge on what happened in the previous frame (without further ado) . The last frame of your animation shows an arrow of length 0, regardless of whether the previous frames had arrows or ducks in. How is there a limit?
edited 11 hours ago
answered yesterday
marmotmarmot
89.4k4103194
89.4k4103194
Because this bug is not so dangerous, let me call it a useless feature. :-)
– God Must Be Crazy
yesterday
1
@GodMustBeCrazy I dunno. What do you expect? You enter strange code and get a strange result. If you ask TeX to typeset$1=2$
it will also do that without complaining. Yet I would not blame it on TeX if the equation is wrong.
– marmot
yesterday
If you buy a fried chicken, you can optionally get a pepper powder. Now you don't buy a fried chicken, should you get a pepper powder? :-)
– God Must Be Crazy
yesterday
@GodMustBeCrazy I am vegetarian. This is yet another example showing that it is good to be vegetarian. I do not have this problem.
– marmot
yesterday
1
@GodMustBeCrazy Imagine you just need dressing (maybe you already have the salad in your garden). Wouldn't it be annoyingly if the clerk at the supermarket would refuse to sell you dressing because you are not buying salad as well? Imagine you already have some image and just need to add an arrowhead, how would you do this if you are not allowed to draw an arrowhead without line?
– samcarter
11 hours ago
|
show 7 more comments
Because this bug is not so dangerous, let me call it a useless feature. :-)
– God Must Be Crazy
yesterday
1
@GodMustBeCrazy I dunno. What do you expect? You enter strange code and get a strange result. If you ask TeX to typeset$1=2$
it will also do that without complaining. Yet I would not blame it on TeX if the equation is wrong.
– marmot
yesterday
If you buy a fried chicken, you can optionally get a pepper powder. Now you don't buy a fried chicken, should you get a pepper powder? :-)
– God Must Be Crazy
yesterday
@GodMustBeCrazy I am vegetarian. This is yet another example showing that it is good to be vegetarian. I do not have this problem.
– marmot
yesterday
1
@GodMustBeCrazy Imagine you just need dressing (maybe you already have the salad in your garden). Wouldn't it be annoyingly if the clerk at the supermarket would refuse to sell you dressing because you are not buying salad as well? Imagine you already have some image and just need to add an arrowhead, how would you do this if you are not allowed to draw an arrowhead without line?
– samcarter
11 hours ago
Because this bug is not so dangerous, let me call it a useless feature. :-)
– God Must Be Crazy
yesterday
Because this bug is not so dangerous, let me call it a useless feature. :-)
– God Must Be Crazy
yesterday
1
1
@GodMustBeCrazy I dunno. What do you expect? You enter strange code and get a strange result. If you ask TeX to typeset
$1=2$
it will also do that without complaining. Yet I would not blame it on TeX if the equation is wrong.– marmot
yesterday
@GodMustBeCrazy I dunno. What do you expect? You enter strange code and get a strange result. If you ask TeX to typeset
$1=2$
it will also do that without complaining. Yet I would not blame it on TeX if the equation is wrong.– marmot
yesterday
If you buy a fried chicken, you can optionally get a pepper powder. Now you don't buy a fried chicken, should you get a pepper powder? :-)
– God Must Be Crazy
yesterday
If you buy a fried chicken, you can optionally get a pepper powder. Now you don't buy a fried chicken, should you get a pepper powder? :-)
– God Must Be Crazy
yesterday
@GodMustBeCrazy I am vegetarian. This is yet another example showing that it is good to be vegetarian. I do not have this problem.
– marmot
yesterday
@GodMustBeCrazy I am vegetarian. This is yet another example showing that it is good to be vegetarian. I do not have this problem.
– marmot
yesterday
1
1
@GodMustBeCrazy Imagine you just need dressing (maybe you already have the salad in your garden). Wouldn't it be annoyingly if the clerk at the supermarket would refuse to sell you dressing because you are not buying salad as well? Imagine you already have some image and just need to add an arrowhead, how would you do this if you are not allowed to draw an arrowhead without line?
– samcarter
11 hours ago
@GodMustBeCrazy Imagine you just need dressing (maybe you already have the salad in your garden). Wouldn't it be annoyingly if the clerk at the supermarket would refuse to sell you dressing because you are not buying salad as well? Imagine you already have some image and just need to add an arrowhead, how would you do this if you are not allowed to draw an arrowhead without line?
– samcarter
11 hours ago
|
show 7 more comments
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.
Some of your past answers have not been well-received, and you're in danger of being blocked from answering.
Please pay close attention to the following guidance:
- 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%2f468866%2fis-zero-length-line-with-an-arrow-in-tikz-a-bug%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
6
In what way would this be a bug? It seems reasonable to me.
– Joseph Wright♦
yesterday
@JosephWright: Why is it reasonable to you? Just a blank (nothing gets rendered) is reasonable to me.
– God Must Be Crazy
yesterday
1
There are two steps: 'draw a line' and 'add an arrow at the end of the line'. Just because the line has length zero, doesn't make it vanish.
– Joseph Wright♦
yesterday
@JosephWright: That is the bug. What is an arrow for in this case? :-)
– God Must Be Crazy
yesterday
2
It might be useful to be able to draw an arrow tip without any line. However, then one has the problem of pointing it in the desired direction! A couple notes: Just
draw[->](1,1);
is enough to get the arrow tip. If you want to give it direction, there is this trick:draw[->](1,1)--++(60:1000sp)
. Interestingly, if you shrink the second dimension to less than about 600sp, the arrow tip reverts to pointing up. The exact limit may depend on the overall scale of the picture. This seems to me more a useless feature than a bug, but this site is not supposed to be about opinions.– Harald Hanche-Olsen
yesterday