print('\n\n'+WARN+72*'='+'\n'+SPCE+'The matplotlib version you are using is not supported.\n'+SPCE+'Most of myplotlib should work, but some stuff may not.\n'+SPCE+'ex: expect an error with test203\n'+SPCE+72*'='+'\n\n')
ifD_HIERARCHYin('CLIENT','client'):
print(INFO+'Import myplotlib as a client.')
else:
print(INFO+'Import myplotlib for local use.')
# Test mpl version:
frommatplotlibimport__version__asmplvers
# matplotlib
frommatplotlib.pyplotimportfigure
frommatplotlib.pyplotimportrc
frommatplotlib.pyplotimportshow,draw,ion,ioff,clf
frommatplotlib.pyplotimportcloseasmpclose
frommatplotlib.pyplotimportfignum_exists,savefig
frommatplotlib.axesimportAxes
frommatplotlib.figureimportFigure
frommatplotlibimportis_interactive
#from matplotlib import rcParams
frommatplotlibimportuse
ifint(mplvers.replace('.','')[:3])<143:
print('\n\n'+WARN+72*'='+'\n'+SPCE+'The matplotlib version you are using is not supported.\n'+SPCE+'Most of myplotlib should work, but some stuff may not.\n'+SPCE+'ex: expect an error with test203\n'+SPCE+72*'='+'\n\n')
# matplotlib
frommatplotlib.pyplotimportfigure
frommatplotlib.pyplotimportrc
frommatplotlib.pyplotimportshow,draw,ion,ioff,clf
frommatplotlib.pyplotimportcloseasmpclose
frommatplotlib.pyplotimportfignum_exists,savefig
frommatplotlib.axesimportAxes
frommatplotlib.figureimportFigure
frommatplotlibimportis_interactive
frommatplotlibimportuse
elifD_HIERARCHYin('SERVER','server'):
print(INFO+'Import myplotlib as a server.')
else:
print(SEVR+'the value of D_HIERARCHY has to be SERVER or CLIENT')
raiseImportError
# myplotlib
from.myDataimportMyData
# GLOBAL VARIABLE ------------------------------------------------------