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

initial commit

parent a3d33789
Materials for Graphics
######################
:contributions: denes@ebi.ac.uk
:issues: https://github.com/saezlab/graphix/issues
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`: http://intranet.ebi.ac.uk/sites/intranet.ebi.ac.uk/files/content/outreach/EMBL_branding_guidelines.pdf
.. _`style guide`: http://intranet.ebi.ac.uk/outreach/writing-embl-style-guide
What to find here?
==================
embl.gpl
--------
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.
colors.py
---------
Some methods for reading and converting colors.
beamer_embl.tex
---------------
This is a presentation template for XeLaTeX and Beamer. Based on the PaloAlto template.
embl1.pdf
---------
EMBL logo vector graphics.
embl1.svg
---------
EMBL logo vector graphics.
embl.svg
--------
EMBL logo with EMBL acronym.
workflow2.svg
fonts
-----
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`: http://intranet.ebi.ac.uk/outreach/fonts-and-icons
workflow2.svg
-------------
Some simple, reusable graphic elements related to bioinformatics.
\ No newline at end of file
../Dokumentumok/pw/slides/beamer_embl.tex
\ 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 (denes@ebi.ac.uk)
#
# Distributed under the GPLv3 License.
# See accompanying file LICENSE.txt or copy at
# http://www.gnu.org/licenses/gpl-3.0.html
#
# Website: http://www.ebi.ac.uk/~denes
#
def embl_palette(inFile = 'embl_colors.tab'):
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:
cols.append(series)
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
../Dokumentumok/embl.gpl
\ No newline at end of file
../Dokumentumok/pw/slides/embl.svg
\ No newline at end of file
../Dokumentumok/pw/slides/embl1.pdf
\ No newline at end of file
../Dokumentumok/pw/slides/embl1.svg
\ No newline at end of file
../Dokumentumok/pw/a2/src/bioigraph/data/embl_colors
\ No newline at end of file
../Dokumentumok/pw/slides/workflow2.svg
\ 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