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
Family tree for the Rurikovichi from Rurik to Ivan the Terrible, 9–16 centuries. | |
json_generator.py is a python script which generates py_generated.json file from the source.data file. | |
Source.data file contains list of Rurik's descendants. | |
This file is easy to fill: each person in the same generation has the same amount of leading spaces. |
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
#coding=utf8 | |
import numpy as np | |
from matplotlib import * | |
import matplotlib.pyplot as plt | |
import matplotlib.ticker as ticker | |
from matplotlib.ticker import AutoMinorLocator | |
from math import exp | |
from distinct_colors import get_distinct | |
''' Decay of 56Ni ''' |
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
#coding=utf8 | |
import numpy as np | |
from matplotlib import * | |
import matplotlib.pyplot as plt | |
import matplotlib.ticker as ticker | |
from matplotlib.ticker import AutoMinorLocator | |
from math import exp | |
from distinct_colors import get_distinct | |
''' Decay of 56Ni ''' |
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
#! /usr/bin/env python | |
#coding=utf8 | |
from pylab import * | |
from matplotlib import * | |
gs = gridspec.GridSpec(2, 1) #subplots ratio | |
f, (ax1, ax2) = plt.subplots(2, sharex=True) | |
ax1 = plt.subplot(gs[0, 0]) | |
ax2 = plt.subplot(gs[1, 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
#! /usr/bin/env python | |
#coding=utf8 | |
import re, os | |
path = '/home/slisakov/Dropbox/documents/science/thesis/' | |
plots = '/home/slisakov/Dropbox/documents/science/thesis/plots/' | |
used_plots = [] # present in tex | |
commented_plots = [] # present in tex, commented |
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
#! /usr/bin/env python | |
#coding=utf8 | |
import numpy as np | |
from matplotlib import rc, rcParams | |
import matplotlib.pyplot as plt | |
from matplotlib.ticker import AutoMinorLocator, MultipleLocator | |
# Plot Setup {{{ | |
rcParams['font.size'] = 16. |
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
import os | |
import numpy as np | |
from matplotlib.patches import Ellipse | |
import matplotlib as mpl | |
from matplotlib import pyplot as plt | |
from matplotlib import rc, rcParams | |
from matplotlib.ticker import AutoMinorLocator, MultipleLocator | |
from matplotlib.patches import Arc | |
# Trigonometry {{{ |
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
import numpy as np | |
def cos(x): | |
return round( np.cos( np.radians(x) ), 10 ) | |
def sin(x): | |
return round( np.sin( np.radians(x) ), 10 ) | |
def asin(x): | |
return np.degrees( np.arcsin(x) ) | |
# Plot setup {{{ |
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
import numpy as np | |
# Triginometry {{{ | |
def cos(x): return round( np.cos( np.radians(x) ), 10 ) | |
def sin(x): return round( np.sin( np.radians(x) ), 10 ) | |
def tg(x): return round( np.tan( np.radians(x) ), 10 ) | |
def arctg(x): return np.degrees( np.arctan(x) ) | |
def sins(x): return round( np.sin( np.radians(x) )**2, 10 ) | |
def asin(x): return np.degrees( np.arcsin(x) ) | |
#}}} |
OlderNewer