cannot run slice_demo1.py under examples

4 views
Skip to first unread message

gma

unread,
Dec 23, 2009, 10:59:25 AM12/23/09
to scitools
Hi,

I cannot run slice_demo1.py under examples directory. I had gnuplot
installed under /usr/bin. I am not sure why 'slice_' in not
implemented. Do I need to install other plotpackage? Currently I have
gnuplot and Matplot. Thanks,

The error message I had are:

scitools.easyviz backend is gnuplot
Traceback (most recent call last):
File "./slice_demo1.py", line 15, in <module>
slice_(x,y,z,v,xslice,yslice,zslice,grid='off')
File "/usr/local/lib/python2.6/dist-packages/scitools/easyviz/
common.py", line 4069, in slice_
self._replot()
File "/usr/local/lib/python2.6/dist-packages/scitools/easyviz/
gnuplot_.py", line 1159, in _replot
self._add_slices(item)
File "/usr/local/lib/python2.6/dist-packages/scitools/easyviz/
gnuplot_.py", line 1027, in _add_slices
raise NotImplementedError(msg)
NotImplementedError: Currently no support for 'slice_' in the Gnuplot
backend.

Johannes Ring

unread,
Dec 30, 2009, 3:15:37 AM12/30/09
to scit...@googlegroups.com
Hi,

sorry for the late reply.

On Wed, Dec 23, 2009 at 4:59 PM, gma <contac...@gmail.com> wrote:
> Hi,
>
> I cannot run slice_demo1.py under examples directory.  I had gnuplot
> installed under /usr/bin.  I am not sure why 'slice_' in not
> implemented. Do I need to install other plotpackage? Currently I have
> gnuplot and Matplot. Thanks,

Yes, you need to install VTK with Python support in order to use the
slice_ command. On Debian based systems you can do this simply by
installing the python-vtk package. You can then run slice_demo1.py
like this:

python slice_demo1.py --SCITOOLS_easyviz_backend vtk

Johannes

Gang Ma

unread,
Dec 30, 2009, 7:42:51 PM12/30/09
to scit...@googlegroups.com
Great!Johannes. It seems work now. The problem is that the graph disapeared quickly after displaying. How to make it stay there. Many thanks.

Happy New Year!

regards,

gma





--

You received this message because you are subscribed to the Google Groups "scitools" group.
To post to this group, send email to scit...@googlegroups.com.
To unsubscribe from this group, send email to scitools+u...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/scitools?hl=en.



Johannes Ring

unread,
Dec 31, 2009, 3:45:34 AM12/31/09
to scit...@googlegroups.com
Hi,

see the troubleshooting section in the Easyviz documentation:

http://code.google.com/p/scitools/wiki/EasyvizDocumentation#The_Plot_Window_Disappears_Quickly

Happy New Year!

Johannes

Reply all
Reply to author
Forward
0 new messages