Try this:
Code
using Measures, Plots; pyplot(dpi=600)
function tstplt6()
a = 1:3
b = [1, 2, 7]
plot(a, b,
label = "randData",
xlabel = "numbers",
ylabel = "Rand data",
color = :red,
legend = :topleft,
tick_direction = :in,
grid = :on, left_margin=2cm, right_margin=8cm, top_margin=2cm)
plot!(twinx(), a, log.(a),
label = "log(x)",
ylabel = "The right Y label",
color = :green,
legend = :bottomright,
grid = :on, left_margin=2cm, right_margin=8cm, top_margin=2cm)
savefig("tstplt6.png")
end
tstplt6()
