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
proc take_picture {args} { | |
global take_picture | |
# when called with no parameter, render the image | |
if {$args == {}} { | |
set f [format $take_picture(format) $take_picture(frame)] | |
# take 1 out of every modulo images | |
if { [expr $take_picture(frame) % $take_picture(modulo)] == 0 } { | |
render $take_picture(method) $f | |
# call any unix command, if specified |
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
proc take_picture {args} { | |
global take_picture | |
# when called with no parameter, render the image | |
if {$args == {}} { | |
set f [format $take_picture(format) $take_picture(frame)] | |
# take 1 out of every modulo images | |
if { [expr $take_picture(frame) % $take_picture(modulo)] == 0 } { | |
render $take_picture(method) $f | |
# call any unix command, if specified |
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 matplotlib.pyplot as plt | |
import matplotlib | |
import numpy as np | |
import moviepy | |
from moviepy.editor import VideoClip | |
from moviepy.video.io.bindings import mplfig_to_npimage | |
x = np.linspace(-5,5,100) | |
fig, ax = plt.subplots(figsize=(12,8)) | |
line = ax.plot(x, x**2 + np.cos(5 * x))[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
[ | |
{ | |
"home": "GLA", | |
"away": "FLA", | |
"scores": [ | |
[ | |
2, | |
1 | |
], | |
[ |
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 | |
from scipy.integrate import * | |
from scipy.interpolate import interp1d | |
from math import pi, exp, sqrt,erf | |
import numpy as np | |
grtypes = ["gromacs", "lammps", "aimd"] | |
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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
#set the font-size and size of things | |
figure.figsize: 5, 3 | |
axes.labelsize: 14.3 | |
axes.titlesize: 15.6 | |
xtick.labelsize: 13 | |
ytick.labelsize: 13 | |
legend.fontsize: 13 | |
grid.linewidth: 1.3 | |
lines.linewidth: 2.275 |