I am trying to create a dotted path something like this:
\draw [dotted] (bottom) -- (top);
I would like to add fading to the path such that at the bottom its solid and at the top its 30% or 40% transparent. Other lines that intersect with my dotted line should not be transparent.
I tried this:
\draw [dotted, fading=fade north] (bottom) -- (top);
But that did not work, I have also tried this answer: Fading of horizontal lines is impossible? but I have two issues with that:
The solution is not working for me, even if I start a new document and literally copy the solution over. I always see solid lines.This was an issue with my pdf viewer.
I am not quite understand the concept behind that solution, what are the
axisneeded for and what is
Update: While the solution in my answer below works in two cases, in two other cases I get a Latex error which says: 'Dimension too large'. All I have done was shifting the point to the right by a few centimeters.