-# Copyright (C) 2010-2015 CEA/DEN, EDF R&D
+# Copyright (C) 2010-2016 CEA/DEN, EDF R&D
#
# This library is free software; you can redistribute it and/or
# modify it under the terms of the GNU Lesser General Public
from paravistest import tablesdir
from presentations import *
-import pvserver as paravis
import pvsimple
-
# 1. Import tables from file
file_path = tablesdir + "tables_test.xls"
-table_reader = pvsimple.TableReader(FileName=file_path)
+table_reader = pvsimple.CSVReader(FileName=file_path)
if table_reader is None:
print "FAILED to import tables from tables_test.xls file."
xy_view = pvsimple.CreateXYPlotView()
# 3. Display curves in the viewer
-table_reader.TableNumber = 1
xy_rep = pvsimple.Show(table_reader)
xy_rep.AttributeType = 'Row Data'
xy_rep.UseIndexForXAxis = 0
xy_rep.SeriesVisibility = [xy_rep.XArrayName, '0']
xy_rep.SeriesVisibility = ['vtkOriginalIndices', '0']
pvsimple.Render(xy_view)
-