Skip to content

Instantly share code, notes, and snippets.

View lkluft's full-sized avatar

Lukas Kluft lkluft

View GitHub Profile
@lkluft
lkluft / centered_colormap.ipynb
Last active April 27, 2016 07:57
Center a colormap around zero.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
# -*- coding: utf-8 -*-
"""Define convenience functions to clear IPython console and user
namespace in an MATLAB like way.
"""
from IPython import get_ipython
def clear_all():
"""Clear IPython user namespace."""
@lkluft
lkluft / block_reduce.ipynb
Created May 23, 2016 18:50
Reduce array size by averaging over blocks
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@lkluft
lkluft / string_format.ipynb
Last active June 28, 2016 09:46
Use cases for the string class' format function.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@lkluft
lkluft / paramiko_glob.ipynb
Last active April 4, 2023 21:24
Mimic the functionality of glob when using paramiko.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@lkluft
lkluft / discrete_colormap.ipynb
Last active June 28, 2016 09:44
Create a colormap with discrete colors.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@lkluft
lkluft / temporary_file.ipynb
Last active June 29, 2016 09:35
Create and use a temporary file.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@lkluft
lkluft / update_layers.ipynb
Last active July 6, 2016 07:27
Plotting transparent layers in a plot an update them iteratively.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@lkluft
lkluft / sorting_lists_alongside.ipynb
Last active July 27, 2016 09:34
Sorting several lists alongside.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@lkluft
lkluft / cmap_from_png.ipynb
Created August 15, 2016 06:50
Extract a colormap from an PNG image.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.