I use the following as a utility to have PyPlot.jl/PyCall.jl automatically
convert RGB types into tuples
function PyObject(t::Color)
trgb = convert(RGB, t)
ctup = map(float, (red(trgb), green(trgb), blue(trgb)))
o = PyObject(ctup)
return o
end
I'm sure it can be tweaked to be more general. But it works so far when I
am doing quick and dirty plotting :) Good luck!
On Thursday, July 7, 2016 at 6:09:41 PM UTC-7, Tim Holy wrote:
> On Thursday, July 7, 2016 4:41:10 PM CDT Islam Badreldin wrote:
> > Maybe
> > this means PyPlot.jl needs to add better support for ColorTypes?
>
> That sounds like a very reasonable solution. I don't really know PyPlot at
> all, so I don't have any advice to offer, but given how well you seem to
> understand things already it seems that matters are in excellent hands
> :-).
>
> Best,
> --Tim
>
>