Demo plots are blank

25 views
Skip to first unread message

wxprof

unread,
Aug 27, 2012, 4:37:47 PM8/27/12
to scit...@googlegroups.com
I installed SciTools 0.9.0 from source on my Linux machine (Red Hat 4.1.2 x86_64 running Python 2.7.2) specifically for the contourslice functionality.  SciTools works well on many of the demonstration plots in the examples directory that came with the tarball.  Unfortunately, contourslice_demo1.py produces two blank plots showing only the axes.  The flow() function produces reasonable numbers for x,y,z, and v.  A possibly related error occurs with contourslice_demo2.py:

Traceback (most recent call last):
  File "contourslice_demo2.py", line 28, in <module>
    show()
  File "/usr/local/epd-7.2-2-rh5-x86_64/lib/python2.7/site-packages/scitools/easyviz/common.py", line 4402, in show
    self._replot()
  File "/usr/local/epd-7.2-2-rh5-x86_64/lib/python2.7/site-packages/scitools/easyviz/matplotlib_.py", line 978, in _replot
    self._set_axis_props(ax)
  File "/usr/local/epd-7.2-2-rh5-x86_64/lib/python2.7/site-packages/scitools/easyviz/matplotlib_.py", line 394, in _set_axis_props
    self._set_daspect(ax)
  File "/usr/local/epd-7.2-2-rh5-x86_64/lib/python2.7/site-packages/scitools/easyviz/matplotlib_.py", line 220, in _set_daspect
    r = float(xmax-xmin)/(ymax-ymin)
TypeError: unsupported operand type(s) for -: 'NoneType' and 'NoneType'

Scitools, numpy, scipy, latex, and matplotlib all passed the diagnostic.py test, but the others failed.  Any thoughts on what I am missing?

Johannes Ring

unread,
Aug 28, 2012, 12:16:35 AM8/28/12
to scit...@googlegroups.com
On Mon, Aug 27, 2012 at 10:37 PM, wxprof <cgod...@unca.edu> wrote:
> Scitools, numpy, scipy, latex, and matplotlib all passed the diagnostic.py
> test, but the others failed. Any thoughts on what I am missing?

Yes, contourslice is only supported by the VTK backend, so you will
need VTK with Python bindings. Once VTK is in place, run the
contourslice demo by

SCITOOLS_easyviz_backend=vtk python contourslice_demo1.py

or by setting the backend to vtk in scitools.cfg.

Johannes

wxprof

unread,
Aug 28, 2012, 4:30:20 PM8/28/12
to scit...@googlegroups.com
My installation of VTK needed some adjustments, but that did the trick.  Thanks!

Chris

Reply all
Reply to author
Forward
0 new messages