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
"""Simple calendar using ttk Treeview together with calendar and datetime | |
classes. | |
Credits | |
------- | |
http://svn.python.org/projects/sandbox/trunk/ttk-gsoc/samples/ttkcalendar.py | |
""" | |
import calendar | |
try: |
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 matplotlib contours to hatched patches""" | |
from matplotlib.patches import PathPatch | |
from itertools import cycle | |
def contour_to_hatched_patches(cntrset, hatch_colors, hatch_patterns, | |
remove_contour=True): | |
"""Convert matplotlib contours to hatched patches""" | |
patches_list = [] |
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
"""In Python source code file docstrings, replace dashes- by equals= using sed""" | |
import subprocess | |
import os | |
def sed_replace_patterns(wdir,maxdash=20,mindash=2): | |
for n in xrange(maxdash,mindash+1,-1): | |
pstr = '-'*n # pattern | |
sstr = '='*n # substitute |
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
"""Test the SciPy built-in function for One-Way ANOVA""" | |
import matplotlib.pyplot as plt | |
import numpy as np | |
import scipy.stats as sstats | |
numargs = sstats.f.numargs | |
[ dfn, dfd ] = [0.9,] * numargs | |
rv = sstats.f(dfn, dfd) | |
# Display frozen pdf |
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
"""Arrange existing matplotlib figures into subplots""" | |
import numpy as np | |
from matplotlib.figure import * | |
def multisubplot(figures=[], ratio=1.0, wspace=0.0, hspace=0.0): | |
"""Arrange existing matplotlib figures into subplots | |
Source | |
------ |
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
"""Automatize the download of eSurge data from vannstand.no | |
Troubleshooting | |
=============== | |
If the script does not work anymore, this is likely to be | |
due to changes in the website data request form. | |
Most sensitive: field names (e.g. 'tid', 'aar', etc.). | |
Check the website source code. | |
Note |
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
"""Fetch WOA09 files from NODC.NOAA website via WOAselect""" | |
import re | |
import mechanize | |
import os | |
import urllib2 | |
import shutil | |
import time | |
def abs2relftp(url): |
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
;;; ferret.el --- Ferret mode for GNU Emacs | |
;; Copyright (c) 1999 by Mark A. Verschell <[email protected]> | |
;; Author: Mark A. Verschell <[email protected]> | |
;; Maintainer: Mark A. Verschell <[email protected]> | |
;; Version 0.03.0 (February 2, 2000) | |
;; Keywords: languages | |
;; Ferret.el is free software; you can redistribute it and/or modify it under |
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
;;; ferret.el --- Ferret mode for GNU Emacs | |
;; Copyright (c) 1999 by Mark A. Verschell <[email protected]> | |
;; Author: Mark A. Verschell <[email protected]> | |
;; Maintainer: Mark A. Verschell <[email protected]> | |
;; Version 0.03.0 (February 2, 2000) | |
;; Keywords: languages | |
;; Ferret.el is free software; you can redistribute it and/or modify it under |
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
;;; ferret.el --- Ferret mode for GNU Emacs | |
;; Copyright (c) 1999 by Mark A. Verschell <[email protected]> | |
;; Author: Mark A. Verschell <[email protected]> | |
;; Maintainer: Mark A. Verschell <[email protected]> | |
;; Version 0.03.0 (February 2, 2000) | |
;; Keywords: languages | |
;; Ferret.el is free software; you can redistribute it and/or modify it under |
OlderNewer