plot rgb spectrum

Hi!

Can anyone help me to achive this?
I'd like to plot rgb spectrum with matplotlib.
For example let the x axis be green element, and for example... let the y axis be red element.
Eventually i'd like to plot 3D figure with all of three elements RGB.
Regards,
T.

Hi Tymoteusz,

I think this does what you want (see attached).

I'm not sure about 3D though.

Gary R.

Tymoteusz Jankowski wrote:

rvg.py (263 Bytes)

ยทยทยท

Hi!

Can anyone help me to achive this?
I'd like to plot rgb spectrum with matplotlib.
For example let the x axis be green element, and for example... let the y axis be red element.
Eventually i'd like to plot 3D figure with all of three elements RGB.
Regards,
T.