How to draw a hyperbolic triangle?












0















Any ideas about how to draw this with TikZ? I tried several things, but nothing satisfactory. What I tried was to doing in the simplest way, that is,



begin{tikzpicture}
draw (point) arc (angle contitions);
end{tikzpicture}


What I need is something like the image:



enter image description here



I tried to use this code also (from Use tikz (for example) to draw pictures in hyperbolic geometry)



    begin{document}

newcommand{hgline}[2]{
pgfmathsetmacro{thetaone}{#1}
pgfmathsetmacro{thetatwo}{#2}
pgfmathsetmacro{theta}{(thetaone+thetatwo)/2}
pgfmathsetmacro{phi}{abs(thetaone-thetatwo)/2}
pgfmathsetmacro{close}{less(abs(phi-90),0.0001)}
ifdim close pt = 1pt
draw[blue] (theta+180:1) -- (theta:1);
else
pgfmathsetmacro{R}{tan(phi)}
pgfmathsetmacro{distance}{sqrt(1+R^2)}
draw[blue] (theta:distance) circle (R);
fi
}

begin{tikzpicture}
draw (0,0) circle (1);
clip (0,0) circle (1);
hgline{30}{-30}
hgline{180}{270}
hgline{30}{120}
hgline{0}{180}

end{tikzpicture}


But this allow me to draw lines embedded on the disk, and when I try to remove the circle, the code is unuseful.



Thank you.










share|improve this question









New contributor




Rubén Fernández Fuertes is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.





















  • A hyperbolic triangle. The first I tried was to use the most simple thing using draw (point) arc (angle). However, I could not control the lines so I searched here: tex.stackexchange.com/questions/16617/… I tried everything they put, but their solutions were about drawing hyperbolic lines on the disk, and when I tried to remove the disk the code began to do strange things.

    – Rubén Fernández Fuertes
    27 mins ago






  • 2





    Check out tex.stackexchange.com/q/446325/172926

    – Pippip19
    26 mins ago











  • I did it, and it was too much complicated for what I need, I need just a code for drawing a simple hyperbolic triangle...

    – Rubén Fernández Fuertes
    25 mins ago






  • 2





    @RubénFernándezFuertes We need to know what your simple hyperbolic triangle looks like. Please make your question in some formats like this: I want to draw this <picture> Here is what I have tried <code>.

    – JouleV
    23 mins ago











  • In the simplest possible case, you only have to draw three curves joining three points.

    – JouleV
    23 mins ago
















0















Any ideas about how to draw this with TikZ? I tried several things, but nothing satisfactory. What I tried was to doing in the simplest way, that is,



begin{tikzpicture}
draw (point) arc (angle contitions);
end{tikzpicture}


What I need is something like the image:



enter image description here



I tried to use this code also (from Use tikz (for example) to draw pictures in hyperbolic geometry)



    begin{document}

newcommand{hgline}[2]{
pgfmathsetmacro{thetaone}{#1}
pgfmathsetmacro{thetatwo}{#2}
pgfmathsetmacro{theta}{(thetaone+thetatwo)/2}
pgfmathsetmacro{phi}{abs(thetaone-thetatwo)/2}
pgfmathsetmacro{close}{less(abs(phi-90),0.0001)}
ifdim close pt = 1pt
draw[blue] (theta+180:1) -- (theta:1);
else
pgfmathsetmacro{R}{tan(phi)}
pgfmathsetmacro{distance}{sqrt(1+R^2)}
draw[blue] (theta:distance) circle (R);
fi
}

begin{tikzpicture}
draw (0,0) circle (1);
clip (0,0) circle (1);
hgline{30}{-30}
hgline{180}{270}
hgline{30}{120}
hgline{0}{180}

end{tikzpicture}


But this allow me to draw lines embedded on the disk, and when I try to remove the circle, the code is unuseful.



Thank you.










share|improve this question









New contributor




Rubén Fernández Fuertes is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.





















  • A hyperbolic triangle. The first I tried was to use the most simple thing using draw (point) arc (angle). However, I could not control the lines so I searched here: tex.stackexchange.com/questions/16617/… I tried everything they put, but their solutions were about drawing hyperbolic lines on the disk, and when I tried to remove the disk the code began to do strange things.

    – Rubén Fernández Fuertes
    27 mins ago






  • 2





    Check out tex.stackexchange.com/q/446325/172926

    – Pippip19
    26 mins ago











  • I did it, and it was too much complicated for what I need, I need just a code for drawing a simple hyperbolic triangle...

    – Rubén Fernández Fuertes
    25 mins ago






  • 2





    @RubénFernándezFuertes We need to know what your simple hyperbolic triangle looks like. Please make your question in some formats like this: I want to draw this <picture> Here is what I have tried <code>.

    – JouleV
    23 mins ago











  • In the simplest possible case, you only have to draw three curves joining three points.

    – JouleV
    23 mins ago














0












0








0


1






Any ideas about how to draw this with TikZ? I tried several things, but nothing satisfactory. What I tried was to doing in the simplest way, that is,



begin{tikzpicture}
draw (point) arc (angle contitions);
end{tikzpicture}


What I need is something like the image:



enter image description here



I tried to use this code also (from Use tikz (for example) to draw pictures in hyperbolic geometry)



    begin{document}

newcommand{hgline}[2]{
pgfmathsetmacro{thetaone}{#1}
pgfmathsetmacro{thetatwo}{#2}
pgfmathsetmacro{theta}{(thetaone+thetatwo)/2}
pgfmathsetmacro{phi}{abs(thetaone-thetatwo)/2}
pgfmathsetmacro{close}{less(abs(phi-90),0.0001)}
ifdim close pt = 1pt
draw[blue] (theta+180:1) -- (theta:1);
else
pgfmathsetmacro{R}{tan(phi)}
pgfmathsetmacro{distance}{sqrt(1+R^2)}
draw[blue] (theta:distance) circle (R);
fi
}

begin{tikzpicture}
draw (0,0) circle (1);
clip (0,0) circle (1);
hgline{30}{-30}
hgline{180}{270}
hgline{30}{120}
hgline{0}{180}

end{tikzpicture}


But this allow me to draw lines embedded on the disk, and when I try to remove the circle, the code is unuseful.



Thank you.










share|improve this question









New contributor




Rubén Fernández Fuertes is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.












Any ideas about how to draw this with TikZ? I tried several things, but nothing satisfactory. What I tried was to doing in the simplest way, that is,



begin{tikzpicture}
draw (point) arc (angle contitions);
end{tikzpicture}


What I need is something like the image:



enter image description here



I tried to use this code also (from Use tikz (for example) to draw pictures in hyperbolic geometry)



    begin{document}

newcommand{hgline}[2]{
pgfmathsetmacro{thetaone}{#1}
pgfmathsetmacro{thetatwo}{#2}
pgfmathsetmacro{theta}{(thetaone+thetatwo)/2}
pgfmathsetmacro{phi}{abs(thetaone-thetatwo)/2}
pgfmathsetmacro{close}{less(abs(phi-90),0.0001)}
ifdim close pt = 1pt
draw[blue] (theta+180:1) -- (theta:1);
else
pgfmathsetmacro{R}{tan(phi)}
pgfmathsetmacro{distance}{sqrt(1+R^2)}
draw[blue] (theta:distance) circle (R);
fi
}

begin{tikzpicture}
draw (0,0) circle (1);
clip (0,0) circle (1);
hgline{30}{-30}
hgline{180}{270}
hgline{30}{120}
hgline{0}{180}

end{tikzpicture}


But this allow me to draw lines embedded on the disk, and when I try to remove the circle, the code is unuseful.



Thank you.







tikz-pgf tikz-styles






share|improve this question









New contributor




Rubén Fernández Fuertes 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




Rubén Fernández Fuertes 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 13 mins ago







Rubén Fernández Fuertes













New contributor




Rubén Fernández Fuertes is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.









asked 35 mins ago









Rubén Fernández FuertesRubén Fernández Fuertes

11




11




New contributor




Rubén Fernández Fuertes is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.





New contributor





Rubén Fernández Fuertes is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.






Rubén Fernández Fuertes is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.













  • A hyperbolic triangle. The first I tried was to use the most simple thing using draw (point) arc (angle). However, I could not control the lines so I searched here: tex.stackexchange.com/questions/16617/… I tried everything they put, but their solutions were about drawing hyperbolic lines on the disk, and when I tried to remove the disk the code began to do strange things.

    – Rubén Fernández Fuertes
    27 mins ago






  • 2





    Check out tex.stackexchange.com/q/446325/172926

    – Pippip19
    26 mins ago











  • I did it, and it was too much complicated for what I need, I need just a code for drawing a simple hyperbolic triangle...

    – Rubén Fernández Fuertes
    25 mins ago






  • 2





    @RubénFernándezFuertes We need to know what your simple hyperbolic triangle looks like. Please make your question in some formats like this: I want to draw this <picture> Here is what I have tried <code>.

    – JouleV
    23 mins ago











  • In the simplest possible case, you only have to draw three curves joining three points.

    – JouleV
    23 mins ago



















  • A hyperbolic triangle. The first I tried was to use the most simple thing using draw (point) arc (angle). However, I could not control the lines so I searched here: tex.stackexchange.com/questions/16617/… I tried everything they put, but their solutions were about drawing hyperbolic lines on the disk, and when I tried to remove the disk the code began to do strange things.

    – Rubén Fernández Fuertes
    27 mins ago






  • 2





    Check out tex.stackexchange.com/q/446325/172926

    – Pippip19
    26 mins ago











  • I did it, and it was too much complicated for what I need, I need just a code for drawing a simple hyperbolic triangle...

    – Rubén Fernández Fuertes
    25 mins ago






  • 2





    @RubénFernándezFuertes We need to know what your simple hyperbolic triangle looks like. Please make your question in some formats like this: I want to draw this <picture> Here is what I have tried <code>.

    – JouleV
    23 mins ago











  • In the simplest possible case, you only have to draw three curves joining three points.

    – JouleV
    23 mins ago

















A hyperbolic triangle. The first I tried was to use the most simple thing using draw (point) arc (angle). However, I could not control the lines so I searched here: tex.stackexchange.com/questions/16617/… I tried everything they put, but their solutions were about drawing hyperbolic lines on the disk, and when I tried to remove the disk the code began to do strange things.

– Rubén Fernández Fuertes
27 mins ago





A hyperbolic triangle. The first I tried was to use the most simple thing using draw (point) arc (angle). However, I could not control the lines so I searched here: tex.stackexchange.com/questions/16617/… I tried everything they put, but their solutions were about drawing hyperbolic lines on the disk, and when I tried to remove the disk the code began to do strange things.

– Rubén Fernández Fuertes
27 mins ago




2




2





Check out tex.stackexchange.com/q/446325/172926

– Pippip19
26 mins ago





Check out tex.stackexchange.com/q/446325/172926

– Pippip19
26 mins ago













I did it, and it was too much complicated for what I need, I need just a code for drawing a simple hyperbolic triangle...

– Rubén Fernández Fuertes
25 mins ago





I did it, and it was too much complicated for what I need, I need just a code for drawing a simple hyperbolic triangle...

– Rubén Fernández Fuertes
25 mins ago




2




2





@RubénFernándezFuertes We need to know what your simple hyperbolic triangle looks like. Please make your question in some formats like this: I want to draw this <picture> Here is what I have tried <code>.

– JouleV
23 mins ago





@RubénFernándezFuertes We need to know what your simple hyperbolic triangle looks like. Please make your question in some formats like this: I want to draw this <picture> Here is what I have tried <code>.

– JouleV
23 mins ago













In the simplest possible case, you only have to draw three curves joining three points.

– JouleV
23 mins ago





In the simplest possible case, you only have to draw three curves joining three points.

– JouleV
23 mins ago










1 Answer
1






active

oldest

votes


















0














Something like this?



documentclass[tikz,border=3.14mm]{standalone}
begin{document}
begin{tikzpicture}[font=sffamily]
path (0,0) coordinate (A) (4,1) coordinate (B) (2,-2) coordinate (C);
draw[thick,path picture={
foreach X in {A,B,C}
{draw (X) circle (1);}}] (A) node[left]{$O$} to[bend right=12]
(B) node[above right]{$g_2^{-1}cdot O$} to[bend right=15]
(C) node[below]{$g_1^{-1}cdot O$} to[bend right=20] cycle;
end{tikzpicture}
end{document}


enter image description here





share


























  • I have a small request: How can I add the angles?

    – JouleV
    7 mins ago











  • @JouleV Added. (With path picture it is very easy.)

    – marmot
    3 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
});


}
});






Rubén Fernández Fuertes 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%2f475524%2fhow-to-draw-a-hyperbolic-triangle%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









0














Something like this?



documentclass[tikz,border=3.14mm]{standalone}
begin{document}
begin{tikzpicture}[font=sffamily]
path (0,0) coordinate (A) (4,1) coordinate (B) (2,-2) coordinate (C);
draw[thick,path picture={
foreach X in {A,B,C}
{draw (X) circle (1);}}] (A) node[left]{$O$} to[bend right=12]
(B) node[above right]{$g_2^{-1}cdot O$} to[bend right=15]
(C) node[below]{$g_1^{-1}cdot O$} to[bend right=20] cycle;
end{tikzpicture}
end{document}


enter image description here





share


























  • I have a small request: How can I add the angles?

    – JouleV
    7 mins ago











  • @JouleV Added. (With path picture it is very easy.)

    – marmot
    3 mins ago
















0














Something like this?



documentclass[tikz,border=3.14mm]{standalone}
begin{document}
begin{tikzpicture}[font=sffamily]
path (0,0) coordinate (A) (4,1) coordinate (B) (2,-2) coordinate (C);
draw[thick,path picture={
foreach X in {A,B,C}
{draw (X) circle (1);}}] (A) node[left]{$O$} to[bend right=12]
(B) node[above right]{$g_2^{-1}cdot O$} to[bend right=15]
(C) node[below]{$g_1^{-1}cdot O$} to[bend right=20] cycle;
end{tikzpicture}
end{document}


enter image description here





share


























  • I have a small request: How can I add the angles?

    – JouleV
    7 mins ago











  • @JouleV Added. (With path picture it is very easy.)

    – marmot
    3 mins ago














0












0








0







Something like this?



documentclass[tikz,border=3.14mm]{standalone}
begin{document}
begin{tikzpicture}[font=sffamily]
path (0,0) coordinate (A) (4,1) coordinate (B) (2,-2) coordinate (C);
draw[thick,path picture={
foreach X in {A,B,C}
{draw (X) circle (1);}}] (A) node[left]{$O$} to[bend right=12]
(B) node[above right]{$g_2^{-1}cdot O$} to[bend right=15]
(C) node[below]{$g_1^{-1}cdot O$} to[bend right=20] cycle;
end{tikzpicture}
end{document}


enter image description here





share















Something like this?



documentclass[tikz,border=3.14mm]{standalone}
begin{document}
begin{tikzpicture}[font=sffamily]
path (0,0) coordinate (A) (4,1) coordinate (B) (2,-2) coordinate (C);
draw[thick,path picture={
foreach X in {A,B,C}
{draw (X) circle (1);}}] (A) node[left]{$O$} to[bend right=12]
(B) node[above right]{$g_2^{-1}cdot O$} to[bend right=15]
(C) node[below]{$g_1^{-1}cdot O$} to[bend right=20] cycle;
end{tikzpicture}
end{document}


enter image description here






share













share


share








edited 4 mins ago

























answered 9 mins ago









marmotmarmot

101k4116224




101k4116224













  • I have a small request: How can I add the angles?

    – JouleV
    7 mins ago











  • @JouleV Added. (With path picture it is very easy.)

    – marmot
    3 mins ago



















  • I have a small request: How can I add the angles?

    – JouleV
    7 mins ago











  • @JouleV Added. (With path picture it is very easy.)

    – marmot
    3 mins ago

















I have a small request: How can I add the angles?

– JouleV
7 mins ago





I have a small request: How can I add the angles?

– JouleV
7 mins ago













@JouleV Added. (With path picture it is very easy.)

– marmot
3 mins ago





@JouleV Added. (With path picture it is very easy.)

– marmot
3 mins ago










Rubén Fernández Fuertes is a new contributor. Be nice, and check out our Code of Conduct.










draft saved

draft discarded


















Rubén Fernández Fuertes is a new contributor. Be nice, and check out our Code of Conduct.













Rubén Fernández Fuertes is a new contributor. Be nice, and check out our Code of Conduct.












Rubén Fernández Fuertes 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%2f475524%2fhow-to-draw-a-hyperbolic-triangle%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

Accessing regular linux commands in Huawei's Dopra Linux

Can't connect RFCOMM socket: Host is down

Kernel panic - not syncing: Fatal Exception in Interrupt