I have coloured some paths in a radial drawing of a network graph with a colour gradient. A picture of my document compiled in January 2020 shows what it should look like:
To achieve this effect I have used How do I use spath3 package to shading a path?. The original question can be found here: Tikz: Shading a path without any filling
In the last months I have not compiled this document but made the mistake to update my LaTeX installation. Now when I compile it, I get (in debug mode showing node ids and edge ids instead of labels):
As you can see edge e007 has the same shape as e002 but this should not be the case. From my understanding the first path with style fade no fill is copied to all other paths.
I do not want to share my full document but I think following MWE using fade-no-fill.sty illustrates it as well:
\documentclass[tikz,border=5mm]{standalone}
\usepackage{fade-no-fill}
% rputover {{{1
% –––––––––––––––––
% https://tex.stackexchange.com/a/457885/8917
\makeatletter
\tikzset{
use path/.code={\pgfsyssoftpath@setcurrentpath{#1}}
}
\makeatother
\tikzset{remember path/.style={save path=\tmprotect}}
\tikzset{reverseclip/.style={insert path={(current bounding box.north
east) rectangle (current bounding box.south west)}}%
}
\begin{document}
\begin{tikzpicture}
% PATH 1
\draw (0cm,-2cm) -- (1cm,0cm);
% PATH 2
\begin{scope}
\node[remember path,font=\Large\sf] at (0.5cm,-1cm) {label};
\clip[use path=\tmprotect,reverseclip];
% PATH 2
\path[
% draw=blue,
fade path but don't fill={ very thick, transparent!20, ->, }{top color=blue!80, bottom color=green!80,},
] (0cm,0cm) .. controls +(0cm,-1cm) and +(0cm,1cm) .. (1cm,-2cm);
% PATH 3
\end{scope}
\path[
% draw=red,
fade path but don't fill={ very thick, transparent!20, ->, }{ top color=blue!80, bottom color=green!80, },
] (1cm,1cm) -- (2cm,-1cm);
% PATH 4
\draw (-3cm,-2cm) -- (1cm,0cm);
\end{tikzpicture}
\end{document}
which gives the result without fade no fill:

Again the second path becomes surprisingly a bezier curve which actually is a straight line
Does someone know what package has changed and how to solve it? Package spath3 seems to be unchanged since the beginning of 2019. I guess something with pgf/tikz has changed.




tempfadefor all fadings but this no longer works. Some counter must be added to get unique names. – Ulrike Fischer Oct 15 '20 at 15:45fade-no-fill.stybased on your suggestion, if you do not mind. – Hotschke Oct 16 '20 at 06:09