Apple Keynote & Pages colours in Python

It is really easy to match the colours you use in your Keynote Presentation or Pages Document with the ones that you use in your Matplotlib figures. When your making you document, open the Colours Options

1) Select the colour that you want by any method (Colour Wheel, Colour Slider, Colour Palette, Image Palette or Crayons)

2) Switch to the Colour Slider making sure that RGB slider is selected

3) Note down the HEX number for your colour Now you can simply define this as a string variable in your python scripts and use that variable wherever a colour argument is needed:

turquoise = '#00FFFF'

plt.plot(x,y,turquoise,lw=2.0,label='Line')

To help get started, here is the complete set of HEX codes of the crayon palette:

cayenne = '#990000'
maraschino = '#FF0000'
salmon = '#FF6666'
mocha = '#663300'
tangerine = '#FF9900'
cantaloupe = '#FFCC66'
asparagus = '#999900'
lemon = '#FFFF00'
banana = '#FFFF66'
clover = '#339900'
spring = '#00FF00'
flora = '#66FF66'
fern = '#336600'
lime = '#66FF00'
honeydew = '#CCFF66'
moss = '#006633'
seafoam = '#00FF99'
spindrift = '#66FFCC'
teal = '#009999'
turquoise = '#00FFFF'
ice = '#66FFFF'
ocean = '#003366'
aqua = '#0066CC'
sky = '#66CCFF'
midnight = '#000099'
blueberry = '#0000FF'
orchid = '#6666FF'
eggplant = '#330066'
grape = '#6600FF'
lavender = '#CC66FF'
plum = '#990099'
magenta = '#FF00FF'
bubblegum = '#FF66FF'
maroon = '#660033'
strawberry = '#FF3399'
carnation = '#FF66CC'
licorice = '#000000'
tungsten = '#333333'
iron = '#666666'
tin = '#999999'
silver = '#CCCCCC'
snow = '#FFFFFF'

 

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s