Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

Required fields*

8
  • I've just had an insane idea... Well, let's hope it's not insane. :D I was wondering, for the Matrix solution, what if you set the text width in the matrix (not the nodes inside) to be as much points as they are for the actual lifespan? For example, from 1660 to 1731 they are 71 years. Can I set Tikz to use a new length so that 1 point equals one year in my graph, so that if I write text width=71length it spans for "71 years"? If this would be easily implemented then I'd use your matrix-related solution. :) Commented Mar 31, 2013 at 13:26
  • Perhaps one way is to use \pgfmathsetmacro{\lifelength}{71} \pgfmathsetmacro{\lifespan}{\lifelength/6.4*10} then use text width=\lifespan in the node option. Commented Apr 1, 2013 at 4:53
  • Sorry if I'm pestering you but I've been trying all morning for this but... How do you fix that macro to be applicable per case? I've meant to use "#1"... The problem is that I don't know how to calculate the length of "one year" or even one unit length so that I can tell Latex "stretch this by X points" or whatever. Commented Apr 1, 2013 at 11:24
  • @Alenanno It's okay. But I am afraid I can't provide a better solution. See my edit. Commented Apr 2, 2013 at 9:35
  • 1
    BTW, snakes library is now deprecated by decorations library for version 2.10. :) Commented Apr 2, 2013 at 9:41