Salome HOME
Updated copyright comment
[modules/gui.git] / tools / CurvePlot / src / python / controller / __init__.py
index 62d412f2d632bb892c6ba1a46c09a5c2392f994b..8e40d949bb495024817fea37c4f662f8857da988 100644 (file)
@@ -1,3 +1,22 @@
+# Copyright (C) 2016-2024  CEA, EDF
+#
+# This library is free software; you can redistribute it and/or
+# modify it under the terms of the GNU Lesser General Public
+# License as published by the Free Software Foundation; either
+# version 2.1 of the License, or (at your option) any later version.
+#
+# This library is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
+# Lesser General Public License for more details.
+#
+# You should have received a copy of the GNU Lesser General Public
+# License along with this library; if not, write to the Free Software
+# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA
+#
+# See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
+#
+
 """
 CurvePlot Python package.
 """
@@ -6,19 +25,19 @@ try:
   # and the Bitstream font which is the first one by default. Try to use DejaVu which is more 
   # comprehensive.
   ## !!Order of the sequence below is highly sensitive!!
-  import pyqtside   # will trigger the PySide/PyQt4 switch
+  import pyqtside   # will trigger the PySide/PyQt switch
   import matplotlib
-  matplotlib.use('Qt4Agg')
-  import matplotlib.pyplot as plt  # must come after the PySide/PyQt4 switch!
+  matplotlib.use('Qt5Agg')
+  import matplotlib.pyplot as plt  # must come after the PySide/PyQt switch!
   plt.rcParams['font.sans-serif'].insert(0, "DejaVu Sans")
 except:
-  print("Warning: could not switch matplotlib to 'Qt4agg' backend. Some characters might be displayed improperly!")
+  print("Warning: could not switch matplotlib to 'Qt5agg' backend. Some characters might be displayed improperly!")
 
 from .PlotController import PlotController
-from TableModel import TableModel
-from CurveModel import CurveModel
-from PlotManager import PlotManager
-from XYPlotSetModel import XYPlotSetModel
+from .TableModel import TableModel
+from .CurveModel import CurveModel
+from .PlotManager import PlotManager
+from .XYPlotSetModel import XYPlotSetModel
 
 ## The static API of PlotController is the main interface of the package and is hence exposed at package level:
 AddCurve = PlotController.AddCurve