Let’s say I define a Function that plot some data with a defined attributes. I 'd like to call that function but if I wish specifying/change any attribute. I read about kwarg… keywork, but I’ve not figured out how to use.
using PyPlot
function Track(depth, g,s)
spax=gca()
spax.plot(sp,md,color="blue")
spax.set_xlim([0,50])
grax=spax.twiny()
grax.plot(gamma,md,color="red")
spax.set_xlim([100,500])
return spax, grax
end
Then I’d like to call the function but changing for example the color of spax axes.
Track(x,y,z, color=spax.set_color("green")) #how to change for example the color of spax from blue to green in the call?
how to do this?