PGFPlots の交差セグメントの曲線とエンドポイントが間違っています

PGFPlots の交差セグメントの曲線とエンドポイントが間違っています

答えようとするときTikz で曲線の一部を削除するにはどうすればいいですか?intersection segments、 PGFPlotsで問題が発生しましたfillbetween。曲線をto[out=280,in=175]制御点に変更したり、他のいくつかのことを試してみましたが、常に同じ結果になります。

  • 赤いL1が正しいようです。
  • 緑の L2 は曲線に沿っていますが、終点が間違っています。
  • 青い L3 はエンドポイントは正しいですが、曲線に沿っていません。

何が間違っているのでしょうか?

\documentclass[tikz, border=1cm]{standalone}
\usepackage{pgfplots}
\pgfplotsset{compat=newest}
\usepgfplotslibrary{fillbetween}
\begin{document}
\begin{tikzpicture}
\draw[name path=curve] (0.3,5) to[out=280,in=175, looseness=0.92] (5.5,0.5); %a curve
%\draw[name path=curve] (0.3,5) .. controls (1,1) and (2,0) .. (5.5,0.5); %alternative curve
\draw[name path=line] (0,4.1) -- (4.1,0);
\draw[red, ultra thick, opacity=0.5, smooth, intersection segments={of=curve and line, sequence={L1}}];
\pgfgetlastxy{\XCoord}{\YCoord}
\draw (\XCoord,\YCoord) circle (1pt);
\draw[green, ultra thick, opacity=0.5, smooth, intersection segments={of=curve and line, sequence={L2}}];
\pgfgetlastxy{\XCoord}{\YCoord}
\draw (\XCoord,\YCoord) circle (1pt);
\draw[blue, ultra thick, opacity=0.5, smooth, intersection segments={of=curve and line, sequence={L3}}];
\pgfgetlastxy{\XCoord}{\YCoord}
\draw (\XCoord,\YCoord) circle (1pt);
\end{tikzpicture}  
\end{document} 

交差セグメントを持つ曲線と線

関連情報