最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

tikz - Problems Creating Trunkated Ternary Phase Diagram LaTeX - Stack Overflow

programmeradmin3浏览0评论

I am trying to create a ternary phase diagram using the tikz package with the lower portion truncated, such that x ranges from 75-100, y ranges from 0-25, and z ranges 0-25. When I do this using the xmin, ymax, and zmax options, the points plot to the correct position within the diagram, however the axis labels still all range from 0-100. Is there any way to resolve this?

Here is an example:

\documentclass{article}
\usepackage{inputenc}
\usepackage{authblk}
\usepackage{caption}
\usepackage{subcaption}
\usepackage{float}
\usepackage{pgfplots}
\usepackage{tikz}

\usepgfplotslibrary{ternary} % LaTeX and plain TeX
\usepgfplotslibrary[ternary] % ConTeXt
\usetikzlibrary{pgfplots.ternary} % LaTeX and plain TeX
\usetikzlibrary[pgfplots.ternary] % ConTeXt

\title{}
\author{}
\date{}

\begin{document}
\maketitle



\begin{tikzpicture}
    \begin{ternaryaxis}[xlabel=A, ylabel=B, zlabel=C, xmin=0.75, ymax=0.25, zmax=0.25]
        \addplot3 coordinates {
            (0.87, 0.03, 0.1)
            (0.85, 0.05, 0.1)
            (0.83, 0.07, 0.1)
            (0.81, 0.09, 0.1)
        };
 
    \end{ternaryaxis}
\end{tikzpicture}


\end{document}

Thanks

发布评论

评论列表(0)

  1. 暂无评论