This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
""" | |
Quick plotting for testing and preliminary data visualization | |
""" | |
from matplotlib import pyplot as plt | |
from matplotlib.colors import LinearSegmentedColormap | |
import numpy as np | |
__all__ = [ | |
'imshow', | |
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
""" | |
Smarter bounds | |
This function emulates set_smart_bounds of matplotlib.spines.Spine, | |
but correctly sets the extent of the axes. | |
""" | |
def smarterbounds(ax, which='both'): | |
""" |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# Equivalent to safely removing devices | |
# The parameter is (part of) the mountpoint | |
mountpoint=$1 | |
if [[ -z "$mountpoint" ]] || [[ "$mountpoint" == "--help" ]] ; then | |
echo "Usage: ${0##*/} mountpoint" | |
exit 1 | |
fi |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# Create report from juptyer notebook for local viewing (no internet) | |
# with support for the nbextensions | |
# - latex_envs | |
# - hide_input | |
# | |
# Download the following javascript projects and place them | |
# into the destination directory with macthing directory names. | |
# - font-awesome-4.7.0 | |
# - jquery-2.0.3 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
% To remove a Matlab trailing whitespace in the editor | |
% Original Author: Sam Roberts | |
% http://stackoverflow.com/questions/19770347/how-to-auto-remove-trailing-whitespaces-on-save-in-matlab | |
% Modified by Mark Harfouche to remember cursor location | |
% | |
% | |
% Temp variable for shortcut. Give it an unusual name so it's unlikely to | |
% conflict with anything in the workspace. | |
shtcutwh__ = struct; |