Module demo
source code
demo.py -- Demonstrate the Gnuplot python module.
Run this demo by typing 'python demo.py'. For a more complete test of
the Gnuplot package, see test.py.
|
ALLOW_THREADS = 1
|
|
BUFSIZE = 8192
|
|
CLIP = 0
|
|
ERR_CALL = 3
|
|
ERR_DEFAULT = 521
|
|
ERR_IGNORE = 0
|
|
ERR_LOG = 5
|
|
ERR_PRINT = 4
|
|
ERR_RAISE = 2
|
|
ERR_WARN = 1
|
|
FLOATING_POINT_SUPPORT = 1
|
|
FPE_DIVIDEBYZERO = 1
|
|
FPE_INVALID = 8
|
|
FPE_OVERFLOW = 2
|
|
FPE_UNDERFLOW = 4
|
|
False_ = False
|
|
Inf = inf
|
|
Infinity = inf
|
|
MAXDIMS = 32
|
|
NAN = nan
|
|
NINF = -inf
|
|
NZERO = -0.0
|
|
NaN = nan
|
|
PINF = inf
|
|
PZERO = 0.0
|
|
RAISE = 2
|
|
SHIFT_DIVIDEBYZERO = 0
|
|
SHIFT_INVALID = 9
|
|
SHIFT_OVERFLOW = 3
|
|
SHIFT_UNDERFLOW = 6
|
|
ScalarType = ( <type 'int'>, <type 'float'>, <type 'complex'>, ...
|
|
True_ = True
|
|
UFUNC_BUFSIZE_DEFAULT = 8192
|
|
UFUNC_PYVALS_NAME = ' UFUNC_PYVALS '
|
|
WRAP = 1
|
|
__package__ = ' PyFoam.ThirdParty.Gnuplot '
|
|
absolute = <ufunc 'absolute'>
|
|
add = <ufunc 'add'>
|
|
arccos = <ufunc 'arccos'>
|
|
arccosh = <ufunc 'arccosh'>
|
|
arcsin = <ufunc 'arcsin'>
|
|
arcsinh = <ufunc 'arcsinh'>
|
|
arctan = <ufunc 'arctan'>
|
|
arctan2 = <ufunc 'arctan2'>
|
|
arctanh = <ufunc 'arctanh'>
|
|
bitwise_and = <ufunc 'bitwise_and'>
|
|
bitwise_not = <ufunc 'invert'>
|
|
bitwise_or = <ufunc 'bitwise_or'>
|
|
bitwise_xor = <ufunc 'bitwise_xor'>
|
|
c_ = <numpy.lib.index_tricks.CClass object at 0x110056fd0>
|
|
cast = {<type 'numpy.int64'>: <function <lambda> at 0x10fcdb23...
|
|
ceil = <ufunc 'ceil'>
|
|
conj = <ufunc 'conjugate'>
|
|
conjugate = <ufunc 'conjugate'>
|
|
copysign = <ufunc 'copysign'>
|
|
cos = <ufunc 'cos'>
|
|
cosh = <ufunc 'cosh'>
|
|
deg2rad = <ufunc 'deg2rad'>
|
|
degrees = <ufunc 'degrees'>
|
|
divide = <ufunc 'divide'>
|
|
e = 2.71828182846
|
|
equal = <ufunc 'equal'>
|
|
euler_gamma = 0.577215664902
|
|
exp = <ufunc 'exp'>
|
|
exp2 = <ufunc 'exp2'>
|
|
expm1 = <ufunc 'expm1'>
|
|
fabs = <ufunc 'fabs'>
|
|
floor = <ufunc 'floor'>
|
|
floor_divide = <ufunc 'floor_divide'>
|
|
fmax = <ufunc 'fmax'>
|
|
fmin = <ufunc 'fmin'>
|
|
fmod = <ufunc 'fmod'>
|
|
frexp = <ufunc 'frexp'>
|
|
greater = <ufunc 'greater'>
|
|
greater_equal = <ufunc 'greater_equal'>
|
|
hypot = <ufunc 'hypot'>
|
|
index_exp = <numpy.lib.index_tricks.IndexExpression object at ...
|
|
inf = inf
|
|
infty = inf
|
|
invert = <ufunc 'invert'>
|
|
isfinite = <ufunc 'isfinite'>
|
|
isinf = <ufunc 'isinf'>
|
|
isnan = <ufunc 'isnan'>
|
|
ldexp = <ufunc 'ldexp'>
|
|
left_shift = <ufunc 'left_shift'>
|
|
less = <ufunc 'less'>
|
|
less_equal = <ufunc 'less_equal'>
|
|
little_endian = True
|
|
log = <ufunc 'log'>
|
|
log10 = <ufunc 'log10'>
|
|
log1p = <ufunc 'log1p'>
|
|
log2 = <ufunc 'log2'>
|
|
logaddexp = <ufunc 'logaddexp'>
|
|
logaddexp2 = <ufunc 'logaddexp2'>
|
|
logical_and = <ufunc 'logical_and'>
|
|
logical_not = <ufunc 'logical_not'>
|
|
logical_or = <ufunc 'logical_or'>
|
|
logical_xor = <ufunc 'logical_xor'>
|
|
maximum = <ufunc 'maximum'>
|
|
mgrid = <numpy.lib.index_tricks.nd_grid object at 0x110056d90>
|
|
minimum = <ufunc 'minimum'>
|
|
mod = <ufunc 'remainder'>
|
|
modf = <ufunc 'modf'>
|
|
multiply = <ufunc 'multiply'>
|
|
nan = nan
|
|
nbytes = {<type 'numpy.int64'>: 8, <type 'numpy.void'>: 0, <ty...
|
|
negative = <ufunc 'negative'>
|
|
newaxis = None
hash(x)
|
|
nextafter = <ufunc 'nextafter'>
|
|
not_equal = <ufunc 'not_equal'>
|
|
ogrid = <numpy.lib.index_tricks.nd_grid object at 0x110056e90>
|
|
pi = 3.14159265359
|
|
power = <ufunc 'power'>
|
|
r_ = <numpy.lib.index_tricks.RClass object at 0x110056f10>
|
|
rad2deg = <ufunc 'rad2deg'>
|
|
radians = <ufunc 'radians'>
|
|
reciprocal = <ufunc 'reciprocal'>
|
|
remainder = <ufunc 'remainder'>
|
|
right_shift = <ufunc 'right_shift'>
|
|
rint = <ufunc 'rint'>
|
|
s_ = <numpy.lib.index_tricks.IndexExpression object at 0x11006...
|
|
sctypeDict = { 0: <type 'numpy.bool_'>, 1: <type 'numpy.int8'>, ...
|
|
sctypeNA = { ' ? ' : ' Bool ' , ' B ' : ' UInt8 ' , ' Bool ' : <type 'numpy.bo...
|
|
sctypes = { ' complex ' : [ <type 'numpy.complex64'>, <type 'numpy....
|
|
sign = <ufunc 'sign'>
|
|
signbit = <ufunc 'signbit'>
|
|
sin = <ufunc 'sin'>
|
|
sinh = <ufunc 'sinh'>
|
|
spacing = <ufunc 'spacing'>
|
|
sqrt = <ufunc 'sqrt'>
|
|
square = <ufunc 'square'>
|
|
subtract = <ufunc 'subtract'>
|
|
tan = <ufunc 'tan'>
|
|
tanh = <ufunc 'tanh'>
|
|
true_divide = <ufunc 'true_divide'>
|
|
trunc = <ufunc 'trunc'>
|
|
typeDict = { 0: <type 'numpy.bool_'>, 1: <type 'numpy.int8'>, 2...
|
|
typeNA = { ' ? ' : ' Bool ' , ' B ' : ' UInt8 ' , ' Bool ' : <type 'numpy.bool...
|
|
typecodes = { ' All ' : ' ?bhilqpBHILQPefdgFDGSUVOMm ' , ' AllFloat ' : ...
|
Imports:
ComplexWarning,
DataSource,
Gnuplot,
MachAr,
ModuleDeprecationWarning,
PackageLoader,
RankWarning,
VisibleDeprecationWarning,
add_docstring,
add_newdoc,
add_newdoc_ufunc,
add_newdocs,
alen,
all,
allclose,
alltrue,
alterdot,
amax,
amin,
angle,
any,
append,
apply_along_axis,
apply_over_axes,
arange,
argmax,
argmin,
argpartition,
argsort,
argwhere,
around,
array,
array2string,
array_equal,
array_equiv,
array_repr,
array_split,
array_str,
asanyarray,
asarray,
asarray_chkfinite,
ascontiguousarray,
asfarray,
asfortranarray,
asmatrix,
asscalar,
atleast_1d,
atleast_2d,
atleast_3d,
average,
bartlett,
base_repr,
binary_repr,
bincount,
blackman,
bmat,
bool8,
bool_,
broadcast,
broadcast_arrays,
busday_count,
busday_offset,
busdaycalendar,
byte,
byte_bounds,
bytes_,
can_cast,
cdouble,
cfloat,
char,
character,
chararray,
choose,
clip,
clongdouble,
clongfloat,
column_stack,
common_type,
compare_chararrays,
complex128,
complex256,
complex64,
complex_,
complexfloating,
compress,
concatenate,
convolve,
copy,
copyto,
corrcoef,
correlate,
count_nonzero,
cov,
cross,
csingle,
ctypeslib,
cumprod,
cumproduct,
cumsum,
datetime64,
datetime_as_string,
datetime_data,
delete,
deprecate,
deprecate_with_doc,
diag,
diag_indices,
diag_indices_from,
diagflat,
diagonal,
diff,
digitize,
disp,
dot,
double,
dsplit,
dstack,
dtype,
ediff1d,
einsum,
emath,
empty,
empty_like,
errstate,
expand_dims,
extract,
eye,
fastCopyAndTranspose,
fft,
fill_diagonal,
find_common_type,
finfo,
fix,
flatiter,
flatnonzero,
flexible,
fliplr,
flipud,
float128,
float16,
float32,
float64,
float_,
floating,
format_parser,
frombuffer,
fromfile,
fromfunction,
fromiter,
frompyfunc,
fromregex,
fromstring,
full,
full_like,
funcutils,
fv,
generic,
genfromtxt,
get_array_wrap,
get_include,
get_printoptions,
getbuffer,
getbufsize,
geterr,
geterrcall,
geterrobj,
gradient,
half,
hamming,
hanning,
histogram,
histogram2d,
histogramdd,
hsplit,
hstack,
i0,
identity,
iinfo,
imag,
in1d,
indices,
inexact,
info,
inner,
insert,
int0,
int16,
int32,
int64,
int8,
int_,
int_asbuffer,
intc,
integer,
interp,
intersect1d,
intp,
ipmt,
irr,
is_busday,
isclose,
iscomplex,
iscomplexobj,
isfortran,
isneginf,
isposinf,
isreal,
isrealobj,
isscalar,
issctype,
issubclass_,
issubdtype,
issubsctype,
iterable,
ix_,
kaiser,
kron,
lexsort,
linalg,
linspace,
load,
loads,
loadtxt,
logspace,
longcomplex,
longdouble,
longfloat,
longlong,
lookfor,
ma,
mafromtxt,
mask_indices,
mat,
math,
matrix,
maximum_sctype,
may_share_memory,
mean,
median,
memmap,
meshgrid,
min_scalar_type,
mintypecode,
mirr,
msort,
nan_to_num,
nanargmax,
nanargmin,
nanmax,
nanmean,
nanmedian,
nanmin,
nanpercentile,
nanstd,
nansum,
nanvar,
ndarray,
ndenumerate,
ndfromtxt,
ndim,
ndindex,
nditer,
nested_iters,
newbuffer,
nonzero,
nper,
npv,
number,
obj2sctype,
object0,
object_,
ones,
ones_like,
outer,
packbits,
pad,
partition,
percentile,
piecewise,
pkgload,
place,
pmt,
poly,
poly1d,
polyadd,
polyder,
polydiv,
polyfit,
polyint,
polymul,
polysub,
polyval,
ppmt,
prod,
product,
promote_types,
ptp,
put,
putmask,
pv,
random,
rank,
rate,
ravel,
ravel_multi_index,
real,
real_if_close,
rec,
recarray,
recfromcsv,
recfromtxt,
record,
repeat,
require,
reshape,
resize,
restoredot,
result_type,
rinput,
roll,
rollaxis,
roots,
rot90,
round_,
row_stack,
safe_eval,
save,
savetxt,
savez,
savez_compressed,
sctype2char,
searchsorted,
select,
set_numeric_ops,
set_printoptions,
set_string_function,
setbufsize,
setdiff1d,
seterr,
seterrcall,
seterrobj,
setxor1d,
shape,
short,
show_config,
signedinteger,
sinc,
single,
singlecomplex,
size,
sometrue,
sort,
sort_complex,
source,
split,
squeeze,
std,
str_,
string0,
string_,
sum,
swapaxes,
take,
tensordot,
tile,
timedelta64,
trace,
transpose,
trapz,
tri,
tril,
tril_indices,
tril_indices_from,
trim_zeros,
triu,
triu_indices,
triu_indices_from,
typename,
ubyte,
ufunc,
uint,
uint0,
uint16,
uint32,
uint64,
uint8,
uintc,
uintp,
ulonglong,
unicode0,
unicode_,
union1d,
unique,
unpackbits,
unravel_index,
unsignedinteger,
unwrap,
ushort,
vander,
var,
vdot,
vectorize,
void,
void0,
vsplit,
vstack,
where,
who,
zeros,
zeros_like
ScalarType
- Value:
( <type 'int'>,
<type 'float'>,
<type 'complex'>,
<type 'long'>,
<type 'bool'>,
<type 'str'>,
<type 'unicode'>,
<type 'buffer'>,
...
|
|
cast
- Value:
{<type 'numpy.int64'>: <function <lambda> at 0x10fcdb230>, <type 'nump
y.void'>: <function <lambda> at 0x10fcdb2a8>, <type 'numpy.timedelta64
'>: <function <lambda> at 0x10fcdb320>, <type 'numpy.float16'>: <funct
ion <lambda> at 0x10fcdb398>, <type 'numpy.uint8'>: <function <lambda>
at 0x10fcdb410>, <type 'numpy.int8'>: <function <lambda> at 0x10fcdb4
88>, <type 'numpy.object_'>: <function <lambda> at 0x10fcdb500>, <type
'numpy.complex64'>: <function <lambda> at 0x10fcdb578>, <type 'numpy.
float32'>: <function <lambda> at 0x10fcdb5f0>, <type 'numpy.uint16'>:
...
|
|
index_exp
- Value:
<numpy.lib.index_tricks.IndexExpression object at 0x1100640d0>
|
|
nbytes
- Value:
{<type 'numpy.int64'>: 8, <type 'numpy.void'>: 0, <type 'numpy.timedel
ta64'>: 8, <type 'numpy.float16'>: 2, <type 'numpy.uint8'>: 1, <type '
numpy.int8'>: 1, <type 'numpy.object_'>: 8, <type 'numpy.complex64'>:
8, <type 'numpy.float32'>: 4, <type 'numpy.uint16'>: 2, <type 'numpy.i
nt16'>: 2, <type 'numpy.bool_'>: 1, <type 'numpy.complex128'>: 16, <ty
pe 'numpy.float64'>: 8, <type 'numpy.uint32'>: 4, <type 'numpy.int32'>
: 4, <type 'numpy.string_'>: 0, <type 'numpy.complex256'>: 32, <type '
numpy.float128'>: 16, <type 'numpy.uint64'>: 8, <type 'numpy.int64'>:
...
|
|
s_
- Value:
<numpy.lib.index_tricks.IndexExpression object at 0x110064150>
|
|
sctypeDict
- Value:
{ 0: <type 'numpy.bool_'>,
1: <type 'numpy.int8'>,
2: <type 'numpy.uint8'>,
3: <type 'numpy.int16'>,
4: <type 'numpy.uint16'>,
5: <type 'numpy.int32'>,
6: <type 'numpy.uint32'>,
7: <type 'numpy.int64'>,
...
|
|
sctypeNA
- Value:
{ ' ? ' : ' Bool ' ,
' B ' : ' UInt8 ' ,
' Bool ' : <type 'numpy.bool_'>,
' Complex128 ' : <type 'numpy.complex256'>,
' Complex32 ' : <type 'numpy.complex64'>,
' Complex64 ' : <type 'numpy.complex128'>,
' D ' : ' Complex64 ' ,
' Datetime64 ' : <type 'numpy.datetime64'>,
...
|
|
sctypes
- Value:
{ ' complex ' : [ <type 'numpy.complex64'>,
<type 'numpy.complex128'>,
<type 'numpy.complex256'>] ,
' float ' : [ <type 'numpy.float16'>,
<type 'numpy.float32'>,
<type 'numpy.float64'>,
<type 'numpy.float128'>] ,
' int ' : [ <type 'numpy.int8'>, <type 'numpy.int16'>, <type 'numpy.int32
...
|
|
typeDict
- Value:
{ 0: <type 'numpy.bool_'>,
1: <type 'numpy.int8'>,
2: <type 'numpy.uint8'>,
3: <type 'numpy.int16'>,
4: <type 'numpy.uint16'>,
5: <type 'numpy.int32'>,
6: <type 'numpy.uint32'>,
7: <type 'numpy.int64'>,
...
|
|
typeNA
- Value:
{ ' ? ' : ' Bool ' ,
' B ' : ' UInt8 ' ,
' Bool ' : <type 'numpy.bool_'>,
' Complex128 ' : <type 'numpy.complex256'>,
' Complex32 ' : <type 'numpy.complex64'>,
' Complex64 ' : <type 'numpy.complex128'>,
' D ' : ' Complex64 ' ,
' Datetime64 ' : <type 'numpy.datetime64'>,
...
|
|
typecodes
- Value:
{ ' All ' : ' ?bhilqpBHILQPefdgFDGSUVOMm ' ,
' AllFloat ' : ' efdgFDG ' ,
' AllInteger ' : ' bBhHiIlLqQpP ' ,
' Character ' : ' c ' ,
' Complex ' : ' FDG ' ,
' Datetime ' : ' Mm ' ,
' Float ' : ' efdg ' ,
' Integer ' : ' bhilqp ' ,
...
|
|