Coder Social home page Coder Social logo

scitools's People

Contributors

hplgit avatar johannesring avatar

Watchers

 avatar  avatar

scitools's Issues

problems when installing with easy_install

What steps will reproduce the problem?
1. easy_install scitools
2.
3.

What is the expected output? What do you see instead?
$ easy_install simpleitk
Searching for simpleitk
Best match: SimpleITK 0.4.0
Processing SimpleITK-0.4.0-py2.7-linux-x86_64.egg
SimpleITK 0.4.0 is already the active version in easy-install.pth

Using 
/nfs/soft-el6/python-epd/7.2/lib/python2.7/site-packages/SimpleITK-0.4.0-py2.7-l
inux-x86_64.egg
Processing dependencies for simpleitk
Finished processing dependencies for simpleitk
[yangfei@lab023 Version_5.1.8_Out]$ easy_install wrapitk
Searching for wrapitk
Reading http://pypi.python.org/simple/wrapitk/
Couldn't find index page for 'wrapitk' (maybe misspelled?)
Scanning index of all packages (this may take a while)
Reading http://pypi.python.org/simple/
No local packages or download links found for wrapitk
error: Could not find suitable distribution for Requirement.parse('wrapitk')
[yangfei@lab023 Version_5.1.8_Out]$ easy_install scitools
Searching for scitools
Reading http://pypi.python.org/simple/scitools/
Reading http://scitools.googlecode.com
Best match: scitools 0.8
Downloading https://scitools.googlecode.com/files/scitools-0.8.tar.gz
Processing scitools-0.8.tar.gz
Running scitools-0.8/setup.py -q bdist_egg --dist-dir 
/tmp/easy_install-E9j_jd/scitools-0.8/egg-dist-tmp-bFTaHh
default scitools.easyviz backend becomes matplotlib
(could be set by the --easyviz_backend option to setup.py)

Traceback (most recent call last):
  File "/soft/python-epd/7.2/bin/easy_install", line 10, in <module>
    sys.exit(main())
  File "/nfs/soft-el6/python-epd/7.2/lib/python2.7/site-packages/setuptools/command/easy_install.py", line 1883, in main
    with_ei_usage(lambda:
  File "/nfs/soft-el6/python-epd/7.2/lib/python2.7/site-packages/setuptools/command/easy_install.py", line 1864, in with_ei_usage
    return f()
  File "/nfs/soft-el6/python-epd/7.2/lib/python2.7/site-packages/setuptools/command/easy_install.py", line 1887, in <lambda>
    distclass=DistributionWithoutHelpCommands, **kw
  File "/nfs/soft-el6/python-epd/7.2/lib/python2.7/distutils/core.py", line 152, in setup
    dist.run_commands()
  File "/nfs/soft-el6/python-epd/7.2/lib/python2.7/distutils/dist.py", line 953, in run_commands
    self.run_command(cmd)
  File "/nfs/soft-el6/python-epd/7.2/lib/python2.7/distutils/dist.py", line 972, in run_command
    cmd_obj.run()
  File "/nfs/soft-el6/python-epd/7.2/lib/python2.7/site-packages/setuptools/command/easy_install.py", line 349, in run
    self.easy_install(spec, not self.no_deps)
  File "/nfs/soft-el6/python-epd/7.2/lib/python2.7/site-packages/setuptools/command/easy_install.py", line 589, in easy_install
    return self.install_item(spec, dist.location, tmpdir, deps)
  File "/nfs/soft-el6/python-epd/7.2/lib/python2.7/site-packages/setuptools/command/easy_install.py", line 619, in install_item
    dists = self.install_eggs(spec, download, tmpdir)
  File "/nfs/soft-el6/python-epd/7.2/lib/python2.7/site-packages/setuptools/command/easy_install.py", line 809, in install_eggs
    return self.build_and_install(setup_script, setup_base)
  File "/nfs/soft-el6/python-epd/7.2/lib/python2.7/site-packages/setuptools/command/easy_install.py", line 1086, in build_and_install
    self.run_setup(setup_script, setup_base, args)
  File "/nfs/soft-el6/python-epd/7.2/lib/python2.7/site-packages/setuptools/command/easy_install.py", line 1075, in run_setup
    run_setup(setup_script, args)
  File "/nfs/soft-el6/python-epd/7.2/lib/python2.7/site-packages/setuptools/sandbox.py", line 30, in run_setup
    lambda: execfile(
  File "/nfs/soft-el6/python-epd/7.2/lib/python2.7/site-packages/setuptools/sandbox.py", line 72, in run
    return func()
  File "/nfs/soft-el6/python-epd/7.2/lib/python2.7/site-packages/setuptools/sandbox.py", line 32, in <lambda>
    {'__file__':setup_script, '__name__':'__main__'}
  File "setup.py", line 76, in <module>
    raise ValueError('did not find HDF5 headers')
  File "lib/scitools/__init__.py", line 78, in <module>

  File "lib/scitools/std.py", line 26, in <module>
  File "lib/scitools/easyviz/__init__.py", line 2734, in <module>

  File "<string>", line 1, in <module>
  File "lib/scitools/easyviz/matplotlib_.py", line 35, in <module>
  File "lib/scitools/misc.py", line 42, in test_if_module_exists
UnboundLocalError: local variable 'message' referenced before assignment


What version of the product are you using? On what operating system?
centos

Please provide any additional information below.


Original issue reported on code.google.com by [email protected] on 7 Jun 2012 at 4:02

scitools.aplotter.plot() crashes and burns on valid input

What steps will reproduce the problem?
1. from scitools.aplotter import plot
2. l1 = [16, 33, 50] ; l2 = [36.94805848, 59.48372445, 63.57076211]
3. aplotter.plot(l1, l2)

What is the expected output? What do you see instead?
I expect an ASCII plot.
Instead, I get 
Traceback (most recent call last):
    ... lines in my program which you really don't care about ...
  File "/usr/lib64/python2.7/site-packages/scitools/aplotter.py", line 573, in plot
    r = p.plot_double(args[0],args[1],**limit_flags)
  File "/usr/lib64/python2.7/site-packages/scitools/aplotter.py", line 501, in plot_double
    self.plot_labels(output_buffer, plot_data)
  File "/usr/lib64/python2.7/site-packages/scitools/aplotter.py", line 345, in plot_labels
    output_buffer[min_x_coord+i][y_zero_coord-1] = c
IndexError: list assignment index out of range

What version of the product are you using? On what operating system?
python-scitools-0.9.0-2.1.4
On Slackware 64 1.4.1

Please provide any additional information below.
(1) A similar bug has been reported in 
    https://code.google.com/p/scitools/issues/detail?id=27
(2) On my particular data, adding
            if y_zero_coord <= -len(output_buffer[0]):
                        y_zero_coord = -len(output_buffer[0]) + 1
    right after line 330:
        y_zero_coord = self.get_coord(0, plot_data.min_y, plot_data.y_step)
    kludges around the problem, but I'm pretty sure that's not The Right Thing
    to do.
(3) y_zero_coord gets set to -20, and then subtracting 1 from that gives -21,
    which is an invalid list index in this case.

Original issue reported on code.google.com by [email protected] on 12 Feb 2015 at 9:09

Plotting problem with Matplotlib backend - Windows 7 (32 bits)

What steps will reproduce the problem?
1. from scitools.std import *
2. x = linspace(0, 2*pi, 100); y = exp(sin(x**2))
3. plot(x, y, 'b-o')

What is the expected output? What do you see instead?
I expect to see a plot of f(x) = exp(sin(x**2))! 
My IPython session look as the following:


In [1]: from scitools.std import *
scitools.easyviz backend is matplotlib

In [2]: x = linspace(0, 2*pi, 100); y = exp(sin(x**2))

In [3]: plot(x, y, 'b-o')
Running miktex-pdftex.exe...
This is pdfTeX, Version 3.1415926-1.40.10 (MiKTeX 2.8) (INITEX)
entering extended mode
("C:\Program Files\MiKTeX\tex\latex\config\latex.ini"
("C:\Users\Steeve Brechmann\AppData\Roaming\MiKTeX\2.8\tex\generic\config\pdfte
xconfig.tex")
("C:\Program Files\MiKTeX\tex\latex\base\latex.ltx"
("C:\Program Files\MiKTeX\tex\latex\00miktex\texsys.cfg")
./texsys.aux found


\@currdir set to: ./.


Assuming \openin and \input
have the same search path.


Defining UNIX/DOS style filename parser.

catcodes, registers, compatibility for TeX 2,  parameters,
LaTeX2e <2009/09/24>
hacks, control, par, spacing, files, font encodings, lengths,
====================================

Local config file fonttext.cfg used

====================================
("C:\Program Files\MiKTeX\tex\latex\00miktex\fonttext.cfg"
("C:\Program Files\MiKTeX\tex\latex\base\fonttext.ltx"
=== Don't modify this file, use a .cfg file instead ===

("C:\Program Files\MiKTeX\tex\latex\base\omlenc.def")
("C:\Program Files\MiKTeX\tex\latex\base\t1enc.def")
("C:\Program Files\MiKTeX\tex\latex\base\ot1enc.def")
("C:\Program Files\MiKTeX\tex\latex\base\omsenc.def")
("C:\Program Files\MiKTeX\tex\latex\base\t1cmr.fd")
("C:\Program Files\MiKTeX\tex\latex\base\ot1cmr.fd")
("C:\Program Files\MiKTeX\tex\latex\base\ot1cmss.fd")
("C:\Program Files\MiKTeX\tex\latex\base\ot1cmtt.fd")))
====================================

Local config file fontmath.cfg used

====================================
("C:\Program Files\MiKTeX\tex\latex\00miktex\fontmath.cfg"
("C:\Program Files\MiKTeX\tex\latex\base\fontmath.ltx"
=== Don't modify this file, use a .cfg file instead ===

("C:\Program Files\MiKTeX\tex\latex\base\omlcmm.fd")
("C:\Program Files\MiKTeX\tex\latex\base\omscmsy.fd")
("C:\Program Files\MiKTeX\tex\latex\base\omxcmex.fd")
("C:\Program Files\MiKTeX\tex\latex\base\ucmr.fd")))
====================================

Local config file preload.cfg used

=====================================
("C:\Program Files\MiKTeX\tex\latex\base\preload.cfg"
("C:\Program Files\MiKTeX\tex\latex\base\preload.ltx")) page nos., x-ref,
environments, center, verbatim, math definitions, boxes, title, sectioning,
contents, floats, footnotes, index, bibliography, output,
===========================================
Local configuration file hyphen.cfg used
===========================================
("C:\Program Files\MiKTeX\tex\generic\babel\hyphen.cfg"
("C:\Program Files\MiKTeX\tex\generic\hyphen\hyphen.tex")
("C:\Program Files\MiKTeX\tex\generic\hyphen\dumyhyph.tex")
("C:\Program Files\MiKTeX\tex\generic\hyphen\zerohyph.tex")
("C:\Program Files\MiKTeX\tex\generic\hyph-utf8\loadhyph\loadhyph-de-1901.tex"
German Hyphenation Patterns (Traditional Orthography)
("C:\Program Files\MiKTeX\tex\generic\hyphen\dehypht.tex"
German Traditional Hyphenation Patterns `dehypht' Version 3.2a <1999/03/03>
(Formerly known under the name `ghyph31' and `ghyphen'.)))
("C:\Program Files\MiKTeX\tex\generic\hyph-utf8\loadhyph\loadhyph-de-1996.tex"
German Hyphenation Patterns (Reformed Orthography)
("C:\Program Files\MiKTeX\tex\generic\hyphen\dehyphn.tex"
New German Hyphenation Patterns `dehyphn' Rev.31 <2001-05-07> (WaS)))
("C:\Program Files\MiKTeX\tex\generic\dehyph-exptl\dehypht-x-2009-06-19.tex"
Using an 8-bit TeX engine.
("C:\Program Files\MiKTeX\tex\generic\dehyph-exptl\dehypht-x-2009-06-19.pat"
German Hyphenation Patterns (Traditional Orthography) `dehypht-x' 2009-06-19 (W
L))) ("C:\Program Files\MiKTeX\tex\generic\dehyph-exptl\dehyphn-x-2009-06-19.te
x" Using an 8-bit TeX engine.
("C:\Program Files\MiKTeX\tex\generic\dehyph-exptl\dehyphn-x-2009-06-19.pat"
German Hyphenation Patterns (Reformed Orthography, 2006) `dehyphn-x' 2009-06-19
 (WL))) ("C:\Program Files\MiKTeX\tex\generic\hyph-utf8\loadhyph\loadhyph-fr.te
x" EC French hyphenation patterns (V2.12, 2002/12/11)
("C:\Program Files\MiKTeX\tex\generic\hyph-utf8\patterns\tex-special\spechyph-o
t1-fr.tex")
("C:\Program Files\MiKTeX\tex\generic\hyph-utf8\conversions\conv-utf8-ec.tex")
("C:\Program Files\MiKTeX\tex\generic\hyph-utf8\patterns\tex\hyph-fr.tex")))
=================================
Applying patch file ltpatch.ltx
=================================
("C:\Program Files\MiKTeX\tex\latex\base\ltpatch.ltx")
 ) )
Beginning to dump on file latex.fmt
 (preloaded format=latex 2010.9.27)
4970 strings of total length 69323
44163 memory locations dumped; current usage is 144&42176
3306 multiletter control sequences
\font\nullfont=nullfont
\font\OMX/cmex/m/n/10=cmex10
\font\tenln=line10
\font\tenlnw=linew10
\font\tencirc=lcircle10
\font\tencircw=lcirclew10
\font\OT1/cmr/m/n/5=cmr5
\font\OT1/cmr/m/n/7=cmr7
\font\OT1/cmr/m/n/10=cmr10
\font\OML/cmm/m/it/5=cmmi5
\font\OML/cmm/m/it/7=cmmi7
\font\OML/cmm/m/it/10=cmmi10
\font\OMS/cmsy/m/n/5=cmsy5
\font\OMS/cmsy/m/n/7=cmsy7
\font\OMS/cmsy/m/n/10=cmsy10
3633 words of font info for 14 preloaded fonts
14 hyphenation exceptions
Hyphenation trie of length 56740 has 1474 ops out of 35111
  88 for language 7
  374 for language 6
  387 for language 5
  235 for language 4
  207 for language 3
  2 for language 1
  181 for language 0
0 words of pdfTeX memory
0 indirect objects
No pages of output.
Transcript written on latex.log.
Trying to make PK font cmr12 at 320 DPI...
Creating cmr12.pk...
Running miktex-mf.exe...
This is METAFONT, Version 2.718281 (MiKTeX 2.8)
Running miktex-mf.exe...
This is METAFONT, Version 2.718281 (MiKTeX 2.8) (INIMF)
(C:\Program Files\MiKTeX\metafont\config\mf.ini
(C:\Program Files\MiKTeX\metafont\base\plain.mf
Preloading the plain base, version 2.71: preliminaries,
 basic constants and mathematical macros,
 macros for converting from device-independent units to pixels,
 macros and tables for various modes of operation,
 macros for drawing and filling,
 macros for proof labels and rules,
 macros for character and font administration,
and a few last-minute items.) (C:\Program Files\MiKTeX\metafont\misc\modes.mf)
)
Beginning to dump on file mf.base
 (preloaded base=mf 2010.9.27)
2225 strings of total length 30077
11864 memory locations dumped; current usage is 3658&7844
1004 symbolic tokens
Transcript written on mf.log.

(C:\Program Files\MiKTeX\fonts\source\public\cm\cmr12.mf
(C:\Program Files\MiKTeX\fonts\source\public\cm\cmbase.mf)
(C:\Program Files\MiKTeX\fonts\source\public\cm\roman.mf
(C:\Program Files\MiKTeX\fonts\source\public\cm\romanu.mf [65] [66] [67]
[68] [69] [70] [71] [72] [73] [74] [75] [76] [77] [78] [79] [80] [81] [82]
[83] [84] [85] [86] [87] [88] [89] [90])
(C:\Program Files\MiKTeX\fonts\source\public\cm\romanl.mf [97] [98] [99]
[100] [101] [102] [103] [104] [105] [106] [107] [108] [109] [110] [111]
[112] [113] [114] [115] [116] [117] [118] [119] [120] [121] [122])
(C:\Program Files\MiKTeX\fonts\source\public\cm\greeku.mf [0] [1] [2] [3]
[4] [5] [6] [7] [8] [9] [10])
(C:\Program Files\MiKTeX\fonts\source\public\cm\romand.mf [48] [49] [50]
[51] [52] [53] [54] [55] [56] [57])
(C:\Program Files\MiKTeX\fonts\source\public\cm\romanp.mf [36] [38] [63]
[62]) (C:\Program Files\MiKTeX\fonts\source\public\cm\romspl.mf [16] [17]
[25] [26] [27] [28]) (C:\Program Files\MiKTeX\fonts\source\public\cm\romspu.mf
[29] [30] [31]) (C:\Program Files\MiKTeX\fonts\source\public\cm\punct.mf
[33] [60] [35] [37] [39] [40] [41] [42] [43] [44] [46] [47] [58] [59] [61]
[64] [91] [93] [96]) (C:\Program Files\MiKTeX\fonts\source\public\cm\accent.mf
[18] [19] [20] [21] [22] [23] [24] [32] [94] [95] [125] [126] [127])
(C:\Program Files\MiKTeX\fonts\source\public\cm\romlig.mf [11] [12] [13]
[14] [15]) (C:\Program Files\MiKTeX\fonts\source\public\cm\comlig.mf [34]
[45] [92] [123] [124]) ) )
Font metrics written on cmr12.tfm.
Output written on cmr12.320gf (128 characters, 16024 bytes).
Transcript written on cmr12.log.
METAFONT failed for some reason
ignoring 0 strange path(s)
Running gftopk.exe...
This is GFtoPK, Version 2.3 (MiKTeX 2.8)
'METAFONT output 2010.09.27:0955'
16024 bytes packed to 6664 bytes.
dvipng warning: font cmr12 at 320 dpi not found, characters will be left blank 
dvipng warning: unable to draw glyph 48, skipping Trying to make PK font cmmi12 
at 320 DPI...
Creating cmmi12.pk...
Running miktex-mf.exe...
This is METAFONT, Version 2.718281 (MiKTeX 2.8)

(C:\Program Files\MiKTeX\fonts\source\public\cm\cmmi12.mf
(C:\Program Files\MiKTeX\fonts\source\public\cm\cmbase.mf)
(C:\Program Files\MiKTeX\fonts\source\public\cm\mathit.mf
(C:\Program Files\MiKTeX\fonts\source\public\cm\romanu.mf [65] [66] [67]
[68] [69] [70] [71] [72] [73] [74] [75] [76] [77] [78] [79] [80] [81] [82]
[83] [84] [85] [86] [87] [88] [89] [90])
(C:\Program Files\MiKTeX\fonts\source\public\cm\itall.mf [97] [98] [99]
[100] [101] [102] [103] [104] [105] [106] [107] [108] [109] [110] [111]
[112] [113] [114] [115] [116] [117] [118] [119] [120] [121] [122])
(C:\Program Files\MiKTeX\fonts\source\public\cm\greeku.mf [0] [1] [2] [3]
[4] [5] [6] [7] [8] [9] [10])
(C:\Program Files\MiKTeX\fonts\source\public\cm\greekl.mf [11] [12] [13]
[14] [15] [16] [17] [18] [19] [20] [21] [22] [23] [24] [25] [26] [27] [28]
[29] [30] [31] [32] [33] [34] [35] [36] [37] [38] [39])
(C:\Program Files\MiKTeX\fonts\source\public\cm\italms.mf [64] [96] [123]
[124] [125] [126] [127])
(C:\Program Files\MiKTeX\fonts\source\public\cm\olddig.mf [48] [49] [50]
[51] [52] [53] [54] [55] [56] [57])
(C:\Program Files\MiKTeX\fonts\source\public\cm\romms.mf [40] [41] [42]
[43] [44] [45] [46] [47] [58] [59] [60] [61] [62] [63] [91] [92] [93] [94]
[95]) ) )
Font metrics written on cmmi12.tfm.
Output written on cmmi12.320gf (128 characters, 16632 bytes).
Transcript written on cmmi12.log.
METAFONT failed for some reason
ignoring 0 strange path(s)
Running gftopk.exe...
This is GFtoPK, Version 2.3 (MiKTeX 2.8)
'METAFONT output 2010.09.27:0956'
16632 bytes packed to 8432 bytes.
dvipng warning: font cmmi12 at 320 dpi not found, characters will be left blank 
dvipng warning: unable to draw glyph 58, skipping Out[3]: 
[<scitools.easyviz.common.Line object at 0x03A67750>]

What version of the product are you using? On what operating system?
I use python-scitools 0.7 under a Windows 7 32 bits.

Please provide any additional information below.
I've installed the Python(x, y) package and after the python-scitools.
I have the Latex distribution named MiKTeX 2.8.

Python-scitools works great under Ubuntu 10.04 but I want to be able to run it 
in Windows 7 too.

Original issue reported on code.google.com by [email protected] on 27 Sep 2010 at 2:05

problem with plot3

What steps will reproduce the problem?

from scitools.std import *
t=linspace(0,10*pi,100)
x=sin(t)
y=cos(t)
z=t
plot3(x,y,z)

or

t = linspace(0,10*pi,301)
plot3(sin(t), cos(t), t, title='A helix', grid='on')

What is the expected output? What do you see instead?
expected a plot, got:
Tracheback (most recent call last):
File"<stdin>", line1 in module>
file "/usr/lib/python2.7/site-packages/scitools/easyviz/common.py", line 3307, 
in plot3 format=' '))
file "/usr/lib/python2.7/site-packages/scitools/easyviz/common.py", line 380, 
in __init__ self.setp(**kwargs)
file "/usr/lib/python2.7/site-packages/scitools/easyviz/common.py", line 409, 
in stp "y is %s" % type(kwargs['y']))
TypeError: Can only plot sequence types, y is <type 'numpy.ndarray'>


What version of the product are you using? On what operating system?
installed scitools from hg clone 
https://hpl%[email protected]/p/scitools/
last week, so it should be up-to-date.
Using Linux

Please provide any additional information below.

Original issue reported on code.google.com by [email protected] on 18 Feb 2015 at 9:37

Plotting broken on MacOSX

What steps will reproduce the problem?

aes248203:scitools-0.7 $ sudo python setup.py install --easyviz_backend gnuplot
after except!!!!!!!!!!!!!!!!
default scitools.easyviz backend becomes gnuplot (could be set by the 
--easyviz_backend option to setup.py)

Could not import module "Gnuplot" - it is not installed on your system. You 
need to install the Gnuplot.py package.

Also,

>>> from scitools.std import *
scitools.easyviz backend is gnuplot
>>> x = linspace(0, 1, 51)
>>> plot(x, sin(x))
Traceback (most recent call last):

File "<stdin>", line 1, in <module> File 
"/System/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-pac
kages/scitools/easyviz/common.py", line 3060, in plot
self.replot()
File 
"/System/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-pac
kages/scitools/easyviz/gnuplot.py", line 1099, in replot
self.g.reset()
File 
"/opt/local/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-
packages/Gnuplot/Gnuplot.py", line 366, in reset
self('reset')
File 
"/opt/local/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-
packages/Gnuplot/Gnuplot.py", line 210, in call
self.gnuplot(s)
File 
"/opt/local/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-
packages/Gnuplot/gp_macosx.py", line 144, in call
self.flush()
IOError: 32? Broken pipe


What is the expected output?

A plot of the sine function.

 What do you see instead?

Nothing.

What version of the product are you using? On what operating system?

MacOSX 10.6.6, python 2.6 installed via MacPorts, Scitools 0.7

Please provide any additional information below.

Please note that both gnuplot and Gnuplot.py are installed on my system and 
work fine. In particular,

$ gnuplot
Terminal type set to 'aqua'
gnuplot> plot sin(x)

works as expected, as does

$ python
>>> import Gnuplot
>>> from numpy import *
>>> g = Gnuplot.Gnuplot(debug=1)
gnuplot> set terminal aqua
>>> x = arange(10, dtype='float_')
>>> y1 = x**2
>>> d = Gnuplot.Data(x, y1)
>>> g.plot(Gnuplot.Func('x**2'))
gnuplot> plot x**2 
>>>

Original issue reported on code.google.com by [email protected] on 9 Feb 2011 at 8:23

Problem with install of scitools

What steps will reproduce the problem?
1. Running python 2.7
2. Installed scitools
3. Enter 'from scitools.std import *

What is the expected output? What do you see instead?

Get Error: 
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/scitools/std.py", line 26, in <module>
    from scitools.easyviz import *
  File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/scitools/easyviz/__init__.py", line 2734, in <module>
    exec(cmd)
  File "<string>", line 1, in <module>
  File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/scitools/easyviz/matplotlib_.py", line 42, in <module>
    from matplotlib.font_manager import fontManager, FontProperties
  File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/matplotlib/font_manager.py", line 52, in <module>
    from matplotlib import ft2font
ImportError: 
dlopen(/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-pack
ages/matplotlib/ft2font.so, 2): no suitable image found.  Did find:
    /Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/matplotlib/ft2font.so: no matching architecture in universal wrapper

What version of the product are you using? On what operating system?
v2.7 of python on mac osx 10.6.8

Please provide any additional information below.


Original issue reported on code.google.com by [email protected] on 29 Dec 2011 at 6:02

dolfin_function2BoxField doesn't work with dolfin trunk

Hi.

What steps will reproduce the problem?

1. run examples/stationary/poisson/vcp2.py from the FEniCS tutorial

What is the expected output? What do you see instead?

I get the attached Figure, but would expect to get the same figure as here: 
http://fenicsproject.org/documentation/tutorial/fundamentals.html#visualization-
of-structured-mesh-data


What version of the product are you using? On what operating system?

I'm using the latest version of dolfin from trunk installed with dorsal. System 
is an opteron-based supercomputer 
(http://www.arsc.edu/arsc/resources/pacman/index.xml). I've tried both scitools 
0.9 and checked-out the mercurial repo.

Please provide any additional information below.

It seems that there were changes between dolfin stable 1.0 and the trunk 
related to node numbering (or something similar) with which scitools is not 
(yet) compatible? 

Any suggestions are greatly appreciated.

Thanks in advance,

Andy

PS: I was not able to compile a stable version of dolfin on said supercomputer, 
that's why I had to go with the trunk.

Original issue reported on code.google.com by [email protected] on 18 Jan 2013 at 2:42

Attachments:

installing/plotting problem

Every time i try to install scitools some new problem arises. This time
this is the message i get when i try to run a simple plotting program:

Traceback (most recent call last):
  File "graf.py", line 3, in <module>
    from scitools.easyviz import *
  File
"/usr/local/lib/python2.6/dist-packages/scitools/easyviz/__init__.py", line
1515, in <module>
    exec(cmd)
  File "<string>", line 1, in <module>
  File
"/usr/local/lib/python2.6/dist-packages/scitools/easyviz/gnuplot_.py", line 531
    title=item.getp('legend'), with=withstring,

I don't know what is wrong, but i tried to reinstall almost every thing i
can think of.
Can anybody please help me?

I use ubuntu 9.04 

Original issue reported on code.google.com by [email protected] on 27 Apr 2009 at 6:33

Problem installing Scitools with "Pyzo"

What steps will reproduce the problem?
in the Install Guide it says:

"Use the --prefix option if you want to install SciTools into a different 
location. However, in this case you also have to update the PATH and the 
PYTHONPATH environment variables to reflect this directory."

QUESTION1:
Where do i change PATH and PYTHONPATH (what are these?)
in my case i have installed "pyzo" here C:\pyzo2013b...
QUESTION2:
where do i put "--prefix"

-Can you make an example what the command would be in my case in "cmd"

What is the expected output? What do you see instead?
nothing

What version of the product are you using? On what operating system?
Windows 7 64bit

Please provide any additional information below.
the installation fails also via "pip"
see attached file

Original issue reported on code.google.com by [email protected] on 17 Oct 2013 at 9:20

Attachments:

Movie function crashes in Windows

What steps will reproduce the problem?
1. Using the movie() function from scitools.all

What is the expected output? What do you see instead?
Expected output is a gif file with an animation

What version of the product are you using? On what operating system?
Using Windows Vista.

Please provide any additional information below.

I get an Windows error message telling me that Imagemagick has a problem 
and must be closed. In the command window, it tells me about some convert 
problems "img_0001.eps to easyviz_tmp_0001.png \n convert failed, jumping 
to next file..." 


Original issue reported on code.google.com by [email protected] on 11 Dec 2008 at 2:56

Attachments:

Importing scitools breaks matplotlib

What steps will reproduce the problem?
start ipython and then 
In [1]: x = linspace(-2,2,1000)

In [2]: figure()
Out[2]: <matplotlib.figure.Figure object at 0x03CE2150>

In [3]: plot(x,1-x**2)
Out[3]: [<matplotlib.lines.Line2D object at 0x03CED110>]

In [4]: import scitools
scitools.easyviz backend is matplotlib

In [5]: figure()
Out[5]: <matplotlib.figure.Figure object at 0x03DFE8B0>

In [6]: plot(x,1-x**2)
Out[6]: [<matplotlib.lines.Line2D object at 0x03E8CFF0>]

What is the expected output? What do you see instead?
See scitools1.png for the result of the first plot and scitools2.png for the 
second.  Note that the fonts change significantly, but more alarmingly, the -1 
tick becomes 1.  The really weird thing is that if you get the current axis and 
extract the y tick labels, the label is correctly -1.  As far as I have found, 
this only occurs for the '-1' label.  I only have this issue (and I have it on 
every plot that has a y value of -1) after importing scitools or 
scitools.numpyutils. 


What version of the product are you using? On what operating system?
scitools 0.7 with python-xy 2.6.5.3 on windows xp 32 bit

Please provide any additional information below.


Original issue reported on code.google.com by [email protected] on 1 Oct 2010 at 8:20

Attachments:

small problem caused by 'new' 2.6 keywords ('where' and 'as')

What steps will reproduce the problem?

1. installation w/ this config: (i) gnuplot 1.8 backend; (ii) python 2.6;
(iii) Mac OX 10.5.6; (iv) SciPy 0.70; (v) NumPy 1.30.  The second is the
critical for the purpose.

2. 'testing' the install by  attempting to import the entire module
contents "from scitools.all import *"


Throws an error due to the presence of variable names that are now Python
2.6 keywords ("where" and "as").

This seems to solve the problem just fine:  simple search-and-replace edits
of two files in the "easyviz" directory, common.py and gnuplot_.py.  change
"where" to "where0" and "as" to "as0".  The two edited files are attached;
SciTools now runs just fine with these two files replacing the extant
common.py and gnuplot_.py files.







Original issue reported on code.google.com by [email protected] on 7 Apr 2009 at 11:40

Attachments:

Appropriate venue to discuss coding with scitools/easyviz?

I discovered scitools/easyviz accidently while investigating matplotlib. Is 
there an existing online scitools community/forum where questions about the use 
of scitools can be posted?

Specifically, I want to visualize matrix transformations in 2- and 3-space. 
I've tried finding an existing tool to do this to no avail so now I'm looking 
for Python libraries so I can do it (almost) myself.

I'd like to be able to enter a vector or matrix, see it in 2-space or 3-space, 
enter a transformation vector or matrix, and see the result. For example, enter 
a 3x3 matrix, see the parallelepiped it represents, enter a rotation matrix, 
see the rotated parallelepiped.

Thanks!

Original issue reported on code.google.com by [email protected] on 28 Apr 2011 at 5:54

2D Streamlines

What steps will reproduce the problem?
The following code:

import scitools.easyviz as ev
import numpy as np

umin = -3
umax = 3
vmin = -3
vmax = 3

res = 10

(U,V) = np.meshgrid(np.linspace(umin,umax,res,endpoint=True),
                    np.linspace(vmin,vmax,res,endpoint=True))

sx,sy = np.meshgrid([.5],[.5])
znul = np.zeros((len(U),len(V)))
ev.streamline(U,V,-V,U,sx,sy)

What is the expected output? What do you see instead?
Expect a plot but get the following error message:
  File "C:\Python26\lib\site-packages\scitools\easyviz\common.py", line 3716, in streamline
    h = Streams(*args, **kwargs)
  File "C:\Python26\lib\site-packages\scitools\easyviz\common.py", line 832, in __init__
    self._parseargs(*args)
  File "C:\Python26\lib\site-packages\scitools\easyviz\common.py", line 925, in _parseargs
    self._set_data(x, y, z, u, v, w, sx, sy, sz)
UnboundLocalError: local variable 'sz' referenced before assignment


What version of the product are you using? On what operating system?
Windows Vista x64 scitools.__version__ is '0.7'


Please provide any additional information below.


Original issue reported on code.google.com by [email protected] on 31 Oct 2010 at 7:01

Plotting with Gnuplot

What steps will reproduce the problem?
1. Run the example from the online Easyviz documentation

What is the expected output? What do you see instead?
The plot window appears without the curve !! The axis names are ok, but the
curve does not appear!! :-(

What version of the product are you using? On what operating system?
I'm running the latest version of SciTools on Ubuntu 8.04 (64bit)
I had my plottings running properly for a long time on opensuse 10.3

Please provide any additional information below.


Original issue reported on code.google.com by [email protected] on 10 Aug 2008 at 3:40

StringFunction cannot be used by python 3

What steps will reproduce the problem?
1. download the installer for Windows "SciTools-0.90.win32.exe"
2. double click this exe-file to install
3. in Spyder IPython console, type from scitools.StringFunction import 
StringFunction


What is the expected output? What do you see instead?
The expected output is the StringFunction should be successfully imported.
What I got is an error message, something like

exec s
SyntaxError: invalid syntax


What version of the product are you using? On what operating system?
I am using python 3.4, spyder 2.3.2, SciTools 0.9.0, Operating system is 
windows 7

Please provide any additional information below.


Original issue reported on code.google.com by [email protected] on 19 Dec 2014 at 1:01

Installation from svn fails if backend is vtk

What steps will reproduce the problem?
1. svn checkout http://scitools.googlecode.com/svn/trunk/ scitools-read-only
2. cd scitools-read-only
3. sudo python setup.py install

What is the expected output? What do you see instead?
Instead of the usual setup messages, I get this:

scitools.easyviz backend is vtk
running install
running build
running build_py
running build_scripts
running install_lib
byte-compiling
/usr/local/lib/python2.6/dist-packages/scitools/convergencerate.py to
convergencerate.pyc
Sorry: IndentationError: ('unexpected indent',
('/usr/local/lib/python2.6/dist-packages/scitools/convergencerate.py', 249,
4, '    error_model = staticmethod(error_model)\n'))
running install_scripts
changing mode of /usr/local/bin/pyreport to 755
changing mode of /usr/local/bin/scitools to 755
running install_data
running install_egg_info
Removing /usr/local/lib/python2.6/dist-packages/SciTools-0.6.egg-info
Writing /usr/local/lib/python2.6/dist-packages/SciTools-0.6.egg-info
Traceback (most recent call last):
  File "setup.py", line 75, in <module>
    os.path.join("doc", "man", "man1", "pyreport.1.gz")])],
  File "/usr/lib/python2.6/distutils/core.py", line 152, in setup
    dist.run_commands()
  File "/usr/lib/python2.6/distutils/dist.py", line 975, in run_commands
    self.run_command(cmd)
  File "/usr/lib/python2.6/distutils/dist.py", line 995, in run_command
    cmd_obj.run()
  File "/usr/lib/python2.6/distutils/command/install.py", line 644, in run
    sys_path = map(os.path.normpath, sys.path)
  File "/usr/lib/python2.6/posixpath.py", line 312, in normpath
    initial_slashes = path.startswith('/')
AttributeError: '_tkinter.Tcl_Obj' object has no attribute 'startswith'

What version of the product are you using? On what operating system?
scitools Revision 511
python 2.6.4
Kubuntu 9.10 64bit

Please provide any additional information below.
I had scitools previously installed via the apt package management system.
Before installing the svn-version of scitools, I removed the package with
the normal "apt-get remove python-scitools" command.

The reason for the crash seems to be the setting "backend = vtk" in the
.scitools.cfg-file that allready existed during installation.
However, setting the backend to matplotlib for the installation solved my
problem.

Original issue reported on code.google.com by [email protected] on 22 Jan 2010 at 9:29

Running Easyviz plots with matplotlib from within IDLE causes non-responsive plot window

What steps will reproduce the problem?
1. Run the following from within IDLE using Python 2.7.3(matplotlib as graphing 
backend)

from scitools.std import *

def f(t):
    return t**2*exp(-t**2)

t = linspace(0, 3, 51)
y = f(t)
plot(t, y)

What is the expected output? What do you see instead?
The generated plot window is non-responsive and requires a forced stop of 
pythonw.exe

What version of the product are you using? On what operating system?
Scitools 0.9.0 win32, on Windows 8.

Please provide any additional information below.
Running the same script from the command line is fine.

Original issue reported on code.google.com by [email protected] on 29 Jan 2013 at 8:20

quiver3 error

What steps will reproduce the problem?
1. Running example code from documentation
Example code seems to be broken in the first place, I ran this instead:
x= y= w= linspace(-3, 3, 4)
xv, yv, wv = meshgrid(x, y, w, sparse=False)
quiver3(xv, yv, wv, xv, yv, wv)

What is the expected output? What do you see instead?
This vector field is not very interesting in the first place, but should work.
It gives:
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/local/lib/python2.5/site-packages/scitools/easyviz/common.py", 
line 3963, in quiver3
    return self.quiver(*args, **kwargs)
  File "/local/lib/python2.5/site-packages/scitools/easyviz/common.py", 
line 3483, in quiver
    self._replot()
  File "/local/lib/python2.5/site-packages/scitools/easyviz/gnuplot_.py", 
line 1045, in _replot
    self._g.plot(gdata[0])
  File "/local/lib/python2.5/site-packages/Gnuplot/_Gnuplot.py", line 284, 
in plot
    self._add_to_queue(items)
  File "/local/lib/python2.5/site-packages/Gnuplot/_Gnuplot.py", line 254, 
in _add_to_queue
    self.itemlist.append(PlotItems.Data(item))
  File "/local/lib/python2.5/site-packages/Gnuplot/PlotItems.py", line 589, 
in Data
    utils.write_array(f, data)
  File "/local/lib/python2.5/site-packages/Gnuplot/utils.py", line 97, in 
write_array
    assert set.shape[0] > 0
IndexError: tuple index out of range

What version of the product are you using? On what operating system?
Code gives same error on my local machine as on uio linux station,
uio currently uses version 2.5.2 of python. The plot backend is gnuplot.

Please provide any additional information below.
At least fix the documentation, it tells me to run
v, yv, zv = meshgrid(x, y, sparse=False)…

Original issue reported on code.google.com by [email protected] on 30 Oct 2009 at 8:04

Error using scitools

What steps will reproduce the problem?
1. I have create a simple test .py script where I put the next code:

from scitools.all import *

t = linspace(0, 3, 51)
y = t**2*exp(-t**2)
plot(t, y)

2. After I run the module
3. Than it shows the error

What is the expected output? What do you see instead?
Instead the plot the result was:
Traceback (most recent call last):
  File "E:\Metodo_Algoritmos_Espaciais\Trabalho2\Python_scripts\teste.py", 
line 1, in ?
    from scitools.all import *
  File "C:\PROGRA~1\Arcgis\Phyton\Lib\site-packages\scitools\__init__.py", 
line 67, in ?
    import sys, std
  File "C:\PROGRA~1\Arcgis\Phyton\Lib\site-packages\scitools\std.py", line 
26, in ?
    from scitools.easyviz import *
  File "C:\PROGRA~1\Arcgis\Phyton\Lib\site-
packages\scitools\easyviz\__init__.py", line 1819, in ?
    exec(cmd)
  File "<string>", line 1, in ?
  File "C:\PROGRA~1\Arcgis\Phyton\Lib\site-
packages\scitools\easyviz\gnuplot_.py", line 34, in ?
    from common import *
  File "C:\PROGRA~1\Arcgis\Phyton\Lib\site-
packages\scitools\easyviz\common.py", line 3, in ?
    from scitools.numpyutils import seq, iseq, asarray, ones, zeros, sqrt, 
shape, \
  File "C:\PROGRA~1\Arcgis\Phyton\lib\site-
packages\scitools\numpyutils.py", line 414
    return transpose(basis) if row_wise_storage else basis
                             ^
SyntaxError: invalid syntax

What version of the product are you using? On what operating system?

Python 2.4.1

SciTools 0.6

Windows XP professional

Please provide any additional information below.


Original issue reported on code.google.com by [email protected] on 22 Jul 2009 at 11:22

scitools.std broken with numpy 1.9

NumPy 1.9 (released August 2014, I think) removes oldnumeric backwards 
compatibility. This causes a crash in numpyutils.py e.g. when doing from 
scitools.std import *.

Python 2.7.9 on OSX 10.10.1. py27-scitools installed via MacPorts.

Python 2.7.9 (default, Dec 13 2014, 15:13:49) 
[GCC 4.2.1 Compatible Apple LLVM 6.0 (clang-600.0.56)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>> from scitools.std import *
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/scitools/std.py", line 26, in <module>
    from scitools.easyviz import *
  File "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/scitools/easyviz/__init__.py", line 3431, in <module>
    exec(cmd)
  File "<string>", line 1, in <module>
  File "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/scitools/easyviz/matplotlib_.py", line 29, in <module>
    from common import *
  File "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/scitools/easyviz/common.py", line 5, in <module>
    from scitools.numpytools import arrmin, arrmax, NumPyArray
  File "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/scitools/numpytools.py", line 261, in <module>
    (e, __name__))
ImportError: No module named oldnumeric.mlab
numpy import failed!
see doc of scitools.numpytools module for how to choose Numeric instead

Original issue reported on code.google.com by [email protected] on 20 Jan 2015 at 1:44

minor bug from ps2mpeg

What steps will reproduce the problem?
1. have "ppmtompeg" installed instead of "mpeg_encode".
2. execute "ps2mpeg.py *.ps"
3.

What is the expected output? What do you see instead?
"ppmtompeg" is expected to be available.
Neither "ppmtompeg" or "mpeg_encode" was found.

What version of the product are you using? On what operating system?
scitools-0.6 on ubuntu 9.04 x86_64

Please provide any additional information below.
My Solution:
 Change line 312 in file "scitools"
  from "if not findprograms('mpeg_encode') or not 
findprograms('ppmtompeg'):"
  to "if not findprograms('mpeg_encode') and not 
findprograms('ppmtompeg'):"





Original issue reported on code.google.com by [email protected] on 22 Jan 2010 at 5:01

Call to compute_histogram returns 'new=True' error

What steps will reproduce the problem?
1.  Install of Python2.6, NumPy 1.5.1 Win32SuperPack,SciPy0.8.0,SciTools 0.7 on 
Win7 64.  Fresh intall of all Python components today.

2.  Call to 
3.

What is the expected output? What do you see instead?
I expected to see a histogram (e.g. Langtangen et. al. 'Primer' p. 421).
Instead I get an error message:
>>> x,y = compute_histogram(tempList,nbins=20)
Traceback (most recent call last):
  File "U:\04_Programming\ShastaXS\objXS_V1.py", line 1, in <module>
    import csv, subprocess, sys, os, os.path
  File "c:\Python26\Lib\site-packages\scitools\numpyutils.py", line 1078, in compute_histogram
    y0, bin_edges = histogram(samples, bins=nbins, normed=True, new=True)
TypeError: histogram() got an unexpected keyword argument 'new'

A quick google search shows that this type of error has to do with a mismatch 
of NumPy and other componenents.  The 'new' argument is an addition to the 
call. 

Looking at the SciTools installing page, I believe I have the correct 
dependancies matched.

What version of the product are you using? On what operating system?
see above

Please provide any additional information below.
grateful for assistance!


Original issue reported on code.google.com by [email protected] on 13 Dec 2010 at 11:23

IndexError in aplotter.plot(). Very weird behaviour!

So far I love the aplotter.plot() function. Today I tried to use dates on the 
x-axis. Unfortunately it doesn't seem to support dates. So I then tried using 
years as simple integers:

from scitools.aplotter import plot
x = [2003,2004,2005,2006,2007]
y = [2,6,4,11,2]
plot(x,y)

This got me the following error:

File "/usr/local/lib/python2.7/dist-packages/scitools/aplotter.py", line 573, 
in plot
    r = p.plot_double(args[0],args[1],**limit_flags)
File "/usr/local/lib/python2.7/dist-packages/scitools/aplotter.py", line 501, 
in plot_double
    self.plot_labels(output_buffer, plot_data)
File "/usr/local/lib/python2.7/dist-packages/scitools/aplotter.py", line 337, 
in plot_labels
    output_buffer[x_zero_coord][min_y_coord] = "+"
IndexError: list index out of range

The weird thing is that when I make the last year (2007) a lot higher, it does 
work:

x = [2003,2004,2005,2006,8000]
y = [2,6,4,11,2]
plot(x,y)

After some trial and (a lot of) error(s) I found that the critical number is 
3725. This works:

x = [2003,2004,2005,2006,3725]
y = [2,6,4,11,2]
plot(x,y)

But this doesn't work:

x = [2003,2004,2005,2006,3724]
y = [2,6,4,11,2]
plot(x,y)

I have absolutely no idea why this error occurs below this specific number. 
Does anybody know how I could make this work?

What version of the product are you using? On what operating system?
I am running scitools version 0.9.0 with Python 2.7 on Ubuntu 12.04

Original issue reported on code.google.com by [email protected] on 22 Jun 2013 at 2:38

Backend issue with Gnuplot

What steps will reproduce the problem?
1. Open python in terminal
2. Test successful installation of scitools: from scitools.all import * 
3. Error: scitools.easyviz backend is gnuplot

What is the expected output? What do you see instead?
-

What version of the product are you using? On what operating system?
Scitools v0.6 on Mac OS X Snow Leopard (10.6.2)

Please provide any additional information below.
Having issues getting scitools installed with Gnuplot...

I have installed scitools via the installation instructions, however anytime I 
try to import the 
scitools module I get the error "scitools.easyviz backend is gnuplot."

I looked up the documentation for scitools online 
(http://code.google.com/p/scitools/wiki/EasyvizDocumentation#Check_You_Backends!
). 
Gnuplot is working correctly. The Gnuplot exec file is located in 
/opt/local/bin, which is indeed 
registered to my PATH variable. Also, I have installed gnuplot.py and 
everything appears okay on 
that end.

Not sure what the issue is, this is my first time trying to use scitools. I 
tried searching online for 
a solution but came up short.

Thanks!

Original issue reported on code.google.com by [email protected] on 4 Jan 2010 at 4:38

Easyviz links broken

What steps will reproduce the problem?
1. Go to http://scitools.googlecode.com/hg/doc/api/html/easyviz.html for 
example.
2. Note that the images are missing.

What is the expected output? What do you see instead?
Actual images. Placeholders.

Original issue reported on code.google.com by [email protected] on 13 Dec 2012 at 5:04

Problem installing scitools-0.8

I'm really excited about going through "Python scriptinf ro computaional 
science", but I'm having some problems installing the recommended software.  
Any help would be appreciated-John

What steps will reproduce the problem?
1.python setup.py install


What is the expected output? 
something along the lines of ... scitools installed...

What do you see instead?

default scitools.easyviz backend becomes matplotlib
(could be set by the --easyviz_backend option to setup.py)

Traceback (most recent call last):
  File "setup.py", line 76, in ?
    sys.path.insert(0, os.path.join('lib')); import scitools
  File "lib/scitools/__init__.py", line 78, in ?
    import sys, std
  File "lib/scitools/std.py", line 26, in ?
    from scitools.easyviz import *
  File "lib/scitools/easyviz/__init__.py", line 2734, in ?
    exec(cmd)
  File "<string>", line 1, in ?
  File "lib/scitools/easyviz/matplotlib_.py", line 29, in ?
    from common import *
  File "lib/scitools/easyviz/common.py", line 3, in ?
    from scitools.numpyutils import seq, iseq, asarray, ones, zeros, sqrt, shape, \
  File "lib/scitools/numpyutils.py", line 376
    return transpose(basis) if row_wise_storage else basis
                             ^
SyntaxError: invalid syntax

What version of the product are you using? 

scitools 0.8
Python 2.4.3 compiled with GCC 4.1.2 20080704 


On what operating system?
(Red Hat 4.1.2-50)] on linux2


Please provide any additional information below.

pynumy, Gnuplot and matplotlib  have been installed successfully.


Original issue reported on code.google.com by [email protected] on 14 Jul 2011 at 8:10

Problem with volumetric slice plot

I would like to implement a script for representation of a 4D sample, using 
python language. Then I tested the script of Volumetric Slice Plot shown in 
documentation of Easyviz. The program compiles without wrongs, but the graph 
doesn't appear. I used this script: 



from scitools.std import * 

x, y, z, v = flow()
setp(interactive=False)
h = contourslice(x, y, z, v, seq(1,9), [], [0], linspace(-8,2,10))
axis([0, 10, -3, 3, -3, 3])
daspect([1, 1, 1])
ax = gca()
ax.setp(fgcolor=(1,1,1), bgcolor=(0,0,0))
box('on')
view(3)
show()



What version of the product are you using? On what operating system?
I use Ubuntu 12.4 and the version of python is 2.7.3 

Thak you!!


Original issue reported on code.google.com by [email protected] on 2 Jun 2013 at 8:34

from scitools.easyviz.vtk_ import * produces TypeError: function takes exactly 1 argument (2 given) for line 1185 fig._g.SetSize(width, height)

What steps will reproduce the problem?
1.
2.
3.

What is the expected output? What do you see instead?


What version of the product are you using? On what operating system?
Python 2.5, Windows XP

Please provide any additional information below.
from scitools.easyviz.vtk_ import * produces TypeError: function takes 
exactly 1 argument (2 given) for line 1185 fig._g.SetSize(width, height)

from the statements:
                try: width, height = fig.getp('size')
                except TypeError: width, height = (640, 480)
                fig._g.SetSize(width, height)
looks like it should be fine...

Original issue reported on code.google.com by [email protected] on 28 Jan 2009 at 11:29

Attachments:

install

What steps will reproduce the problem?
1. python setup.py install
2. export PYTHONPATH and PATH ok
3. from scitools.all import *

What is the expected output? What do you see instead?

<type 'exceptions.ImportError'>: No module named all


What version of the product are you using? On what operating system?

Opensuse 10.3

Please provide any additional information below.

 ...

Original issue reported on code.google.com by [email protected] on 3 Jul 2008 at 11:46

Attachments:

plot does not work

What steps will reproduce the problem?
1.import numpy as np
import matplotlib.pyplot as plt
from numpy import *
from scitools.std import *
from matplotlib.pylab import *

def f(t):
    return t**2*exp(-t**2)

t = linspace(0,3,31)
y = f(t)

plot(t, y)
show()

2.
3.

What is the expected output? What do you see instead?
Expect to see a plot of t^2 exp(-t^2) instead get a blank screen.
What version of the product are you using? On what operating system?
sctools version 0.9.0 running on Ubuntu LTS 12.04 64bit

Please provide any additional information below.
removing scitools.std import and running the script works fine.


Original issue reported on code.google.com by [email protected] on 19 Nov 2013 at 12:36

Trying to install a Scitools Python pkg via 'pip install' but getting error

What steps will reproduce the problem?
1.Go to Windows command prompt
2.Change directory to the 'Anaconda' directory (since I use their python 
Distribution and pkgs)
3. Type 'pip install scitools

What is the expected output? What do you see instead?
Expected out put is to have scitools downloaded into Python within Anaconda

I see instead this (also see attachment): http://i.imgur.com/kYSMdRZ.gif


What version of the product are you using? On what operating system?
I am using Windows 7

Please provide any additional information below.

Original issue reported on code.google.com by [email protected] on 10 Sep 2013 at 12:58

Attachments:

text disappears with hardcopy

What steps will reproduce the problem?
1. Plot a figure
2. Add a text: text(x,y,'text')
3. Save figure: hardcopy('file')

What is the expected output? What do you see instead?
The text is not visible on the output file.

What version of the product are you using? On what operating system?
* scitools 0.8
* Linux 2.6.35.11-83.fc14.i686

Please provide any additional information below.
I use the matplotlib backend 

Original issue reported on code.google.com by [email protected] on 25 Mar 2011 at 3:32

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.