Skip to content

Instantly share code, notes, and snippets.

View ycopin's full-sized avatar

Yannick Copin ycopin

View GitHub Profile
@ycopin
ycopin / taylorDiagram.py
Last active June 7, 2025 09:48
Taylor diagram for python/matplotlib [ 10.5281/zenodo.5548061 ]
#!/usr/bin/env python
# Copyright: This document has been placed in the public domain.
"""
Taylor diagram (Taylor, 2001) implementation.
Note: If you have found these software useful for your research, I would
appreciate an acknowledgment.
"""
@ycopin
ycopin / imSpec.py
Created July 17, 2012 19:17
Encode a (normalized) 1D-array as ligthness component of an HLS image (or any other color system supported by colorsys).
#!/usr/bin/env python -*- coding: utf-8 -*-
"""
Source of inspiration: http://astro.u-strasbg.fr/~koppen/discharge/
"""
__version__ = "Time-stamp: <2012-08-13 13:12 ycopin@lyopc469>"
__author__ = "Yannick Copin <[email protected]>"
import numpy as N
@ycopin
ycopin / searchUnicode.py
Created July 15, 2012 14:41
Search through unicode character descriptions.
#!/usr/bin/env python
# -*- coding: utf-8 -*-
# Time-stamp: <2012-07-15 16:39 ycopin@lyopc469>
# Copyright: This document has been placed in the public domain.
"""
Search through unicode character descriptions, e.g.::
$ searchUnicode.py letter lamda
Λ GREEK CAPITAL LETTER LAMDA &#923 0x39b
@ycopin
ycopin / rstTable.py
Created July 13, 2012 19:37
reST simple table formatter
#!/usr/bin/env python
# -*- coding: utf-8 -*-
# Time-stamp: <2012-07-13 21:35:19 ycopin>
# Copyright: This document has been placed in the public domain.
"""
Table examples
--------------
A simple table example: