Commit d25d04a4 authored by Türei Dénes's avatar Türei Dénes

initial commit

parent a3d33789
Materials for Graphics
This is a collection of handy stuff for making presentations, posters and figures.
Some of these stuff have been made according to the EMBL style guidelines.
See the `branding guidlines`_ and `style guide`_ for more details. (I don't think it is better to follow this style, I am doing it just for fun.)
.. _`branding guidlines`:
.. _`style guide`:
What to find here?
Palette of official EMBL colors in ``gpl`` RGB format. Copy to ``~/.config/inkscape/palettes/`` to use it in Inkscape. GIMP is able to import gpl palettes too. It has RGB 0-255 values in 3 columns, and color names. There are 5 colors (green, blue, yellow, red, black), each in 7 tones, plus the brown used often in titles on the webpage.
Some methods for reading and converting colors.
This is a presentation template for XeLaTeX and Beamer. Based on the PaloAlto template.
EMBL logo vector graphics.
EMBL logo vector graphics.
EMBL logo with EMBL acronym.
Without having these fonts, anything lacking embedded fonts (SVG and TeX) won't work for you.
See also the `icon fonts`_ from EMBL.
.. _`icon fonts`:
Some simple, reusable graphic elements related to bioinformatics.
\ No newline at end of file
\ No newline at end of file
#!/usr/bin/env python2
# -*- coding: utf-8 -*-
# Copyright (c) 2014-2015 - EMBL-EBI
# File author(s): Dénes Türei (
# Distributed under the GPLv3 License.
# See accompanying file LICENSE.txt or copy at
# Website:
def embl_palette(inFile = ''):
cols = []
with open(inFile, 'r') as f:
series = []
for i, l in enumerate(f):
l = [x.strip() for x in l.split(',')]
series.append(rgb2hex(tuple([256 * float(x) for x in l[0:3]])))
if len(series) == 7:
series = []
return cols
# color converting functions
def rgb2hex(rgb):
return '#%02x%02x%02x' % rgb
def hex2rgb(self, rgbhex):
rgbhex = rgbhex.lstrip('#')
lv = len(rgbhex)
return tuple(int(rgbhex[i:i + 2], 16) for i in range(0, lv, 2))
def rgb1(self, rgb256):
return rgb256 if not any([i > 1 for i in rgb256]) \
else tuple([x / float(255) for x in rgb256])
def rgb256(rgb1):
return rgb1 if any([i > 1.0 for i in rgb1]) \
else tuple([x * 255.0 for x in rgb1])
\ No newline at end of file
\ No newline at end of file
\ No newline at end of file
\ No newline at end of file
\ No newline at end of file
\ No newline at end of file
\ No newline at end of file
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment