How can one draw a segment of a sphere with TikZ? The Next CEO of Stack OverflowHow to draw arcs linking two points in TikZ?Draw arc in tikz when center of circle is specifiedHow to draw a ring-like diagram with some labels on its arcs?circle vs arch with shorten — normal or bug?The intersection of a sphere with planes through an axis tangent to the north poleTikZ: Drawing an arc from an intersection to an intersectiontikz/pgfplots - Plotting 3D surface with sphereCreate with TikZ a union of more graphsHow draw axes & figure with TikZ using “mathematician's axes”?How can I draw a circle knowing center and radius lies on a plane?

Flying from Cape Town to England and return to another province

Can a Bladesinger Wizard use Bladesong with a Hand Crossbow?

How many extra stops do monopods offer for tele photographs?

Rotate a column

Is micro rebar a better way to reinforce concrete than rebar?

Plot of histogram similar to output from @risk

Why is quantifier elimination desirable for a given theory?

Can we say or write : "No, it'sn't"?

How to install OpenCV on Raspbian Stretch?

Do I need to write [sic] when a number is less than 10 but isn't written out?

Why isn't the Mueller report being released completely and unredacted?

Easy to read palindrome checker

Can MTA send mail via a relay without being told so?

Would a completely good Muggle be able to use a wand?

Why does standard notation not preserve intervals (visually)

Why this way of making earth uninhabitable in Interstellar?

A Man With a Stainless Steel Endoskeleton (like The Terminator) Fighting Cloaked Aliens Only He Can See

What was the first Unix version to run on a microcomputer?

Should I tutor a student who I know has cheated on their homework?

Is French Guiana a (hard) EU border?

Is it my responsibility to learn a new technology in my own time my employer wants to implement?

What is the value of α and β in a triangle?

How did people program for Consoles with multiple CPUs?

Proper way to express "He disappeared them"



How can one draw a segment of a sphere with TikZ?



The Next CEO of Stack OverflowHow to draw arcs linking two points in TikZ?Draw arc in tikz when center of circle is specifiedHow to draw a ring-like diagram with some labels on its arcs?circle vs arch with shorten — normal or bug?The intersection of a sphere with planes through an axis tangent to the north poleTikZ: Drawing an arc from an intersection to an intersectiontikz/pgfplots - Plotting 3D surface with sphereCreate with TikZ a union of more graphsHow draw axes & figure with TikZ using “mathematician's axes”?How can I draw a circle knowing center and radius lies on a plane?










0















I am trying to replace the black plan with a segment of a sphere using tikz :



continuation pseudo arclength



The sphere would be of centre H(Yi) and radius ||H(Yi) , H(Yi+1_0)|| on which will lie all the points from k=0 (green point) to k (blue point) (=> corresponding to an arc of a circle in the plan designated by the axis system in the upper left corner).



Any propositions using tikz to add a part of a sphere would be greatly appreciated. Thank you.










share|improve this question









New contributor




Yacola is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.















  • 4





    welcome to tex.se! to my opinion your question (as is) is to broad and type do-it-for-me, so it will probably will be closed .... please show us, what you try so far.

    – Zarko
    1 hour ago
















0















I am trying to replace the black plan with a segment of a sphere using tikz :



continuation pseudo arclength



The sphere would be of centre H(Yi) and radius ||H(Yi) , H(Yi+1_0)|| on which will lie all the points from k=0 (green point) to k (blue point) (=> corresponding to an arc of a circle in the plan designated by the axis system in the upper left corner).



Any propositions using tikz to add a part of a sphere would be greatly appreciated. Thank you.










share|improve this question









New contributor




Yacola is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.















  • 4





    welcome to tex.se! to my opinion your question (as is) is to broad and type do-it-for-me, so it will probably will be closed .... please show us, what you try so far.

    – Zarko
    1 hour ago














0












0








0








I am trying to replace the black plan with a segment of a sphere using tikz :



continuation pseudo arclength



The sphere would be of centre H(Yi) and radius ||H(Yi) , H(Yi+1_0)|| on which will lie all the points from k=0 (green point) to k (blue point) (=> corresponding to an arc of a circle in the plan designated by the axis system in the upper left corner).



Any propositions using tikz to add a part of a sphere would be greatly appreciated. Thank you.










share|improve this question









New contributor




Yacola is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.












I am trying to replace the black plan with a segment of a sphere using tikz :



continuation pseudo arclength



The sphere would be of centre H(Yi) and radius ||H(Yi) , H(Yi+1_0)|| on which will lie all the points from k=0 (green point) to k (blue point) (=> corresponding to an arc of a circle in the plan designated by the axis system in the upper left corner).



Any propositions using tikz to add a part of a sphere would be greatly appreciated. Thank you.







tikz-pgf






share|improve this question









New contributor




Yacola is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.











share|improve this question









New contributor




Yacola is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.









share|improve this question




share|improve this question








edited 2 mins ago







Yacola













New contributor




Yacola is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.









asked 1 hour ago









YacolaYacola

63




63




New contributor




Yacola is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.





New contributor





Yacola is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.






Yacola is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.







  • 4





    welcome to tex.se! to my opinion your question (as is) is to broad and type do-it-for-me, so it will probably will be closed .... please show us, what you try so far.

    – Zarko
    1 hour ago













  • 4





    welcome to tex.se! to my opinion your question (as is) is to broad and type do-it-for-me, so it will probably will be closed .... please show us, what you try so far.

    – Zarko
    1 hour ago








4




4





welcome to tex.se! to my opinion your question (as is) is to broad and type do-it-for-me, so it will probably will be closed .... please show us, what you try so far.

– Zarko
1 hour ago






welcome to tex.se! to my opinion your question (as is) is to broad and type do-it-for-me, so it will probably will be closed .... please show us, what you try so far.

– Zarko
1 hour ago











1 Answer
1






active

oldest

votes


















1














The purpose of this post is to define a style that draws a part of a sphere. More specifically, it will draw a segment in which the latitude and longitude are in a certain range. Drawing this segment is then as simple as saying



draw[thin,fill=white,fill opacity=0.6,
sphere segment=phi from 60 to 120 and theta from -10 to 50 and radius 4];


where phi and theta are the longitude and latitude parameters.



documentclass[tikz,border=3.14mm]standalone 
usepackagetikz-3dplot
usetikzlibrary3d
begindocument
tdplotsetmaincoords7030
begintikzpicture[tdplot_main_coords,bullet/.style=fill,circle,inner
sep=1pt,sphere segment/.style args=%
phi from #1 to #2 and theta from #3 to #4 and radius #5insert path=%
plot[variable=x,smooth,domain=#2:#1]
(xyz spherical cs:radius=#5,longitude=x,latitude=#3)
-- plot[variable=x,smooth,domain=#3:#4]
(xyz spherical cs:radius=#5,longitude=#1,latitude=x)
--plot[variable=x,smooth,domain=#1:#2]
(xyz spherical cs:radius=#5,longitude=x,latitude=#4)
-- plot[variable=x,smooth,domain=#4:#3]
(xyz spherical cs:radius=#5,longitude=#2,latitude=x),
>=stealth,declare function=f(x)=exp(-2+0.5*x);]
draw[thick] (0,0,0) -- (4,0,0);
draw[thick,orange] plot[variable=x,smooth,domain=0:4] (x,0,f(x));
% note: this domain is an approximation, it should really be
% from 0 to xmax where xmax is the solution of x^2+f(x)^2=4^2
draw[thin,fill=white,fill opacity=0.6,
sphere segment=phi from 60 to 120 and theta from -10 to 50 and radius 4] ;
draw[thick,->] (4,0,0) -- (6,0,0);
draw[thick,orange] plot[variable=x,smooth,domain=4:6] (x,0,f(x));
% should be xmax:6
endtikzpicture
enddocument


enter image description here






share|improve this answer

























  • Thanks for your answer @marmot, I should have just ask it with MWE in the first time, that wasn't intended to be the whole picture but more like what you just did, my bad...

    – Yacola
    51 mins ago











  • @Yacola No worries and glad to hear that this goes in the right direction.

    – marmot
    39 mins ago











  • One last question : can you give me a hint on how to do it with a part of a sphere instead of the plan?

    – Yacola
    32 mins ago











  • I think that I am looking for a parametric plot that will replace the plan by a surface corresponding to a part of a sphere which center is where black line and orange curve cross. I'll try to look at more general spherical plots.

    – Yacola
    21 mins ago












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



);






Yacola is a new contributor. Be nice, and check out our Code of Conduct.









draft saved

draft discarded


















StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2ftex.stackexchange.com%2fquestions%2f482330%2fhow-can-one-draw-a-segment-of-a-sphere-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









1














The purpose of this post is to define a style that draws a part of a sphere. More specifically, it will draw a segment in which the latitude and longitude are in a certain range. Drawing this segment is then as simple as saying



draw[thin,fill=white,fill opacity=0.6,
sphere segment=phi from 60 to 120 and theta from -10 to 50 and radius 4];


where phi and theta are the longitude and latitude parameters.



documentclass[tikz,border=3.14mm]standalone 
usepackagetikz-3dplot
usetikzlibrary3d
begindocument
tdplotsetmaincoords7030
begintikzpicture[tdplot_main_coords,bullet/.style=fill,circle,inner
sep=1pt,sphere segment/.style args=%
phi from #1 to #2 and theta from #3 to #4 and radius #5insert path=%
plot[variable=x,smooth,domain=#2:#1]
(xyz spherical cs:radius=#5,longitude=x,latitude=#3)
-- plot[variable=x,smooth,domain=#3:#4]
(xyz spherical cs:radius=#5,longitude=#1,latitude=x)
--plot[variable=x,smooth,domain=#1:#2]
(xyz spherical cs:radius=#5,longitude=x,latitude=#4)
-- plot[variable=x,smooth,domain=#4:#3]
(xyz spherical cs:radius=#5,longitude=#2,latitude=x),
>=stealth,declare function=f(x)=exp(-2+0.5*x);]
draw[thick] (0,0,0) -- (4,0,0);
draw[thick,orange] plot[variable=x,smooth,domain=0:4] (x,0,f(x));
% note: this domain is an approximation, it should really be
% from 0 to xmax where xmax is the solution of x^2+f(x)^2=4^2
draw[thin,fill=white,fill opacity=0.6,
sphere segment=phi from 60 to 120 and theta from -10 to 50 and radius 4] ;
draw[thick,->] (4,0,0) -- (6,0,0);
draw[thick,orange] plot[variable=x,smooth,domain=4:6] (x,0,f(x));
% should be xmax:6
endtikzpicture
enddocument


enter image description here






share|improve this answer

























  • Thanks for your answer @marmot, I should have just ask it with MWE in the first time, that wasn't intended to be the whole picture but more like what you just did, my bad...

    – Yacola
    51 mins ago











  • @Yacola No worries and glad to hear that this goes in the right direction.

    – marmot
    39 mins ago











  • One last question : can you give me a hint on how to do it with a part of a sphere instead of the plan?

    – Yacola
    32 mins ago











  • I think that I am looking for a parametric plot that will replace the plan by a surface corresponding to a part of a sphere which center is where black line and orange curve cross. I'll try to look at more general spherical plots.

    – Yacola
    21 mins ago
















1














The purpose of this post is to define a style that draws a part of a sphere. More specifically, it will draw a segment in which the latitude and longitude are in a certain range. Drawing this segment is then as simple as saying



draw[thin,fill=white,fill opacity=0.6,
sphere segment=phi from 60 to 120 and theta from -10 to 50 and radius 4];


where phi and theta are the longitude and latitude parameters.



documentclass[tikz,border=3.14mm]standalone 
usepackagetikz-3dplot
usetikzlibrary3d
begindocument
tdplotsetmaincoords7030
begintikzpicture[tdplot_main_coords,bullet/.style=fill,circle,inner
sep=1pt,sphere segment/.style args=%
phi from #1 to #2 and theta from #3 to #4 and radius #5insert path=%
plot[variable=x,smooth,domain=#2:#1]
(xyz spherical cs:radius=#5,longitude=x,latitude=#3)
-- plot[variable=x,smooth,domain=#3:#4]
(xyz spherical cs:radius=#5,longitude=#1,latitude=x)
--plot[variable=x,smooth,domain=#1:#2]
(xyz spherical cs:radius=#5,longitude=x,latitude=#4)
-- plot[variable=x,smooth,domain=#4:#3]
(xyz spherical cs:radius=#5,longitude=#2,latitude=x),
>=stealth,declare function=f(x)=exp(-2+0.5*x);]
draw[thick] (0,0,0) -- (4,0,0);
draw[thick,orange] plot[variable=x,smooth,domain=0:4] (x,0,f(x));
% note: this domain is an approximation, it should really be
% from 0 to xmax where xmax is the solution of x^2+f(x)^2=4^2
draw[thin,fill=white,fill opacity=0.6,
sphere segment=phi from 60 to 120 and theta from -10 to 50 and radius 4] ;
draw[thick,->] (4,0,0) -- (6,0,0);
draw[thick,orange] plot[variable=x,smooth,domain=4:6] (x,0,f(x));
% should be xmax:6
endtikzpicture
enddocument


enter image description here






share|improve this answer

























  • Thanks for your answer @marmot, I should have just ask it with MWE in the first time, that wasn't intended to be the whole picture but more like what you just did, my bad...

    – Yacola
    51 mins ago











  • @Yacola No worries and glad to hear that this goes in the right direction.

    – marmot
    39 mins ago











  • One last question : can you give me a hint on how to do it with a part of a sphere instead of the plan?

    – Yacola
    32 mins ago











  • I think that I am looking for a parametric plot that will replace the plan by a surface corresponding to a part of a sphere which center is where black line and orange curve cross. I'll try to look at more general spherical plots.

    – Yacola
    21 mins ago














1












1








1







The purpose of this post is to define a style that draws a part of a sphere. More specifically, it will draw a segment in which the latitude and longitude are in a certain range. Drawing this segment is then as simple as saying



draw[thin,fill=white,fill opacity=0.6,
sphere segment=phi from 60 to 120 and theta from -10 to 50 and radius 4];


where phi and theta are the longitude and latitude parameters.



documentclass[tikz,border=3.14mm]standalone 
usepackagetikz-3dplot
usetikzlibrary3d
begindocument
tdplotsetmaincoords7030
begintikzpicture[tdplot_main_coords,bullet/.style=fill,circle,inner
sep=1pt,sphere segment/.style args=%
phi from #1 to #2 and theta from #3 to #4 and radius #5insert path=%
plot[variable=x,smooth,domain=#2:#1]
(xyz spherical cs:radius=#5,longitude=x,latitude=#3)
-- plot[variable=x,smooth,domain=#3:#4]
(xyz spherical cs:radius=#5,longitude=#1,latitude=x)
--plot[variable=x,smooth,domain=#1:#2]
(xyz spherical cs:radius=#5,longitude=x,latitude=#4)
-- plot[variable=x,smooth,domain=#4:#3]
(xyz spherical cs:radius=#5,longitude=#2,latitude=x),
>=stealth,declare function=f(x)=exp(-2+0.5*x);]
draw[thick] (0,0,0) -- (4,0,0);
draw[thick,orange] plot[variable=x,smooth,domain=0:4] (x,0,f(x));
% note: this domain is an approximation, it should really be
% from 0 to xmax where xmax is the solution of x^2+f(x)^2=4^2
draw[thin,fill=white,fill opacity=0.6,
sphere segment=phi from 60 to 120 and theta from -10 to 50 and radius 4] ;
draw[thick,->] (4,0,0) -- (6,0,0);
draw[thick,orange] plot[variable=x,smooth,domain=4:6] (x,0,f(x));
% should be xmax:6
endtikzpicture
enddocument


enter image description here






share|improve this answer















The purpose of this post is to define a style that draws a part of a sphere. More specifically, it will draw a segment in which the latitude and longitude are in a certain range. Drawing this segment is then as simple as saying



draw[thin,fill=white,fill opacity=0.6,
sphere segment=phi from 60 to 120 and theta from -10 to 50 and radius 4];


where phi and theta are the longitude and latitude parameters.



documentclass[tikz,border=3.14mm]standalone 
usepackagetikz-3dplot
usetikzlibrary3d
begindocument
tdplotsetmaincoords7030
begintikzpicture[tdplot_main_coords,bullet/.style=fill,circle,inner
sep=1pt,sphere segment/.style args=%
phi from #1 to #2 and theta from #3 to #4 and radius #5insert path=%
plot[variable=x,smooth,domain=#2:#1]
(xyz spherical cs:radius=#5,longitude=x,latitude=#3)
-- plot[variable=x,smooth,domain=#3:#4]
(xyz spherical cs:radius=#5,longitude=#1,latitude=x)
--plot[variable=x,smooth,domain=#1:#2]
(xyz spherical cs:radius=#5,longitude=x,latitude=#4)
-- plot[variable=x,smooth,domain=#4:#3]
(xyz spherical cs:radius=#5,longitude=#2,latitude=x),
>=stealth,declare function=f(x)=exp(-2+0.5*x);]
draw[thick] (0,0,0) -- (4,0,0);
draw[thick,orange] plot[variable=x,smooth,domain=0:4] (x,0,f(x));
% note: this domain is an approximation, it should really be
% from 0 to xmax where xmax is the solution of x^2+f(x)^2=4^2
draw[thin,fill=white,fill opacity=0.6,
sphere segment=phi from 60 to 120 and theta from -10 to 50 and radius 4] ;
draw[thick,->] (4,0,0) -- (6,0,0);
draw[thick,orange] plot[variable=x,smooth,domain=4:6] (x,0,f(x));
% should be xmax:6
endtikzpicture
enddocument


enter image description here







share|improve this answer














share|improve this answer



share|improve this answer








edited 10 mins ago

























answered 1 hour ago









marmotmarmot

113k5145274




113k5145274












  • Thanks for your answer @marmot, I should have just ask it with MWE in the first time, that wasn't intended to be the whole picture but more like what you just did, my bad...

    – Yacola
    51 mins ago











  • @Yacola No worries and glad to hear that this goes in the right direction.

    – marmot
    39 mins ago











  • One last question : can you give me a hint on how to do it with a part of a sphere instead of the plan?

    – Yacola
    32 mins ago











  • I think that I am looking for a parametric plot that will replace the plan by a surface corresponding to a part of a sphere which center is where black line and orange curve cross. I'll try to look at more general spherical plots.

    – Yacola
    21 mins ago


















  • Thanks for your answer @marmot, I should have just ask it with MWE in the first time, that wasn't intended to be the whole picture but more like what you just did, my bad...

    – Yacola
    51 mins ago











  • @Yacola No worries and glad to hear that this goes in the right direction.

    – marmot
    39 mins ago











  • One last question : can you give me a hint on how to do it with a part of a sphere instead of the plan?

    – Yacola
    32 mins ago











  • I think that I am looking for a parametric plot that will replace the plan by a surface corresponding to a part of a sphere which center is where black line and orange curve cross. I'll try to look at more general spherical plots.

    – Yacola
    21 mins ago

















Thanks for your answer @marmot, I should have just ask it with MWE in the first time, that wasn't intended to be the whole picture but more like what you just did, my bad...

– Yacola
51 mins ago





Thanks for your answer @marmot, I should have just ask it with MWE in the first time, that wasn't intended to be the whole picture but more like what you just did, my bad...

– Yacola
51 mins ago













@Yacola No worries and glad to hear that this goes in the right direction.

– marmot
39 mins ago





@Yacola No worries and glad to hear that this goes in the right direction.

– marmot
39 mins ago













One last question : can you give me a hint on how to do it with a part of a sphere instead of the plan?

– Yacola
32 mins ago





One last question : can you give me a hint on how to do it with a part of a sphere instead of the plan?

– Yacola
32 mins ago













I think that I am looking for a parametric plot that will replace the plan by a surface corresponding to a part of a sphere which center is where black line and orange curve cross. I'll try to look at more general spherical plots.

– Yacola
21 mins ago






I think that I am looking for a parametric plot that will replace the plan by a surface corresponding to a part of a sphere which center is where black line and orange curve cross. I'll try to look at more general spherical plots.

– Yacola
21 mins ago











Yacola is a new contributor. Be nice, and check out our Code of Conduct.









draft saved

draft discarded


















Yacola is a new contributor. Be nice, and check out our Code of Conduct.












Yacola is a new contributor. Be nice, and check out our Code of Conduct.











Yacola 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.




draft saved


draft discarded














StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2ftex.stackexchange.com%2fquestions%2f482330%2fhow-can-one-draw-a-segment-of-a-sphere-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 should I use the fbox command correctly to avoid producing a Bad Box message?How to put a long piece of text in a box?How to specify height and width of fboxIs there an arrayrulecolor-like command to change the rule color of fbox?What is the command to highlight bad boxes in pdf?Why does fbox sometimes place the box *over* the graphic image?how to put the text in the boxHow to create command for a box where text inside the box can automatically adjust?how can I make an fbox like command with certain color, shape and width of border?how to use fbox in align modeFbox increase the spacing between the box and it content (inner margin)how to change the box height of an equationWhat is the use of the hbox in a newcommand command?

152 Atala Notae | Nexus externi | Tabula navigationis"Discovery Circumstances: Numbered Minor Planets"2000152Small-Body Database

Doxepinum Nexus interni Notae | Tabula navigationis3158DB01142WHOa682390"Structural Analysis of the Histamine H1 Receptor""Transdermal and Topical Drug Administration in the Treatment of Pain""Antidepressants as antipruritic agents: A review"