Hi Kim,
What about the following example code?, could this help?:
pro axis_diff_data_ex
f1=findgen(100)
f2=sin(findgen(100))
data2=f2
nop=plot(data2, /nodata, axis_style=0)
p2=plot(f2, axis_style=0, /current, color='red')
p1=plot(f1, axis_style=1, /current)
a=axis('Y', location=[f1[-1]+1,0], tickdir=0,textpos=1, target=nop)
end
Note that the statement for the second plot (p2) is called before the first plot (p1).
Also, note the usage of the keyword "target" to the axis function.
Cheers,
Fernando
|