代码搜索结果

找到约 10,000 项符合 Python 的代码

gpsfake

#!/usr/bin/env python # # gpsfake -- test harness for gpsd # # Simulates a GPS, playing back a logfile # Most of the logic for this now lives in gpsfake.py, # factored out so we can write other test p

tz.py

""" Copyright (c) 2003-2005 Gustavo Niemeyer This module offers extensions to the standard python 2.3+ datetime module. """ __author__ = "Gustavo Niemeyer

register.py

#!/usr/bin/python import socket, sys , struct , time #if __name__ == '__main__': #argv = sys.argv #if (len(argv)!=4) or (len(argv)==2 and argv[1]=='/?'): #print '>>>Useage:', argv[0], '

login.py

#!/usr/bin/python import socket, sys , struct , time if __name__ == '__main__': argv = sys.argv if (len(argv)!=4) or (len(argv)==2 and argv[1]=='/?'): print '>>>Useage:', argv[0], '

colours.py

#!/usr/bin/env python """ Some simple functions to generate colours. """ from matplotlib.numerix import asarray, asum from matplotlib.mlab import linspace from matplotlib.colors import colorConverter

dynamic_image_gtkagg.py

#!/usr/bin/env python """ An animated image """ import sys, time, os, gc import matplotlib matplotlib.use('GTKAgg') from matplotlib import rcParams from pylab import * import gobject, gtk fig = figu

data_helper.py

#!/usr/bin/env python # Some functions to load a return data for the plot demos from matplotlib.numerix import fromstring, argsort, take, array, resize def get_two_stock_data(): """ load stoc

object_picker.py

#!/usr/bin/env python """ As of matplotlib-0.70, there is GUI neutral object picking. See for example the picker_demo.py. Show how to use the mouse to select objects and a build dialog to set line p

contourf_demo.py

#!/usr/bin/env python from pylab import * import matplotlib.numerix.ma as ma origin = 'lower' #origin = 'upper' test_masking = False # There is a bug in filled contour masking. if test_masking:

line_styles.py

#!/usr/bin/env python from pylab import * t = arange(0.0, 3.0, 0.05) s = sin(2*pi*t) styles = ('-', '--', ':', '.', 'o', '^', 'v', '', 's', '+') colors = ('b', 'g', 'r', 'c', 'm', 'y', 'k') a