데이터를 그릴 때 그래프의 연결 불연속성을 방지하는 방법은 무엇입니까?

데이터를 그릴 때 그래프의 연결 불연속성을 방지하는 방법은 무엇입니까?

한 지점에서 180도에서 -180도로 점프한다는 점에서 불연속성이 있는 그래프를 플롯하고 싶습니다. 불행히도 180과 -180의 지점이 연결됩니다. 아래 그림을 참조하세요.
(지금쯤이면 내가 위성 지상 궤도에 대한 평면도를 작성하려고 한다고 짐작하셨을 것입니다.)

MWE 플롯:
MWE에 따른 플롯

실제 데이터로 플롯:
여기에 이미지 설명을 입력하세요

내가 어떻게 할 수있는자동으로이 두 점을 연결하는 선을 피하시겠습니까?

MWE는 아래에 제공됩니다.

\documentclass{scrartcl}

\usepackage{mwe}
\usepackage{pgfplots}
    \pgfplotsset{compat=1.7}

\begin{document}
    \begin{tikzpicture}
        \begin{axis}[%
            ytick={-90,-45,...,90},
            xtick={-180,-135,...,180},
            axis equal,
            grid,
            enlargelimits=false,]
        \addplot+[mark=,] table  {
            % A few points read off from above by eye...
              87   0
             100  75
             135  80
             180  82
            -180  82
            -135  75
             -90  35
             -45 -75
               0 -82
              45 -75
              90 -35
             100   0
        };
    \end{axis}
    \end{tikzpicture}
\end{document}

답변1

경로를 끊으려면 빈 줄을 삽입하기만 하면 됩니다.

\documentclass{scrartcl}

\usepackage{mwe}
\usepackage{pgfplots}
    \pgfplotsset{compat=1.7}

\begin{document}
    \begin{tikzpicture}
        \begin{axis}[%
            ytick={-90,-45,...,90},
            xtick={-180,-135,...,180},
            axis equal,
            grid,
            enlargelimits=false,]
        \addplot+[mark=,] table  {
            % A few points read off from above by eye...
              87   0
             100  75
             135  80
             180  82

            -180  82
            -135  75
             -90  35
             -45 -75
               0 -82
              45 -75
              90 -35
             100   0
        };
    \end{axis}
    \end{tikzpicture}
\end{document}

삭제된 답변에서 Harish Kumar의 이미지 사용:

여기에 이미지 설명을 입력하세요

관련 정보