来源:http://forum.simwe.com/thread-985179-1-1.html
提问:
现在需要作出这样一张图,如附件
数据共用一个横轴,但纵轴不同。不能直接让某一组数据直接乘一个常数以画到一起。
麻烦大家看一下。本版有过关于双坐标轴的讨论,但好像跟这个情况都不太一样,故再此一问。
解答:
方法一:
Plot[{Sin[x], Cos[x]}, {x, -1, 1},
Frame -> {
{True, True}, {True, False}},
FrameTicks -> {
{Automatic, {
{-0.5, 5}, {0, 10}, {0.5,
15}}}, {Automatic, None}},
FrameLabel -> {
{"Left", "Right"}, {None, None}}]
方法二:
可以参考这个帖子: