Skip to content

Instantly share code, notes, and snippets.

View phobson's full-sized avatar
⛏️

Paul Hobson phobson

⛏️
View GitHub Profile
{
"metadata": {
"name": ""
},
"nbformat": 3,
"nbformat_minor": 0,
"worksheets": [
{
"cells": [
{
@phobson
phobson / mpltest.log
Created September 20, 2013 20:48
mpl test failures
paul@fremont ~/sources/matplotlib $ cd ~
paul@fremont ~ $ python -c "import matplotlib as mpl; mpl.test()"
................................................................................................................................................../usr/local/lib/python2.7/dist-packages/matplotlib-1.3.0-py2.7-linux-i686.egg/matplotlib/projections/geo.py:485: RuntimeWarning: invalid value encountered in arcsin
theta = np.arcsin(y / np.sqrt(2))
...................................................................................../usr/local/lib/python2.7/dist-packages/matplotlib-1.3.0-py2.7-linux-i686.egg/matplotlib/font_manager.py:1236: UserWarning: findfont: Font family ['sans-serif'] not found. Falling back to Helvetica
(prop.get_family(), self.defaultFamily[fontext]))
/usr/local/lib/python2.7/dist-packages/matplotlib-1.3.0-py2.7-linux-i686.egg/matplotlib/font_manager.py:1246: UserWarning: findfont: Could not match :family=Helvetica:style=normal:variant=normal:weight=normal:stretch=normal:size=medium.
@phobson
phobson / AA.ipynb
Last active December 23, 2015 13:59
bmp database advanced analysis
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@phobson
phobson / index.html
Last active December 25, 2015 15:49 — forked from benjchristensen/index.html
<html>
<head>
<title>Line Graph with Dual-scaled Axes using SVG and d3.js</title>
<script src="http://mbostock.github.com/d3/d3.v2.js"></script>
<script>
// d3.legend.js
// (C) 2012 [email protected]
// MIT licence
(function() {
@phobson
phobson / sparklines.html
Last active December 26, 2015 13:59
sparklines in D3.js
<html>
<head>
<title>Line Graph with Dual-scaled Axes using SVG and d3.js</title>
<script src="http://mbostock.github.com/d3/d3.v2.js"></script>
<style>
/* tell the SVG path to be a thin blue line without any area fill */
path {
stroke-width: 1;
fill: none;
}
@phobson
phobson / reassign.ipynb
Last active December 27, 2015 00:49
Weird issues reassigning values in pandas
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@phobson
phobson / hydrofig.ipynb
Created November 4, 2013 03:12
hydrofigure
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@phobson
phobson / LHTN.ipynb
Last active December 27, 2015 12:19
no errors here
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@phobson
phobson / ShiftedColorMap.ipynb
Last active May 26, 2022 03:13
One way to shift (recenter) a colormap in matplotlib
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@phobson
phobson / seaborngrids.ipynb
Created January 3, 2014 03:02
Custom grids in seaborn
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.