Timeline problem with latex












0















My objective is to create a timeline with 5 different date (13.10.13, 01.05.14, 31.05.14, 05.06.14 and 10.06.14) with:
- a brace called "Estimation WIndow 200 days from 13.10.13 to 01.05.14
- a brace called "Event Window +/-5 days from 31.05.14 to 10.06.14
- a point on the 05.06.14 called "Event day"
the packages that I have uploades are:



usepackage{tikz}
usetikzlibrary{decorations.pathreplacing,positioning, arrows.meta}


The code that I wroted is the following:



begin{tikzpicture}
% draw horizontal line
draw[thick, -Triangle] (0,0) -- (ImageWidth,0) node[font=scriptsize,below left=3pt and -8pt]{years};

% draw vertical lines
foreach x in {0,1,2,3,4,5,6,7}
draw (x cm,3pt) -- (x cm,-3pt);

foreach x/descr in {4/t-2,5/t-1,6/t,7/t+1}
node[font=scriptsize, text height=1.75ex,
text depth=.5ex] at (x,-.3) {$descr$};

% draw node
draw[ultra thick] (2,0) node[below=3pt,thick] {13.10.2013} node[above=3pt] {};
draw[ultra thick] (3,0) node[below=3pt,thick] {01.05.2014} node[above=3pt] {};
draw[ultra thick] (4,0) node[below=3pt,thick] {31.04.2014} node[above=3pt] {};
draw[ultra thick] (5,0) node[below=3pt,thick] {05.06.2014} node[above=3pt] {};
draw[ultra thick] (6,0) node[below=3pt, thick] {10.06.2014} node[above=3pt] {};



draw [thick ,decorate,decoration={brace,amplitude=5pt}] (2,0.7) -- +(3,0)
node [black,midway,above=4pt, font=scriptsize] {Estimation Window 200 days};

draw [thick ,decorate,decoration={brace,amplitude=5pt}] (4,0.7) -- +(6,0)
node [black,midway,above=4pt, font=scriptsize] {Event Window +/-5 days};

end{tikzpicture}


The result that I obtain is:
enter image description here



What is the problem? Can someone help me?










share|improve this question







New contributor




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
















  • 2





    How is ImageWidth defined?

    – JouleV
    6 hours ago
















0















My objective is to create a timeline with 5 different date (13.10.13, 01.05.14, 31.05.14, 05.06.14 and 10.06.14) with:
- a brace called "Estimation WIndow 200 days from 13.10.13 to 01.05.14
- a brace called "Event Window +/-5 days from 31.05.14 to 10.06.14
- a point on the 05.06.14 called "Event day"
the packages that I have uploades are:



usepackage{tikz}
usetikzlibrary{decorations.pathreplacing,positioning, arrows.meta}


The code that I wroted is the following:



begin{tikzpicture}
% draw horizontal line
draw[thick, -Triangle] (0,0) -- (ImageWidth,0) node[font=scriptsize,below left=3pt and -8pt]{years};

% draw vertical lines
foreach x in {0,1,2,3,4,5,6,7}
draw (x cm,3pt) -- (x cm,-3pt);

foreach x/descr in {4/t-2,5/t-1,6/t,7/t+1}
node[font=scriptsize, text height=1.75ex,
text depth=.5ex] at (x,-.3) {$descr$};

% draw node
draw[ultra thick] (2,0) node[below=3pt,thick] {13.10.2013} node[above=3pt] {};
draw[ultra thick] (3,0) node[below=3pt,thick] {01.05.2014} node[above=3pt] {};
draw[ultra thick] (4,0) node[below=3pt,thick] {31.04.2014} node[above=3pt] {};
draw[ultra thick] (5,0) node[below=3pt,thick] {05.06.2014} node[above=3pt] {};
draw[ultra thick] (6,0) node[below=3pt, thick] {10.06.2014} node[above=3pt] {};



draw [thick ,decorate,decoration={brace,amplitude=5pt}] (2,0.7) -- +(3,0)
node [black,midway,above=4pt, font=scriptsize] {Estimation Window 200 days};

draw [thick ,decorate,decoration={brace,amplitude=5pt}] (4,0.7) -- +(6,0)
node [black,midway,above=4pt, font=scriptsize] {Event Window +/-5 days};

end{tikzpicture}


The result that I obtain is:
enter image description here



What is the problem? Can someone help me?










share|improve this question







New contributor




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
















  • 2





    How is ImageWidth defined?

    – JouleV
    6 hours ago














0












0








0








My objective is to create a timeline with 5 different date (13.10.13, 01.05.14, 31.05.14, 05.06.14 and 10.06.14) with:
- a brace called "Estimation WIndow 200 days from 13.10.13 to 01.05.14
- a brace called "Event Window +/-5 days from 31.05.14 to 10.06.14
- a point on the 05.06.14 called "Event day"
the packages that I have uploades are:



usepackage{tikz}
usetikzlibrary{decorations.pathreplacing,positioning, arrows.meta}


The code that I wroted is the following:



begin{tikzpicture}
% draw horizontal line
draw[thick, -Triangle] (0,0) -- (ImageWidth,0) node[font=scriptsize,below left=3pt and -8pt]{years};

% draw vertical lines
foreach x in {0,1,2,3,4,5,6,7}
draw (x cm,3pt) -- (x cm,-3pt);

foreach x/descr in {4/t-2,5/t-1,6/t,7/t+1}
node[font=scriptsize, text height=1.75ex,
text depth=.5ex] at (x,-.3) {$descr$};

% draw node
draw[ultra thick] (2,0) node[below=3pt,thick] {13.10.2013} node[above=3pt] {};
draw[ultra thick] (3,0) node[below=3pt,thick] {01.05.2014} node[above=3pt] {};
draw[ultra thick] (4,0) node[below=3pt,thick] {31.04.2014} node[above=3pt] {};
draw[ultra thick] (5,0) node[below=3pt,thick] {05.06.2014} node[above=3pt] {};
draw[ultra thick] (6,0) node[below=3pt, thick] {10.06.2014} node[above=3pt] {};



draw [thick ,decorate,decoration={brace,amplitude=5pt}] (2,0.7) -- +(3,0)
node [black,midway,above=4pt, font=scriptsize] {Estimation Window 200 days};

draw [thick ,decorate,decoration={brace,amplitude=5pt}] (4,0.7) -- +(6,0)
node [black,midway,above=4pt, font=scriptsize] {Event Window +/-5 days};

end{tikzpicture}


The result that I obtain is:
enter image description here



What is the problem? Can someone help me?










share|improve this question







New contributor




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












My objective is to create a timeline with 5 different date (13.10.13, 01.05.14, 31.05.14, 05.06.14 and 10.06.14) with:
- a brace called "Estimation WIndow 200 days from 13.10.13 to 01.05.14
- a brace called "Event Window +/-5 days from 31.05.14 to 10.06.14
- a point on the 05.06.14 called "Event day"
the packages that I have uploades are:



usepackage{tikz}
usetikzlibrary{decorations.pathreplacing,positioning, arrows.meta}


The code that I wroted is the following:



begin{tikzpicture}
% draw horizontal line
draw[thick, -Triangle] (0,0) -- (ImageWidth,0) node[font=scriptsize,below left=3pt and -8pt]{years};

% draw vertical lines
foreach x in {0,1,2,3,4,5,6,7}
draw (x cm,3pt) -- (x cm,-3pt);

foreach x/descr in {4/t-2,5/t-1,6/t,7/t+1}
node[font=scriptsize, text height=1.75ex,
text depth=.5ex] at (x,-.3) {$descr$};

% draw node
draw[ultra thick] (2,0) node[below=3pt,thick] {13.10.2013} node[above=3pt] {};
draw[ultra thick] (3,0) node[below=3pt,thick] {01.05.2014} node[above=3pt] {};
draw[ultra thick] (4,0) node[below=3pt,thick] {31.04.2014} node[above=3pt] {};
draw[ultra thick] (5,0) node[below=3pt,thick] {05.06.2014} node[above=3pt] {};
draw[ultra thick] (6,0) node[below=3pt, thick] {10.06.2014} node[above=3pt] {};



draw [thick ,decorate,decoration={brace,amplitude=5pt}] (2,0.7) -- +(3,0)
node [black,midway,above=4pt, font=scriptsize] {Estimation Window 200 days};

draw [thick ,decorate,decoration={brace,amplitude=5pt}] (4,0.7) -- +(6,0)
node [black,midway,above=4pt, font=scriptsize] {Event Window +/-5 days};

end{tikzpicture}


The result that I obtain is:
enter image description here



What is the problem? Can someone help me?







tikz-pgf graphics






share|improve this question







New contributor




user185351 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




user185351 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






New contributor




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









asked 6 hours ago









user185351user185351

31




31




New contributor




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





New contributor





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






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








  • 2





    How is ImageWidth defined?

    – JouleV
    6 hours ago














  • 2





    How is ImageWidth defined?

    – JouleV
    6 hours ago








2




2





How is ImageWidth defined?

– JouleV
6 hours ago





How is ImageWidth defined?

– JouleV
6 hours ago










1 Answer
1






active

oldest

votes


















1














Think it simple. This is my proposal for this case.



documentclass[tikz]{standalone}
usetikzlibrary{decorations.pathreplacing,positioning, arrows.meta}
begin{document}
begin{tikzpicture}[x=2cm,>=latex]
draw[thick,->] (0,0) -- (6,0) node[below,font=scriptsize] {Date};
draw (1,.1)--(1,-.1) node[below] {13.10.13};
draw (2,.1)--(2,-.1) node[below] {01.05.14};
draw (3,.1)--(3,-.1) node[below] {31.05.14};
draw (4,.1)--(4,-.1) node[below] (x) {05.06.14};
draw (5,.1)--(5,-.1) node[below] {10.06.14};
draw[<->] (1,.5)--(2,.5) node[midway,above,font=scriptsize] {Estimation Window 200 days};
draw[<->] (3,.5)--(5,.5) node[midway,above,font=scriptsize] {Event Window $pm5$ days};
draw[<-] (x.south) --++ (0,-1) node[below,font=scriptsize] {Event day};
end{tikzpicture}
end{document}


enter image description here






share|improve this answer
























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


    }
    });






    user185351 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%2f483813%2ftimeline-problem-with-latex%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














    Think it simple. This is my proposal for this case.



    documentclass[tikz]{standalone}
    usetikzlibrary{decorations.pathreplacing,positioning, arrows.meta}
    begin{document}
    begin{tikzpicture}[x=2cm,>=latex]
    draw[thick,->] (0,0) -- (6,0) node[below,font=scriptsize] {Date};
    draw (1,.1)--(1,-.1) node[below] {13.10.13};
    draw (2,.1)--(2,-.1) node[below] {01.05.14};
    draw (3,.1)--(3,-.1) node[below] {31.05.14};
    draw (4,.1)--(4,-.1) node[below] (x) {05.06.14};
    draw (5,.1)--(5,-.1) node[below] {10.06.14};
    draw[<->] (1,.5)--(2,.5) node[midway,above,font=scriptsize] {Estimation Window 200 days};
    draw[<->] (3,.5)--(5,.5) node[midway,above,font=scriptsize] {Event Window $pm5$ days};
    draw[<-] (x.south) --++ (0,-1) node[below,font=scriptsize] {Event day};
    end{tikzpicture}
    end{document}


    enter image description here






    share|improve this answer




























      1














      Think it simple. This is my proposal for this case.



      documentclass[tikz]{standalone}
      usetikzlibrary{decorations.pathreplacing,positioning, arrows.meta}
      begin{document}
      begin{tikzpicture}[x=2cm,>=latex]
      draw[thick,->] (0,0) -- (6,0) node[below,font=scriptsize] {Date};
      draw (1,.1)--(1,-.1) node[below] {13.10.13};
      draw (2,.1)--(2,-.1) node[below] {01.05.14};
      draw (3,.1)--(3,-.1) node[below] {31.05.14};
      draw (4,.1)--(4,-.1) node[below] (x) {05.06.14};
      draw (5,.1)--(5,-.1) node[below] {10.06.14};
      draw[<->] (1,.5)--(2,.5) node[midway,above,font=scriptsize] {Estimation Window 200 days};
      draw[<->] (3,.5)--(5,.5) node[midway,above,font=scriptsize] {Event Window $pm5$ days};
      draw[<-] (x.south) --++ (0,-1) node[below,font=scriptsize] {Event day};
      end{tikzpicture}
      end{document}


      enter image description here






      share|improve this answer


























        1












        1








        1







        Think it simple. This is my proposal for this case.



        documentclass[tikz]{standalone}
        usetikzlibrary{decorations.pathreplacing,positioning, arrows.meta}
        begin{document}
        begin{tikzpicture}[x=2cm,>=latex]
        draw[thick,->] (0,0) -- (6,0) node[below,font=scriptsize] {Date};
        draw (1,.1)--(1,-.1) node[below] {13.10.13};
        draw (2,.1)--(2,-.1) node[below] {01.05.14};
        draw (3,.1)--(3,-.1) node[below] {31.05.14};
        draw (4,.1)--(4,-.1) node[below] (x) {05.06.14};
        draw (5,.1)--(5,-.1) node[below] {10.06.14};
        draw[<->] (1,.5)--(2,.5) node[midway,above,font=scriptsize] {Estimation Window 200 days};
        draw[<->] (3,.5)--(5,.5) node[midway,above,font=scriptsize] {Event Window $pm5$ days};
        draw[<-] (x.south) --++ (0,-1) node[below,font=scriptsize] {Event day};
        end{tikzpicture}
        end{document}


        enter image description here






        share|improve this answer













        Think it simple. This is my proposal for this case.



        documentclass[tikz]{standalone}
        usetikzlibrary{decorations.pathreplacing,positioning, arrows.meta}
        begin{document}
        begin{tikzpicture}[x=2cm,>=latex]
        draw[thick,->] (0,0) -- (6,0) node[below,font=scriptsize] {Date};
        draw (1,.1)--(1,-.1) node[below] {13.10.13};
        draw (2,.1)--(2,-.1) node[below] {01.05.14};
        draw (3,.1)--(3,-.1) node[below] {31.05.14};
        draw (4,.1)--(4,-.1) node[below] (x) {05.06.14};
        draw (5,.1)--(5,-.1) node[below] {10.06.14};
        draw[<->] (1,.5)--(2,.5) node[midway,above,font=scriptsize] {Estimation Window 200 days};
        draw[<->] (3,.5)--(5,.5) node[midway,above,font=scriptsize] {Event Window $pm5$ days};
        draw[<-] (x.south) --++ (0,-1) node[below,font=scriptsize] {Event day};
        end{tikzpicture}
        end{document}


        enter image description here







        share|improve this answer












        share|improve this answer



        share|improve this answer










        answered 6 hours ago









        JouleVJouleV

        11.7k22561




        11.7k22561






















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










            draft saved

            draft discarded


















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













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












            user185351 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%2f483813%2ftimeline-problem-with-latex%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

            Lallio

            Futebolista

            Jornalista