代码搜索结果
找到约 10,000 项符合
Python 的代码
tex_demo.py
#!/usr/bin/env python
"""
You can use TeX to render all of your matplotlib text if the rc
parameter text.usetex is set. This works currently on the agg and ps
backends, and requires that you have tex
table_demo.py
#!/usr/bin/env python
import matplotlib
from pylab import *
from colours import get_colours
axes([0.2, 0.2, 0.7, 0.6]) # leave room below the axes for the table
data = [[ 66386, 174296, 75131
two_scales.py
#!/usr/bin/env python
"""
Demonstrate how to do two plots on the same axes with different left
right scales.
The trick is to use *2 different axes*. Turn the axes rectangular
frame off on the 2nd
pcolor_demo.py
#!/usr/bin/env python
"""
See pcolor_demo2 for an alternative way of generating pcolor plots
using imshow that is likely faster for large grids
"""
from __future__ import division
from matplotlib.patc
find_convexhull.py
#!/usr/bin/env python
"""find_convexhull.py
"""
import sys, convexhull, re, string
# need to get a set of points
if __name__ == '__main__':
try:
data = sys.argv[1]
except IndexErr
urldecode.py
# !/usr/bin/env python
# -*- coding: UTF-8 -*-
# author: watermoon
# date: 02/18/2009
import string
class codec(object): # encode and decode, maybe encrypt and decrypt is better
def __init__(self)
bbn_80211b.py
#!/usr/bin/env python
# 802.11 style bpsk modulation and demodulation.
#
#
# Copyright 2005 Free Software Foundation, Inc.
#
# Copyright (c) 2006 BBN Technologies Corp. All rights reserved.
# Effo
sync.py
#!/usr/bin/python -u
import sys
import libxml2
# Memory debug specific
libxml2.debugMemory(1)
log = ""
class callback:
def startDocument(self):
global log
log = log + "startDocu
pushsaxhtml.py
#!/usr/bin/python -u
import sys
import libxml2
# Memory debug specific
libxml2.debugMemory(1)
log = ""
class callback:
def startDocument(self):
global log
log = log + "startDocu
validdtd.py
#!/usr/bin/python -u
import libxml2
import sys
ARG = 'test string'
class ErrorHandler:
def __init__(self):
self.errors = []
def handler(self, msg, data):
if data != ARG: