3D arrow with shade and text with tikz












2















I want to create a figure as shown with latex/tikz. It contains a three-axis space, 3D arrow with text inside and shadows, and 3D-rotated axis titles etc. Only other examples I find are about 3D arrowheads without shadow. Can someone help me achieve this please? I am open to alternatives to tikz as well, as long as it is created in Latex.enter image description here










share|improve this question

























  • Could you please show us which 3D arrow you are referring to?

    – marmot
    Oct 15 '18 at 12:28











  • The blue one in the picture with "Name" on it.

    – Ankush
    Oct 15 '18 at 14:46











  • I am referring to your statement "Only other examples I find are about 3D arrowheads without shadow." This seems to suggest that already have found some suitable 3D arrow, and I would like to ask you to add it with the code to your question.

    – marmot
    Oct 15 '18 at 14:51











  • Oh sorry. I am referring to this tex.stackexchange.com/questions/51340/… However, as you see those arrows are rather different from what I need.

    – Ankush
    Oct 15 '18 at 14:55
















2















I want to create a figure as shown with latex/tikz. It contains a three-axis space, 3D arrow with text inside and shadows, and 3D-rotated axis titles etc. Only other examples I find are about 3D arrowheads without shadow. Can someone help me achieve this please? I am open to alternatives to tikz as well, as long as it is created in Latex.enter image description here










share|improve this question

























  • Could you please show us which 3D arrow you are referring to?

    – marmot
    Oct 15 '18 at 12:28











  • The blue one in the picture with "Name" on it.

    – Ankush
    Oct 15 '18 at 14:46











  • I am referring to your statement "Only other examples I find are about 3D arrowheads without shadow." This seems to suggest that already have found some suitable 3D arrow, and I would like to ask you to add it with the code to your question.

    – marmot
    Oct 15 '18 at 14:51











  • Oh sorry. I am referring to this tex.stackexchange.com/questions/51340/… However, as you see those arrows are rather different from what I need.

    – Ankush
    Oct 15 '18 at 14:55














2












2








2








I want to create a figure as shown with latex/tikz. It contains a three-axis space, 3D arrow with text inside and shadows, and 3D-rotated axis titles etc. Only other examples I find are about 3D arrowheads without shadow. Can someone help me achieve this please? I am open to alternatives to tikz as well, as long as it is created in Latex.enter image description here










share|improve this question
















I want to create a figure as shown with latex/tikz. It contains a three-axis space, 3D arrow with text inside and shadows, and 3D-rotated axis titles etc. Only other examples I find are about 3D arrowheads without shadow. Can someone help me achieve this please? I am open to alternatives to tikz as well, as long as it is created in Latex.enter image description here







tikz-pgf tikz-arrows tikz-3dplot tikz-3d






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited Jan 15 at 19:27









Stefan Pinnow

19.7k83275




19.7k83275










asked Oct 15 '18 at 4:47









AnkushAnkush

11617




11617













  • Could you please show us which 3D arrow you are referring to?

    – marmot
    Oct 15 '18 at 12:28











  • The blue one in the picture with "Name" on it.

    – Ankush
    Oct 15 '18 at 14:46











  • I am referring to your statement "Only other examples I find are about 3D arrowheads without shadow." This seems to suggest that already have found some suitable 3D arrow, and I would like to ask you to add it with the code to your question.

    – marmot
    Oct 15 '18 at 14:51











  • Oh sorry. I am referring to this tex.stackexchange.com/questions/51340/… However, as you see those arrows are rather different from what I need.

    – Ankush
    Oct 15 '18 at 14:55



















  • Could you please show us which 3D arrow you are referring to?

    – marmot
    Oct 15 '18 at 12:28











  • The blue one in the picture with "Name" on it.

    – Ankush
    Oct 15 '18 at 14:46











  • I am referring to your statement "Only other examples I find are about 3D arrowheads without shadow." This seems to suggest that already have found some suitable 3D arrow, and I would like to ask you to add it with the code to your question.

    – marmot
    Oct 15 '18 at 14:51











  • Oh sorry. I am referring to this tex.stackexchange.com/questions/51340/… However, as you see those arrows are rather different from what I need.

    – Ankush
    Oct 15 '18 at 14:55

















Could you please show us which 3D arrow you are referring to?

– marmot
Oct 15 '18 at 12:28





Could you please show us which 3D arrow you are referring to?

– marmot
Oct 15 '18 at 12:28













The blue one in the picture with "Name" on it.

– Ankush
Oct 15 '18 at 14:46





The blue one in the picture with "Name" on it.

– Ankush
Oct 15 '18 at 14:46













I am referring to your statement "Only other examples I find are about 3D arrowheads without shadow." This seems to suggest that already have found some suitable 3D arrow, and I would like to ask you to add it with the code to your question.

– marmot
Oct 15 '18 at 14:51





I am referring to your statement "Only other examples I find are about 3D arrowheads without shadow." This seems to suggest that already have found some suitable 3D arrow, and I would like to ask you to add it with the code to your question.

– marmot
Oct 15 '18 at 14:51













Oh sorry. I am referring to this tex.stackexchange.com/questions/51340/… However, as you see those arrows are rather different from what I need.

– Ankush
Oct 15 '18 at 14:55





Oh sorry. I am referring to this tex.stackexchange.com/questions/51340/… However, as you see those arrows are rather different from what I need.

– Ankush
Oct 15 '18 at 14:55










1 Answer
1






active

oldest

votes


















2














Here is a proposal.



documentclass[tikz,border=3.14mm]{standalone}
usepackage{tikz-3dplot}
usetikzlibrary{3d,shapes.geometric,shadows.blur}
% small fix for canvas is xy plane at z % https://tex.stackexchange.com/a/48776/121799
makeatletter
tikzoption{canvas is xy plane at z}{%
deftikz@plane@origin{pgfpointxyz{0}{0}{#1}}%
deftikz@plane@x{pgfpointxyz{1}{0}{#1}}%
deftikz@plane@y{pgfpointxyz{0}{1}{#1}}%
tikz@canvas@is@plane}
makeatother

begin{document}
tdplotsetmaincoords{60}{70}
begin{tikzpicture}[tdplot_main_coords,>=latex,line join=bevel]
coordinate (O) at (0,0,0);
begin{scope}[canvas is xy plane at z=0,transform shape]
node[ellipse,fill=orange,fill opacity=0.3,text=red,font=sffamily,
minimum width=2cm,minimum height=0.5cm,rotate=90] at (0.75,2) {text A};
node[font=sffamily] at (4,-0.5) {y axis};
node[ellipse,fill=orange,fill opacity=0.3,text=red,font=sffamily,
minimum width=2cm,minimum height=0.5cm] at (2,0.75) {text B};
node[font=sffamily,rotate=90] at (-0.5,4) {x axis};
begin{scope}[rotate=45]
path[blur shadow={shadow blur steps=5},yscale=0.5] (0,0) -- (4,0.2) coordinate (g1)
-- (4,0.4) coordinate (g2) -- (4.4,0) coordinate (g3)
-- (4,-0.4) coordinate (g4) -- (4,-0.2) coordinate (g5) -- cycle;
end{scope}
end{scope}
begin{scope}[canvas is yz plane at x=0,transform shape]
node[ellipse,fill=orange,fill opacity=0.3,text=red,font=sffamily,
minimum width=2cm,minimum height=0.5cm,rotate=90] at (0.75,2) {text C};
node[font=sffamily,rotate=90] at (-0.5,4) {z axis};
end{scope}
draw[thick,->] (0,0,0) -- (5,0,0);% node[anchor=north east]{$x$};
draw[thick,->] (0,0,0) -- (0,5,0);% node[anchor=north west]{$y$};
draw[thick,->] (0,0,0) -- (0,0,5);% node[anchor=south]{$z$};
tdplotsetrotatedcoords{60}{150}{45}
begin{scope}[tdplot_rotated_coords]
begin{scope}[canvas is yz plane at x=0,transform shape]
path (4,0.2) coordinate (b1)
-- (4,0.4) coordinate (b2) -- (4.4,0) coordinate (b3)
-- (4,-0.4) coordinate (b4) -- (4,-0.2) coordinate (b5);
end{scope}
end{scope}
tdplotsetrotatedcoords{60}{152}{42}
begin{scope}[tdplot_rotated_coords]
begin{scope}[canvas is yz plane at x=0,transform shape]
draw[fill=blue!60] (0,0) -- (4,0.2) coordinate (f1)
-- (4,0.4) coordinate (f2) -- (4.4,0) coordinate (f3)
-- (4,-0.4) coordinate (f4) -- (4,-0.2) coordinate (f5) -- cycle;
path (2,0) -- (4,0) node[pos=1,font=sffamily,anchor=east,yscale=-1]{some text};
end{scope}
end{scope}
draw[fill=blue!60!black] (f2) -- (f3) -- (b3) -- (b2) -- cycle;
draw[fill=blue!60!black] (f4) -- (f3) -- (b3) -- (b4) -- cycle;
end{tikzpicture}
end{document}


enter image description here



Note that I have a very weak internet connection at the moment, so I'd like to ask you to refrain from asking for many small corrections in many comments.






share|improve this answer


























  • Can you add the text on the blue arrow ("name" in my example above)? When I add it within the third scope, it comes as strangely flipped.

    – Ankush
    Oct 16 '18 at 17:36











  • @Ankush Done, ;-)

    – marmot
    Oct 16 '18 at 18:06






  • 1





    For the record: Jake's patch is now incorporated in v3.1 of TikZ.

    – Stefan Pinnow
    Jan 15 at 19:26











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
});


}
});














draft saved

draft discarded


















StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2ftex.stackexchange.com%2fquestions%2f455207%2f3d-arrow-with-shade-and-text-with-tikz%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









2














Here is a proposal.



documentclass[tikz,border=3.14mm]{standalone}
usepackage{tikz-3dplot}
usetikzlibrary{3d,shapes.geometric,shadows.blur}
% small fix for canvas is xy plane at z % https://tex.stackexchange.com/a/48776/121799
makeatletter
tikzoption{canvas is xy plane at z}{%
deftikz@plane@origin{pgfpointxyz{0}{0}{#1}}%
deftikz@plane@x{pgfpointxyz{1}{0}{#1}}%
deftikz@plane@y{pgfpointxyz{0}{1}{#1}}%
tikz@canvas@is@plane}
makeatother

begin{document}
tdplotsetmaincoords{60}{70}
begin{tikzpicture}[tdplot_main_coords,>=latex,line join=bevel]
coordinate (O) at (0,0,0);
begin{scope}[canvas is xy plane at z=0,transform shape]
node[ellipse,fill=orange,fill opacity=0.3,text=red,font=sffamily,
minimum width=2cm,minimum height=0.5cm,rotate=90] at (0.75,2) {text A};
node[font=sffamily] at (4,-0.5) {y axis};
node[ellipse,fill=orange,fill opacity=0.3,text=red,font=sffamily,
minimum width=2cm,minimum height=0.5cm] at (2,0.75) {text B};
node[font=sffamily,rotate=90] at (-0.5,4) {x axis};
begin{scope}[rotate=45]
path[blur shadow={shadow blur steps=5},yscale=0.5] (0,0) -- (4,0.2) coordinate (g1)
-- (4,0.4) coordinate (g2) -- (4.4,0) coordinate (g3)
-- (4,-0.4) coordinate (g4) -- (4,-0.2) coordinate (g5) -- cycle;
end{scope}
end{scope}
begin{scope}[canvas is yz plane at x=0,transform shape]
node[ellipse,fill=orange,fill opacity=0.3,text=red,font=sffamily,
minimum width=2cm,minimum height=0.5cm,rotate=90] at (0.75,2) {text C};
node[font=sffamily,rotate=90] at (-0.5,4) {z axis};
end{scope}
draw[thick,->] (0,0,0) -- (5,0,0);% node[anchor=north east]{$x$};
draw[thick,->] (0,0,0) -- (0,5,0);% node[anchor=north west]{$y$};
draw[thick,->] (0,0,0) -- (0,0,5);% node[anchor=south]{$z$};
tdplotsetrotatedcoords{60}{150}{45}
begin{scope}[tdplot_rotated_coords]
begin{scope}[canvas is yz plane at x=0,transform shape]
path (4,0.2) coordinate (b1)
-- (4,0.4) coordinate (b2) -- (4.4,0) coordinate (b3)
-- (4,-0.4) coordinate (b4) -- (4,-0.2) coordinate (b5);
end{scope}
end{scope}
tdplotsetrotatedcoords{60}{152}{42}
begin{scope}[tdplot_rotated_coords]
begin{scope}[canvas is yz plane at x=0,transform shape]
draw[fill=blue!60] (0,0) -- (4,0.2) coordinate (f1)
-- (4,0.4) coordinate (f2) -- (4.4,0) coordinate (f3)
-- (4,-0.4) coordinate (f4) -- (4,-0.2) coordinate (f5) -- cycle;
path (2,0) -- (4,0) node[pos=1,font=sffamily,anchor=east,yscale=-1]{some text};
end{scope}
end{scope}
draw[fill=blue!60!black] (f2) -- (f3) -- (b3) -- (b2) -- cycle;
draw[fill=blue!60!black] (f4) -- (f3) -- (b3) -- (b4) -- cycle;
end{tikzpicture}
end{document}


enter image description here



Note that I have a very weak internet connection at the moment, so I'd like to ask you to refrain from asking for many small corrections in many comments.






share|improve this answer


























  • Can you add the text on the blue arrow ("name" in my example above)? When I add it within the third scope, it comes as strangely flipped.

    – Ankush
    Oct 16 '18 at 17:36











  • @Ankush Done, ;-)

    – marmot
    Oct 16 '18 at 18:06






  • 1





    For the record: Jake's patch is now incorporated in v3.1 of TikZ.

    – Stefan Pinnow
    Jan 15 at 19:26
















2














Here is a proposal.



documentclass[tikz,border=3.14mm]{standalone}
usepackage{tikz-3dplot}
usetikzlibrary{3d,shapes.geometric,shadows.blur}
% small fix for canvas is xy plane at z % https://tex.stackexchange.com/a/48776/121799
makeatletter
tikzoption{canvas is xy plane at z}{%
deftikz@plane@origin{pgfpointxyz{0}{0}{#1}}%
deftikz@plane@x{pgfpointxyz{1}{0}{#1}}%
deftikz@plane@y{pgfpointxyz{0}{1}{#1}}%
tikz@canvas@is@plane}
makeatother

begin{document}
tdplotsetmaincoords{60}{70}
begin{tikzpicture}[tdplot_main_coords,>=latex,line join=bevel]
coordinate (O) at (0,0,0);
begin{scope}[canvas is xy plane at z=0,transform shape]
node[ellipse,fill=orange,fill opacity=0.3,text=red,font=sffamily,
minimum width=2cm,minimum height=0.5cm,rotate=90] at (0.75,2) {text A};
node[font=sffamily] at (4,-0.5) {y axis};
node[ellipse,fill=orange,fill opacity=0.3,text=red,font=sffamily,
minimum width=2cm,minimum height=0.5cm] at (2,0.75) {text B};
node[font=sffamily,rotate=90] at (-0.5,4) {x axis};
begin{scope}[rotate=45]
path[blur shadow={shadow blur steps=5},yscale=0.5] (0,0) -- (4,0.2) coordinate (g1)
-- (4,0.4) coordinate (g2) -- (4.4,0) coordinate (g3)
-- (4,-0.4) coordinate (g4) -- (4,-0.2) coordinate (g5) -- cycle;
end{scope}
end{scope}
begin{scope}[canvas is yz plane at x=0,transform shape]
node[ellipse,fill=orange,fill opacity=0.3,text=red,font=sffamily,
minimum width=2cm,minimum height=0.5cm,rotate=90] at (0.75,2) {text C};
node[font=sffamily,rotate=90] at (-0.5,4) {z axis};
end{scope}
draw[thick,->] (0,0,0) -- (5,0,0);% node[anchor=north east]{$x$};
draw[thick,->] (0,0,0) -- (0,5,0);% node[anchor=north west]{$y$};
draw[thick,->] (0,0,0) -- (0,0,5);% node[anchor=south]{$z$};
tdplotsetrotatedcoords{60}{150}{45}
begin{scope}[tdplot_rotated_coords]
begin{scope}[canvas is yz plane at x=0,transform shape]
path (4,0.2) coordinate (b1)
-- (4,0.4) coordinate (b2) -- (4.4,0) coordinate (b3)
-- (4,-0.4) coordinate (b4) -- (4,-0.2) coordinate (b5);
end{scope}
end{scope}
tdplotsetrotatedcoords{60}{152}{42}
begin{scope}[tdplot_rotated_coords]
begin{scope}[canvas is yz plane at x=0,transform shape]
draw[fill=blue!60] (0,0) -- (4,0.2) coordinate (f1)
-- (4,0.4) coordinate (f2) -- (4.4,0) coordinate (f3)
-- (4,-0.4) coordinate (f4) -- (4,-0.2) coordinate (f5) -- cycle;
path (2,0) -- (4,0) node[pos=1,font=sffamily,anchor=east,yscale=-1]{some text};
end{scope}
end{scope}
draw[fill=blue!60!black] (f2) -- (f3) -- (b3) -- (b2) -- cycle;
draw[fill=blue!60!black] (f4) -- (f3) -- (b3) -- (b4) -- cycle;
end{tikzpicture}
end{document}


enter image description here



Note that I have a very weak internet connection at the moment, so I'd like to ask you to refrain from asking for many small corrections in many comments.






share|improve this answer


























  • Can you add the text on the blue arrow ("name" in my example above)? When I add it within the third scope, it comes as strangely flipped.

    – Ankush
    Oct 16 '18 at 17:36











  • @Ankush Done, ;-)

    – marmot
    Oct 16 '18 at 18:06






  • 1





    For the record: Jake's patch is now incorporated in v3.1 of TikZ.

    – Stefan Pinnow
    Jan 15 at 19:26














2












2








2







Here is a proposal.



documentclass[tikz,border=3.14mm]{standalone}
usepackage{tikz-3dplot}
usetikzlibrary{3d,shapes.geometric,shadows.blur}
% small fix for canvas is xy plane at z % https://tex.stackexchange.com/a/48776/121799
makeatletter
tikzoption{canvas is xy plane at z}{%
deftikz@plane@origin{pgfpointxyz{0}{0}{#1}}%
deftikz@plane@x{pgfpointxyz{1}{0}{#1}}%
deftikz@plane@y{pgfpointxyz{0}{1}{#1}}%
tikz@canvas@is@plane}
makeatother

begin{document}
tdplotsetmaincoords{60}{70}
begin{tikzpicture}[tdplot_main_coords,>=latex,line join=bevel]
coordinate (O) at (0,0,0);
begin{scope}[canvas is xy plane at z=0,transform shape]
node[ellipse,fill=orange,fill opacity=0.3,text=red,font=sffamily,
minimum width=2cm,minimum height=0.5cm,rotate=90] at (0.75,2) {text A};
node[font=sffamily] at (4,-0.5) {y axis};
node[ellipse,fill=orange,fill opacity=0.3,text=red,font=sffamily,
minimum width=2cm,minimum height=0.5cm] at (2,0.75) {text B};
node[font=sffamily,rotate=90] at (-0.5,4) {x axis};
begin{scope}[rotate=45]
path[blur shadow={shadow blur steps=5},yscale=0.5] (0,0) -- (4,0.2) coordinate (g1)
-- (4,0.4) coordinate (g2) -- (4.4,0) coordinate (g3)
-- (4,-0.4) coordinate (g4) -- (4,-0.2) coordinate (g5) -- cycle;
end{scope}
end{scope}
begin{scope}[canvas is yz plane at x=0,transform shape]
node[ellipse,fill=orange,fill opacity=0.3,text=red,font=sffamily,
minimum width=2cm,minimum height=0.5cm,rotate=90] at (0.75,2) {text C};
node[font=sffamily,rotate=90] at (-0.5,4) {z axis};
end{scope}
draw[thick,->] (0,0,0) -- (5,0,0);% node[anchor=north east]{$x$};
draw[thick,->] (0,0,0) -- (0,5,0);% node[anchor=north west]{$y$};
draw[thick,->] (0,0,0) -- (0,0,5);% node[anchor=south]{$z$};
tdplotsetrotatedcoords{60}{150}{45}
begin{scope}[tdplot_rotated_coords]
begin{scope}[canvas is yz plane at x=0,transform shape]
path (4,0.2) coordinate (b1)
-- (4,0.4) coordinate (b2) -- (4.4,0) coordinate (b3)
-- (4,-0.4) coordinate (b4) -- (4,-0.2) coordinate (b5);
end{scope}
end{scope}
tdplotsetrotatedcoords{60}{152}{42}
begin{scope}[tdplot_rotated_coords]
begin{scope}[canvas is yz plane at x=0,transform shape]
draw[fill=blue!60] (0,0) -- (4,0.2) coordinate (f1)
-- (4,0.4) coordinate (f2) -- (4.4,0) coordinate (f3)
-- (4,-0.4) coordinate (f4) -- (4,-0.2) coordinate (f5) -- cycle;
path (2,0) -- (4,0) node[pos=1,font=sffamily,anchor=east,yscale=-1]{some text};
end{scope}
end{scope}
draw[fill=blue!60!black] (f2) -- (f3) -- (b3) -- (b2) -- cycle;
draw[fill=blue!60!black] (f4) -- (f3) -- (b3) -- (b4) -- cycle;
end{tikzpicture}
end{document}


enter image description here



Note that I have a very weak internet connection at the moment, so I'd like to ask you to refrain from asking for many small corrections in many comments.






share|improve this answer















Here is a proposal.



documentclass[tikz,border=3.14mm]{standalone}
usepackage{tikz-3dplot}
usetikzlibrary{3d,shapes.geometric,shadows.blur}
% small fix for canvas is xy plane at z % https://tex.stackexchange.com/a/48776/121799
makeatletter
tikzoption{canvas is xy plane at z}{%
deftikz@plane@origin{pgfpointxyz{0}{0}{#1}}%
deftikz@plane@x{pgfpointxyz{1}{0}{#1}}%
deftikz@plane@y{pgfpointxyz{0}{1}{#1}}%
tikz@canvas@is@plane}
makeatother

begin{document}
tdplotsetmaincoords{60}{70}
begin{tikzpicture}[tdplot_main_coords,>=latex,line join=bevel]
coordinate (O) at (0,0,0);
begin{scope}[canvas is xy plane at z=0,transform shape]
node[ellipse,fill=orange,fill opacity=0.3,text=red,font=sffamily,
minimum width=2cm,minimum height=0.5cm,rotate=90] at (0.75,2) {text A};
node[font=sffamily] at (4,-0.5) {y axis};
node[ellipse,fill=orange,fill opacity=0.3,text=red,font=sffamily,
minimum width=2cm,minimum height=0.5cm] at (2,0.75) {text B};
node[font=sffamily,rotate=90] at (-0.5,4) {x axis};
begin{scope}[rotate=45]
path[blur shadow={shadow blur steps=5},yscale=0.5] (0,0) -- (4,0.2) coordinate (g1)
-- (4,0.4) coordinate (g2) -- (4.4,0) coordinate (g3)
-- (4,-0.4) coordinate (g4) -- (4,-0.2) coordinate (g5) -- cycle;
end{scope}
end{scope}
begin{scope}[canvas is yz plane at x=0,transform shape]
node[ellipse,fill=orange,fill opacity=0.3,text=red,font=sffamily,
minimum width=2cm,minimum height=0.5cm,rotate=90] at (0.75,2) {text C};
node[font=sffamily,rotate=90] at (-0.5,4) {z axis};
end{scope}
draw[thick,->] (0,0,0) -- (5,0,0);% node[anchor=north east]{$x$};
draw[thick,->] (0,0,0) -- (0,5,0);% node[anchor=north west]{$y$};
draw[thick,->] (0,0,0) -- (0,0,5);% node[anchor=south]{$z$};
tdplotsetrotatedcoords{60}{150}{45}
begin{scope}[tdplot_rotated_coords]
begin{scope}[canvas is yz plane at x=0,transform shape]
path (4,0.2) coordinate (b1)
-- (4,0.4) coordinate (b2) -- (4.4,0) coordinate (b3)
-- (4,-0.4) coordinate (b4) -- (4,-0.2) coordinate (b5);
end{scope}
end{scope}
tdplotsetrotatedcoords{60}{152}{42}
begin{scope}[tdplot_rotated_coords]
begin{scope}[canvas is yz plane at x=0,transform shape]
draw[fill=blue!60] (0,0) -- (4,0.2) coordinate (f1)
-- (4,0.4) coordinate (f2) -- (4.4,0) coordinate (f3)
-- (4,-0.4) coordinate (f4) -- (4,-0.2) coordinate (f5) -- cycle;
path (2,0) -- (4,0) node[pos=1,font=sffamily,anchor=east,yscale=-1]{some text};
end{scope}
end{scope}
draw[fill=blue!60!black] (f2) -- (f3) -- (b3) -- (b2) -- cycle;
draw[fill=blue!60!black] (f4) -- (f3) -- (b3) -- (b4) -- cycle;
end{tikzpicture}
end{document}


enter image description here



Note that I have a very weak internet connection at the moment, so I'd like to ask you to refrain from asking for many small corrections in many comments.







share|improve this answer














share|improve this answer



share|improve this answer








edited Oct 16 '18 at 18:05

























answered Oct 15 '18 at 20:07









marmotmarmot

93.8k4109208




93.8k4109208













  • Can you add the text on the blue arrow ("name" in my example above)? When I add it within the third scope, it comes as strangely flipped.

    – Ankush
    Oct 16 '18 at 17:36











  • @Ankush Done, ;-)

    – marmot
    Oct 16 '18 at 18:06






  • 1





    For the record: Jake's patch is now incorporated in v3.1 of TikZ.

    – Stefan Pinnow
    Jan 15 at 19:26



















  • Can you add the text on the blue arrow ("name" in my example above)? When I add it within the third scope, it comes as strangely flipped.

    – Ankush
    Oct 16 '18 at 17:36











  • @Ankush Done, ;-)

    – marmot
    Oct 16 '18 at 18:06






  • 1





    For the record: Jake's patch is now incorporated in v3.1 of TikZ.

    – Stefan Pinnow
    Jan 15 at 19:26

















Can you add the text on the blue arrow ("name" in my example above)? When I add it within the third scope, it comes as strangely flipped.

– Ankush
Oct 16 '18 at 17:36





Can you add the text on the blue arrow ("name" in my example above)? When I add it within the third scope, it comes as strangely flipped.

– Ankush
Oct 16 '18 at 17:36













@Ankush Done, ;-)

– marmot
Oct 16 '18 at 18:06





@Ankush Done, ;-)

– marmot
Oct 16 '18 at 18:06




1




1





For the record: Jake's patch is now incorporated in v3.1 of TikZ.

– Stefan Pinnow
Jan 15 at 19:26





For the record: Jake's patch is now incorporated in v3.1 of TikZ.

– Stefan Pinnow
Jan 15 at 19:26


















draft saved

draft discarded




















































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.




draft saved


draft discarded














StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2ftex.stackexchange.com%2fquestions%2f455207%2f3d-arrow-with-shade-and-text-with-tikz%23new-answer', 'question_page');
}
);

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







Popular posts from this blog

How to change which sound is reproduced for terminal bell?

Can I use Tabulator js library in my java Spring + Thymeleaf project?

Title Spacing in Bjornstrup Chapter, Removing Chapter Number From Contents