I wanted to plots 2 data on the same figure with their respective legends one on left, bottom while for the other on top and right. For example,
using Plots,
plot([.4,.3],[.8,.3])
plot!([5,3],[4,8])
this is the output,
instead I want something like,
It’s called twin axis.
f = Figure();
# Initializing axis
ax1 = Axis(f[1, 1], xticklabelcolor= :blue, yticklabelcolor = :blue)
ax2 = Axis(f[1, 1], xticklabelcolor = :red, yticklabelcolor= :red, xaxisposition = :top, yaxisposition = :right)
# plot for each axis
lines!(ax1, [4,3],[5,3], color = :blue)
lines!(ax2, [.5,.3],[.25,.9], color = :red)
f