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
from pylab import plt, rc | |
print plt.style.available | |
plt.style.use('ggplot') | |
rc('font', size=12) |
This file has been truncated, but you can view the full file.
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
{ | |
"cells": [ | |
{ | |
"cell_type": "markdown", | |
"metadata": {}, | |
"source": [ | |
"# Some examples of mpl-based plots rendered by Bokeh" | |
] | |
}, | |
{ |
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
from mayavi import mlab | |
from pylab import plt | |
from numpy import array, linspace | |
def adjust_colorbar(pts, cb_title, vmin, vmax): | |
pts.glyph.glyph_source.glyph_source.center = [0, 0, 0] | |
pts.glyph.glyph.color_mode = 'color_by_scalar' | |
pts.glyph.color_mode = 'color_by_scalar' | |
pts.glyph.glyph.scale_mode = 'data_scaling_off' |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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
// leave at least 2 line with only a star on it below, or doc generation fails | |
/** | |
* | |
* | |
* Placeholder for custom user javascript | |
* mainly to be overridden in profile/static/custom/custom.js | |
* This will always be an empty file in IPython | |
* | |
* User could add any javascript in the `profile/static/custom/custom.js` file | |
* (and should create it if it does not exist). |
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
"""Convert a zotero exported bibtex file to wiki format for the journal scan. | |
Take the first bibfile in the current directory and print the wikiformat. | |
""" | |
import glob | |
# open file | |
bibfiles = glob.glob('*.bib') | |
for name in bibfiles: | |
name = bibfiles[0] |
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
hexToRGB = | |
RGBColor @@ (IntegerDigits[#~StringDrop~1~FromDigits~16, 256, 3]/ | |
255.) & | |
colors = Table[ColorData[1][x], {x, 0, 36, 1}]; | |
colorsHex = {"#DA96D1", "#DC4AD4", "#97E43B", "#52C858", "#B36EE2", | |
"#B0429C", "#827CE0", "#CC3B4F", "#7BDA91", "#498727", "#E94292", | |
"#C3D676", "#59397F", "#3EC3A3", "#E24925", "#5999EB", "#E69F34", | |
"#506BB4", "#DC722A", "#48BAD3", "#C0D5B7", "#72244C", "#C1B535", | |
"#D77F84", "#557B49", "#642B23", "#C3BCCF", "#D5A974", "#3D3448", | |
"#A95531", "#536B90", "#53817B", "#9B5B87", "#323B24", "#93776C", |
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
"""Get closest named color according to XKCD's color naming survey `http://xkcd.com/color/rgb/`. | |
rgb.tex from `http://xkcd.com/color/rgb.txt` must reside in working directory. | |
""" | |
from pylab import np | |
import csv | |
import struct | |
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
<!doctype html> | |
<html lang="en"> | |
<head> | |
<meta charset="utf-8"> | |
<title>Letter counter</title> | |
<meta name="description" content="The HTML5 Herald"> | |
<meta name="author" content="SitePoint"> |
OlderNewer