Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

@RedPointyJackson
RedPointyJackson / custom.mplstyle
Created August 15, 2018 10:45
Matplotlib custom style
# adapted from http://www.huyng.com/posts/sane-color-scheme-for-matplotlib/
patch.linewidth: 0.5
patch.facecolor: 348ABD # blue
patch.antialiased: True
font.size: 10.0
axes.facecolor: FFFFFF
axes.edgecolor: 000000
@RedPointyJackson
RedPointyJackson / install.sh
Last active June 11, 2017 19:42
Install tmux without root privileges
#!/bin/sh
# libevent
wget -O libevent.tar.gz 'https://github.com/libevent/libevent/releases/download/release-2.1.8-stable/libevent-2.1.8-stable.tar.gz'
tar xvf libevent.tar.gz
cd 'libevent-2.1.8-stable'
./configure --prefix=${HOME} --disable-shared
make
make install
cd ..
@RedPointyJackson
RedPointyJackson / xy data
Created December 1, 2016 19:24
For cross validated question
-0.5560268761463861 0.13103957173478886
-0.444383357109696 -0.5389840688433539
0.027155338009193845 -0.25759238575247523
-0.29948409035891055 -0.6382468070733407
1.7778610980573246 1.682493611116403
-1.14490153172882 -0.3759299580489973
-0.46860588216767457 0.9738377204298583
0.15614346264074028 -0.11888867510793369
-2.641991008076796 -3.02162850038583
1.0033099014594844 0.2806135811394108
# This time with less points and with Shor's corrections
# Install this libraries with Pkg.add("FooBar").
using ProgressMeter
using DataFrames
using Gadfly
using StatsBase
Gadfly.push_theme(:default)
# This time with a circumference
using ProgressMeter
using DataFrames
using Gadfly
Gadfly.push_theme(:default)
############################
# DATAPOINTS TO TAKE #
using ProgressMeter
using DataFrames
using Gadfly
############################
# DATAPOINTS TO TAKE #
############################
statistics = Int64(5e6)
Nbins = 100