
CSV ファイルのデータを使用して PGF/TikZ でグラフをプロットしたいです。以下は CSV ファイルへのリンクです。 https://www.dropbox.com/scl/fi/3be8309dhs4yspji25zrl/plot3_detailed_ground_shear_pressure.csv?rlkey=npbbqk3t0tfx8frvk5er5ea50&dl=0
以下の TikZ/PGFPlots コードを使用してプロットを作成しようとしましたが、いくつか問題が発生しています。3 番目のプロット「詳細な地盤せん断圧力」のコード例を以下に示します。
\begin{polaraxis}[
title={Detailed Ground Shear Pressure},
legend pos=north west,
ymajorgrids=true,
grid style=dashed,
]
\pgfplotstableread[col sep=comma]{plot3_transformed_detailed_ground_shear_pressure.csv}\datatable
\addplot+[no markers] table[x=data_phi_deg, y=Gs] from \datatable;
\addlegendentry{Transformed Gs}
\addplot+[no markers, fill=red, fill opacity=0.3] table[x=data_phi_deg, y expr=\thisrow{Gs}*\thisrow{exceed_mask}] from \datatable;
\addlegendentry{Critical Regions where Gs > Gp}
\addplot+[no markers, fill=orange, fill opacity=0.3] table[x=data_phi_deg, y expr=\thisrow{Gs}*\thisrow{below_mask}] from \datatable;
\addlegendentry{Critical Regions where Gs < -Gp}
\end{polaraxis}
\end{tikzpicture}
提供された CSV ファイルのデータを使用して、PGF/TikZ でこれらのグラフを正しくプロットする方法について、ガイダンスや提案を提供していただけませんか? すでにこれらのプロットを Python で生成していることを考えると、PGF/TikZ でこれを追求するのが合理的かどうか、または Python に固執する方がよいかどうかについてアドバイスを求めています。ただし、記事の一貫性を保つために、他のプロットのスタイルに合わせて PGF/TikZ を使用することをお勧めします。ご意見や推奨事項があれば、ぜひお知らせください。