HiPERCAM / hipercam

Python package for handling HiPERCAM data
4 stars 4 forks source link

Need more colours #8

Closed StuartLittlefair closed 7 years ago

StuartLittlefair commented 7 years ago

and names

StuartLittlefair commented 7 years ago

Note that any colour in the xkcd colour survey can be derived by name in matplotlib, i.e

plt.plot(x, y, color='xkcd:sky blue')

StuartLittlefair commented 7 years ago

and we can get rgb tuples

from matplotlib import colors
colors.to_rgb('xkcd:sky blue')
StuartLittlefair commented 7 years ago

Look here and see what you like

trmrsh commented 7 years ago

Quite a few colours have now been added. They can be seen in hipercam/core.py ['CNAMS'], and if you type an unrecognised colour in a reduce file, reduce will give you a warning and list the recognised colours. I think we have settled for now on purple, green, orange, red, ]darkred or mud] to represent u,g,r,i,z. If you want to repeat the colours in your own code, hipercam.rgb returns the rgb tuple given a string name.