Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
是否可以根据一个方向的缩放坐标指定位置,并使用绘图上另一个方向的数据点的普通坐标?换句话说,我想指定一个位置,其中 x 坐标是普通坐标,如果绘图范围发生变化,将改变绘图中的位置,但 y 坐标是缩放坐标,并且相对于阴谋。
来的有点晚,但这是你要找的吗?
data = {{1, 0.5}, {2, 0.7}, {3, 0.4}, {4, 0.2}}; Graphics[ Line[data /. {x_, y_} :> Scaled[{0, y}, {x, 0}]], Axes -> True, PlotRange -> {Automatic, {0, 100}}, AspectRatio -> Full ]