Commit 723e97ef authored by Yori 'AGy' Fournier's avatar Yori 'AGy' Fournier
Browse files

make the import with relative path to ensure which module to use

parent a9619c64
......@@ -98,36 +98,36 @@ rc('figure', dpi = 75.0)
# FUNCTIONS ------------------------------------------------------------
# MyAxes: Overlay on matplotlib.Axes class
from myAxes import MyAxes
from .myAxes import MyAxes
# MyIOs.*: input/output function for testing
from myIOs import readStupidData, readStupidData2
from .myIOs import readStupidData, readStupidData2
# MyFig: Overlay on matplotlib.Figure class
from myFig import MyFig
from .myFig import MyFig
# MyFig: Overlay on matplotlib.FigureManager class
if rcParams['backend'] == u'TkAgg':
from myWin_TkAgg import MyWin_TkAgg as MyWin
from .myWin_TkAgg import MyWin_TkAgg as MyWin
elif rcParams['backend'] == u'GTKAgg':
from myWin_GTKAgg import MyWin_GTKAgg as MyWin
from .myWin_GTKAgg import MyWin_GTKAgg as MyWin
elif rcParams['backend'] == u'WXAgg':
from myWin_WXAgg import MyWin_WXAgg as MyWin
from .myWin_WXAgg import MyWin_WXAgg as MyWin
else:
print(SEVR + "The backend you choosed is not supported interactive mode not available")
# myTool.*: interface functions to use myplotlib interactively
from myTool import print2file, print2screen, printListCurrentWindows
from myTool import getWindow, getFigOnWindow, drawFigOnWindow
from myTool import closeWindow, closeAllWindows
from .myTool import print2file, print2screen, printListCurrentWindows
from .myTool import getWindow, getFigOnWindow, drawFigOnWindow
from .myTool import closeWindow, closeAllWindows
# MyFig4Test: Overlay of Figure for testing
from myFig4Test import MyFig4Test
from .myFig4Test import MyFig4Test
# some plotting routine for testing
from myPlot4Test import somePlottingRoutine
from .myPlot4Test import somePlottingRoutine
from test import myTest
from test import test400, test300, test401, test402
from .test import myTest
from .test import test400, test300, test401, test402
testList = [test400, test300, test401, test402]
......@@ -31,8 +31,8 @@
#
#
# IMPORT ---------------------------------------------------------------
from __init__ import INFO, SPCE, DBUG
from __init__ import myTest, testList
from .__init__ import INFO, SPCE, DBUG
from .__init__ import myTest, testList
import sys
import getopt
......
......@@ -42,9 +42,9 @@
#
#
# IMPORT ---------------------------------------------------------------
from myplotlib import SEVR, DBUG
from myplotlib import Axes
from myplotlib import rcParams
from ..myplotlib import SEVR, DBUG
from ..myplotlib import Axes
from ..myplotlib import rcParams
# Class MyAxes Overwriting Matplotlib.figure.Axes
......
......@@ -65,10 +65,10 @@
#
#
# IMPORT ---------------------------------------------------------------
from myplotlib import D_FIGSIZE, D_INPUTARG, D_DEBUG, D_REFORMAT, D_FORMATTED
from myplotlib import DBUG, SEVR, INFO, SPCE, WARN
from myplotlib import G_RAWDATAS
from myplotlib import Figure, MyAxes
from ..myplotlib import D_FIGSIZE, D_INPUTARG, D_DEBUG, D_REFORMAT, D_FORMATTED
from ..myplotlib import DBUG, SEVR, INFO, SPCE, WARN
from ..myplotlib import G_RAWDATAS
from ..myplotlib import Figure, MyAxes
# Class MyFig Overwriting Matplotlib.figure.Figure
......
......@@ -22,7 +22,7 @@
#
#
# IMPORT ---------------------------------------------------------------
from myplotlib import MyFig
from ..myplotlib import MyFig
# Class MyFig4Test
......
......@@ -29,10 +29,10 @@
#
#
# IMPORT ---------------------------------------------------------------
from myplotlib import DBUG
from myplotlib import D_IPATH
from myplotlib import MyData
from myplotlib import G_RAWDATAS
from ..myplotlib import DBUG
from ..myplotlib import D_IPATH
from ..myplotlib import MyData
from ..myplotlib import G_RAWDATAS
# READ STUPID DATA -----------------------------------------------------
......
......@@ -22,8 +22,8 @@
# ======================================================================
#
# IMPORT ---------------------------------------------------------------
from myplotlib import readStupidData, print2file, MyFig4Test
from myplotlib import INFO, SEVR
from ..myplotlib import readStupidData, print2file, MyFig4Test
from ..myplotlib import INFO, SEVR
# DEFINE SOME STANDARD SCRIPT ------------------------------------------
......
......@@ -34,15 +34,15 @@
# ======================================================================
#
# IMPORT ---------------------------------------------------------------
from myplotlib import D_OPATH, D_OFORMAT
from myplotlib import G_RAWDATAS, _G_WINDOWS
from myplotlib import INFO, SEVR, WARN, SPCE
from ..myplotlib import D_OPATH, D_OFORMAT
from ..myplotlib import G_RAWDATAS, _G_WINDOWS
from ..myplotlib import INFO, SEVR, WARN, SPCE
from myplotlib import ion, ioff, is_interactive
from ..myplotlib import ion, ioff, is_interactive
from myplotlib import MyWin, MyFig
from ..myplotlib import MyWin, MyFig
from myplotlib import np
from ..myplotlib import np
# TOOL FUNCTION FOR READING EXISTING DATA ------------------------------
......
......@@ -51,10 +51,10 @@
# ======================================================================
#
# IMPORT ---------------------------------------------------------------
from myplotlib import INFO, SEVR, WARN, DBUG, SPCE
from myplotlib import rcParams
from myplotlib import _G_WINDOWS
from myplotlib import np
from ..myplotlib import INFO, SEVR, WARN, DBUG, SPCE
from ..myplotlib import rcParams
from ..myplotlib import _G_WINDOWS
from ..myplotlib import np
# For the GTKAgg backend
from matplotlib.backends.backend_gtkagg import FigureManagerGTKAgg, FigureCanvasGTKAgg
......
......@@ -51,10 +51,10 @@
# ======================================================================
#
# IMPORT ---------------------------------------------------------------
from myplotlib import INFO, SEVR, WARN, DBUG, SPCE
from myplotlib import rcParams
from myplotlib import _G_WINDOWS
from myplotlib import np
from ..myplotlib import INFO, SEVR, WARN, DBUG, SPCE
from ..myplotlib import rcParams
from ..myplotlib import _G_WINDOWS
from ..myplotlib import np
# For the backend
from matplotlib.backends.backend_tkagg import FigureManagerTkAgg, FigureCanvasTkAgg
......
......@@ -51,10 +51,10 @@
# ======================================================================
#
# IMPORT ---------------------------------------------------------------
from myplotlib import INFO, SEVR, WARN, DBUG, SPCE
from myplotlib import rcParams
from myplotlib import _G_WINDOWS
from myplotlib import np
from ..myplotlib import INFO, SEVR, WARN, DBUG, SPCE
from ..myplotlib import rcParams
from ..myplotlib import _G_WINDOWS
from ..myplotlib import np
# For the WXAgg backend
from matplotlib.backends.backend_wxagg import FigureCanvasWxAgg
......
from myplotlib import readStupidData, readStupidData2
from myplotlib import MyFig, MyWin
from myplotlib import SEVR, WARN, DBUG
from myplotlib import _G_WINDOWS
from ..myplotlib import readStupidData, readStupidData2
from ..myplotlib import MyFig, MyWin
from ..myplotlib import SEVR, WARN, DBUG
from ..myplotlib import _G_WINDOWS
# TESTER
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment