Placing a symbol with Tikz












1















I would like to use the tree symbol from the tikzsymbols package. I am using the Summertree[3.38]; function in the Tikz environement (the 3.38 is the scale making the heigh of the tree equal to 1). But Tikz places the tree in a funny way and using Summertree[3.38];, the basis of the tree is in x=0.58 and in y=0...



I would like to creat a arbre command, so that my tree would have a heigh H, and its basis is at (x0,y0). Hence, in the preamble I wrote :



newcommand{arbre}[4] %x0 y0 H alpha
{
begin{scope}[rotate=#4,xshift=#1-0.587*#3,yshift=#2]
Summertree[3.38*#3];
end{scope}
}


In the Tikz environement I write arbre{0}{0}{1}{0}; wich gives exactly the smae output as Summertree[3.38];, ignoring the shifts I requested. He the result of my plot (the bullet is at (0,0) where I want my tree to be planted.. I mean plotted).



My tree still a position x0 = 0.58










share|improve this question





























    1















    I would like to use the tree symbol from the tikzsymbols package. I am using the Summertree[3.38]; function in the Tikz environement (the 3.38 is the scale making the heigh of the tree equal to 1). But Tikz places the tree in a funny way and using Summertree[3.38];, the basis of the tree is in x=0.58 and in y=0...



    I would like to creat a arbre command, so that my tree would have a heigh H, and its basis is at (x0,y0). Hence, in the preamble I wrote :



    newcommand{arbre}[4] %x0 y0 H alpha
    {
    begin{scope}[rotate=#4,xshift=#1-0.587*#3,yshift=#2]
    Summertree[3.38*#3];
    end{scope}
    }


    In the Tikz environement I write arbre{0}{0}{1}{0}; wich gives exactly the smae output as Summertree[3.38];, ignoring the shifts I requested. He the result of my plot (the bullet is at (0,0) where I want my tree to be planted.. I mean plotted).



    My tree still a position x0 = 0.58










    share|improve this question



























      1












      1








      1








      I would like to use the tree symbol from the tikzsymbols package. I am using the Summertree[3.38]; function in the Tikz environement (the 3.38 is the scale making the heigh of the tree equal to 1). But Tikz places the tree in a funny way and using Summertree[3.38];, the basis of the tree is in x=0.58 and in y=0...



      I would like to creat a arbre command, so that my tree would have a heigh H, and its basis is at (x0,y0). Hence, in the preamble I wrote :



      newcommand{arbre}[4] %x0 y0 H alpha
      {
      begin{scope}[rotate=#4,xshift=#1-0.587*#3,yshift=#2]
      Summertree[3.38*#3];
      end{scope}
      }


      In the Tikz environement I write arbre{0}{0}{1}{0}; wich gives exactly the smae output as Summertree[3.38];, ignoring the shifts I requested. He the result of my plot (the bullet is at (0,0) where I want my tree to be planted.. I mean plotted).



      My tree still a position x0 = 0.58










      share|improve this question
















      I would like to use the tree symbol from the tikzsymbols package. I am using the Summertree[3.38]; function in the Tikz environement (the 3.38 is the scale making the heigh of the tree equal to 1). But Tikz places the tree in a funny way and using Summertree[3.38];, the basis of the tree is in x=0.58 and in y=0...



      I would like to creat a arbre command, so that my tree would have a heigh H, and its basis is at (x0,y0). Hence, in the preamble I wrote :



      newcommand{arbre}[4] %x0 y0 H alpha
      {
      begin{scope}[rotate=#4,xshift=#1-0.587*#3,yshift=#2]
      Summertree[3.38*#3];
      end{scope}
      }


      In the Tikz environement I write arbre{0}{0}{1}{0}; wich gives exactly the smae output as Summertree[3.38];, ignoring the shifts I requested. He the result of my plot (the bullet is at (0,0) where I want my tree to be planted.. I mean plotted).



      My tree still a position x0 = 0.58







      tikz-pgf tikz-trees






      share|improve this question















      share|improve this question













      share|improve this question




      share|improve this question








      edited 11 hours ago









      JouleV

      10.3k22558




      10.3k22558










      asked 11 hours ago









      JohnJohn

      453




      453






















          1 Answer
          1






          active

          oldest

          votes


















          2














          Summertree actually output something like a character, so to use it properly in TikZ, you should use node.



          documentclass{standalone}
          usepackage{tikz}
          usepackage{tikzsymbols}
          begin{document}
          begin{tikzpicture}
          draw[gray,help lines] (-2,-2) grid (2,2);
          path (0,0) node[above,inner sep=0pt] {Summertree[3.38]};
          end{tikzpicture}
          end{document}


          enter image description here



          Starting from this, we can easily have your command arbre as follows



          documentclass{standalone}
          usepackage{tikz}
          usepackage{tikzsymbols}
          newcommandarbre[4]{%
          path (#1,#2) node[rotate=#4,inner sep=0pt,above] {Summertree[3.38*#3]};}
          begin{document}
          begin{tikzpicture}
          draw[gray,help lines] (-2,-2) grid (2,2);
          %path (0,0) node[above,inner sep=0pt] {Summertree[3.38]};
          arbre{1}{-1}{1}{20}
          end{tikzpicture}
          end{document}


          enter image description here






          share|improve this answer
























          • Thank you very much for your help. I search for the tree documentation but I couldn't find an example of use, so I just put I like that... But another question, why are you using path ?

            – John
            6 hours 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
          });


          }
          });














          draft saved

          draft discarded


















          StackExchange.ready(
          function () {
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2ftex.stackexchange.com%2fquestions%2f483013%2fplacing-a-symbol-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














          Summertree actually output something like a character, so to use it properly in TikZ, you should use node.



          documentclass{standalone}
          usepackage{tikz}
          usepackage{tikzsymbols}
          begin{document}
          begin{tikzpicture}
          draw[gray,help lines] (-2,-2) grid (2,2);
          path (0,0) node[above,inner sep=0pt] {Summertree[3.38]};
          end{tikzpicture}
          end{document}


          enter image description here



          Starting from this, we can easily have your command arbre as follows



          documentclass{standalone}
          usepackage{tikz}
          usepackage{tikzsymbols}
          newcommandarbre[4]{%
          path (#1,#2) node[rotate=#4,inner sep=0pt,above] {Summertree[3.38*#3]};}
          begin{document}
          begin{tikzpicture}
          draw[gray,help lines] (-2,-2) grid (2,2);
          %path (0,0) node[above,inner sep=0pt] {Summertree[3.38]};
          arbre{1}{-1}{1}{20}
          end{tikzpicture}
          end{document}


          enter image description here






          share|improve this answer
























          • Thank you very much for your help. I search for the tree documentation but I couldn't find an example of use, so I just put I like that... But another question, why are you using path ?

            – John
            6 hours ago


















          2














          Summertree actually output something like a character, so to use it properly in TikZ, you should use node.



          documentclass{standalone}
          usepackage{tikz}
          usepackage{tikzsymbols}
          begin{document}
          begin{tikzpicture}
          draw[gray,help lines] (-2,-2) grid (2,2);
          path (0,0) node[above,inner sep=0pt] {Summertree[3.38]};
          end{tikzpicture}
          end{document}


          enter image description here



          Starting from this, we can easily have your command arbre as follows



          documentclass{standalone}
          usepackage{tikz}
          usepackage{tikzsymbols}
          newcommandarbre[4]{%
          path (#1,#2) node[rotate=#4,inner sep=0pt,above] {Summertree[3.38*#3]};}
          begin{document}
          begin{tikzpicture}
          draw[gray,help lines] (-2,-2) grid (2,2);
          %path (0,0) node[above,inner sep=0pt] {Summertree[3.38]};
          arbre{1}{-1}{1}{20}
          end{tikzpicture}
          end{document}


          enter image description here






          share|improve this answer
























          • Thank you very much for your help. I search for the tree documentation but I couldn't find an example of use, so I just put I like that... But another question, why are you using path ?

            – John
            6 hours ago
















          2












          2








          2







          Summertree actually output something like a character, so to use it properly in TikZ, you should use node.



          documentclass{standalone}
          usepackage{tikz}
          usepackage{tikzsymbols}
          begin{document}
          begin{tikzpicture}
          draw[gray,help lines] (-2,-2) grid (2,2);
          path (0,0) node[above,inner sep=0pt] {Summertree[3.38]};
          end{tikzpicture}
          end{document}


          enter image description here



          Starting from this, we can easily have your command arbre as follows



          documentclass{standalone}
          usepackage{tikz}
          usepackage{tikzsymbols}
          newcommandarbre[4]{%
          path (#1,#2) node[rotate=#4,inner sep=0pt,above] {Summertree[3.38*#3]};}
          begin{document}
          begin{tikzpicture}
          draw[gray,help lines] (-2,-2) grid (2,2);
          %path (0,0) node[above,inner sep=0pt] {Summertree[3.38]};
          arbre{1}{-1}{1}{20}
          end{tikzpicture}
          end{document}


          enter image description here






          share|improve this answer













          Summertree actually output something like a character, so to use it properly in TikZ, you should use node.



          documentclass{standalone}
          usepackage{tikz}
          usepackage{tikzsymbols}
          begin{document}
          begin{tikzpicture}
          draw[gray,help lines] (-2,-2) grid (2,2);
          path (0,0) node[above,inner sep=0pt] {Summertree[3.38]};
          end{tikzpicture}
          end{document}


          enter image description here



          Starting from this, we can easily have your command arbre as follows



          documentclass{standalone}
          usepackage{tikz}
          usepackage{tikzsymbols}
          newcommandarbre[4]{%
          path (#1,#2) node[rotate=#4,inner sep=0pt,above] {Summertree[3.38*#3]};}
          begin{document}
          begin{tikzpicture}
          draw[gray,help lines] (-2,-2) grid (2,2);
          %path (0,0) node[above,inner sep=0pt] {Summertree[3.38]};
          arbre{1}{-1}{1}{20}
          end{tikzpicture}
          end{document}


          enter image description here







          share|improve this answer












          share|improve this answer



          share|improve this answer










          answered 10 hours ago









          JouleVJouleV

          10.3k22558




          10.3k22558













          • Thank you very much for your help. I search for the tree documentation but I couldn't find an example of use, so I just put I like that... But another question, why are you using path ?

            – John
            6 hours ago





















          • Thank you very much for your help. I search for the tree documentation but I couldn't find an example of use, so I just put I like that... But another question, why are you using path ?

            – John
            6 hours ago



















          Thank you very much for your help. I search for the tree documentation but I couldn't find an example of use, so I just put I like that... But another question, why are you using path ?

          – John
          6 hours ago







          Thank you very much for your help. I search for the tree documentation but I couldn't find an example of use, so I just put I like that... But another question, why are you using path ?

          – John
          6 hours ago




















          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%2f483013%2fplacing-a-symbol-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

          A CLEAN and SIMPLE way to add appendices to Table of Contents and bookmarks

          Calculate evaluation metrics using cross_val_predict sklearn

          Insert data from modal to MySQL (multiple modal on website)