Quantcast
Channel: Dash pattern for TikZ line, adaptive to line length - TeX - LaTeX Stack Exchange
Viewing all articles
Browse latest Browse all 2

Dash pattern for TikZ line, adaptive to line length

$
0
0

I'm drawing a bended line with TikZ, say using

\draw (0,0) to[out=-45, in=-135] (0,5);

Is there a way to define a dash pattern such that the first third of this arc is fully present, the second third is dashed and the last third is invisible? In other words, can the dash pattern somehow depend on the length of the line?

For straight lines, I can imagine a workaround by just splitting the line into three parts, but this is (at least for me) not really possible in this case.


Viewing all articles
Browse latest Browse all 2

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>