Could you please add
import matplotlib
matplotlib.use('agg')
before "import matplotlib.pyplot as plt" in gsplot.py and pdfplot.py ?
Otherwise, the following issue appear.
$ mpiexec -n 1 python3 plot/gsplot.py -i gs.bp -o BPgsplot/img
GS Plot step 0 processing simulation output step 0 or computation step 10
/soft/anaconda3/5.2.0/lib/python3.6/importlib/_bootstrap.py:219: RuntimeWarning: numpy.ufunc size changed, may indicate binary incompatibility. Expected 216, got 192
return f(*args, kwds)
Traceback (most recent call last):
File "plot/gsplot.py", line 139, in
Plot2D ('yz', data, args, fullshape, sim_step[0], fontsize)
File "plot/gsplot.py", line 42, in Plot2D
fig = plt.figure(1, figsize=(8,8))
File "/soft/anaconda3/5.2.0/lib/python3.6/site-packages/matplotlib/pyplot.py", line 548, in figure
kwargs)
File "/soft/anaconda3/5.2.0/lib/python3.6/site-packages/matplotlib/backend_bases.py", line 161, in new_figure_manager
return cls.new_figure_manager_given_figure(num, fig)
File "/soft/anaconda3/5.2.0/lib/python3.6/site-packages/matplotlib/backend_bases.py", line 167, in new_figure_manager_given_figure
canvas = cls.FigureCanvas(figure)
File "/soft/anaconda3/5.2.0/lib/python3.6/site-packages/matplotlib/backends/backend_qt5agg.py", line 24, in init
super(FigureCanvasQTAgg, self).init(figure=figure)
File "/soft/anaconda3/5.2.0/lib/python3.6/site-packages/matplotlib/backends/backend_qt5.py", line 234, in init
_create_qApp()
File "/soft/anaconda3/5.2.0/lib/python3.6/site-packages/matplotlib/backends/backend_qt5.py", line 125, in _create_qApp
raise RuntimeError('Invalid DISPLAY variable')
RuntimeError: Invalid DISPLAY variable
$ mpiexec -n 2 python3 plot/pdfplot.py -i pdf.bp -o BPpdfplot/fig
PDF Plot step 0 processing analysis step 0 simulation step 10
/soft/anaconda3/5.2.0/lib/python3.6/importlib/_bootstrap.py:219: RuntimeWarning: numpy.ufunc size changed, may indicate binary incompatibility. Expected 216, got 192
return f(*args, *kwds)
/soft/anaconda3/5.2.0/lib/python3.6/importlib/_bootstrap.py:219: RuntimeWarning: numpy.ufunc size changed, may indicate binary incompatibility. Expected 216, got 192
return f(args, kwds)
Traceback (most recent call last):
File "plot/pdfplot.py", line 113, in
PlotPDF (pdf, bins, args, start, count, sim_step[0], fontsize)
File "plot/pdfplot.py", line 35, in PlotPDF
fig = plt.figure(1, figsize=(8,8))
File "/soft/anaconda3/5.2.0/lib/python3.6/site-packages/matplotlib/pyplot.py", line 548, in figure
kwargs)
File "/soft/anaconda3/5.2.0/lib/python3.6/site-packages/matplotlib/backend_bases.py", line 161, in new_figure_manager
return cls.new_figure_manager_given_figure(num, fig)
File "/soft/anaconda3/5.2.0/lib/python3.6/site-packages/matplotlib/backend_bases.py", line 167, in new_figure_manager_given_figure
canvas = cls.FigureCanvas(figure)
File "/soft/anaconda3/5.2.0/lib/python3.6/site-packages/matplotlib/backends/backend_qt5agg.py", line 24, in init
super(FigureCanvasQTAgg, self).init(figure=figure)
File "/soft/anaconda3/5.2.0/lib/python3.6/site-packages/matplotlib/backends/backend_qt5.py", line 234, in init
_create_qApp()
File "/soft/anaconda3/5.2.0/lib/python3.6/site-packages/matplotlib/backends/backend_qt5.py", line 125, in _create_qApp
raise RuntimeError('Invalid DISPLAY variable')
RuntimeError: Invalid DISPLAY variable
Could you please add import matplotlib matplotlib.use('agg') before "import matplotlib.pyplot as plt" in gsplot.py and pdfplot.py ? Otherwise, the following issue appear.
$ mpiexec -n 1 python3 plot/gsplot.py -i gs.bp -o BPgsplot/img GS Plot step 0 processing simulation output step 0 or computation step 10 /soft/anaconda3/5.2.0/lib/python3.6/importlib/_bootstrap.py:219: RuntimeWarning: numpy.ufunc size changed, may indicate binary incompatibility. Expected 216, got 192 return f(*args, kwds) Traceback (most recent call last): File "plot/gsplot.py", line 139, in
Plot2D ('yz', data, args, fullshape, sim_step[0], fontsize)
File "plot/gsplot.py", line 42, in Plot2D
fig = plt.figure(1, figsize=(8,8))
File "/soft/anaconda3/5.2.0/lib/python3.6/site-packages/matplotlib/pyplot.py", line 548, in figure
kwargs)
File "/soft/anaconda3/5.2.0/lib/python3.6/site-packages/matplotlib/backend_bases.py", line 161, in new_figure_manager
return cls.new_figure_manager_given_figure(num, fig)
File "/soft/anaconda3/5.2.0/lib/python3.6/site-packages/matplotlib/backend_bases.py", line 167, in new_figure_manager_given_figure
canvas = cls.FigureCanvas(figure)
File "/soft/anaconda3/5.2.0/lib/python3.6/site-packages/matplotlib/backends/backend_qt5agg.py", line 24, in init
super(FigureCanvasQTAgg, self).init(figure=figure)
File "/soft/anaconda3/5.2.0/lib/python3.6/site-packages/matplotlib/backends/backend_qt5.py", line 234, in init
_create_qApp()
File "/soft/anaconda3/5.2.0/lib/python3.6/site-packages/matplotlib/backends/backend_qt5.py", line 125, in _create_qApp
raise RuntimeError('Invalid DISPLAY variable')
RuntimeError: Invalid DISPLAY variable
$ mpiexec -n 2 python3 plot/pdfplot.py -i pdf.bp -o BPpdfplot/fig PDF Plot step 0 processing analysis step 0 simulation step 10 /soft/anaconda3/5.2.0/lib/python3.6/importlib/_bootstrap.py:219: RuntimeWarning: numpy.ufunc size changed, may indicate binary incompatibility. Expected 216, got 192 return f(*args, *kwds) /soft/anaconda3/5.2.0/lib/python3.6/importlib/_bootstrap.py:219: RuntimeWarning: numpy.ufunc size changed, may indicate binary incompatibility. Expected 216, got 192 return f(args, kwds) Traceback (most recent call last): File "plot/pdfplot.py", line 113, in
PlotPDF (pdf, bins, args, start, count, sim_step[0], fontsize)
File "plot/pdfplot.py", line 35, in PlotPDF
fig = plt.figure(1, figsize=(8,8))
File "/soft/anaconda3/5.2.0/lib/python3.6/site-packages/matplotlib/pyplot.py", line 548, in figure
kwargs)
File "/soft/anaconda3/5.2.0/lib/python3.6/site-packages/matplotlib/backend_bases.py", line 161, in new_figure_manager
return cls.new_figure_manager_given_figure(num, fig)
File "/soft/anaconda3/5.2.0/lib/python3.6/site-packages/matplotlib/backend_bases.py", line 167, in new_figure_manager_given_figure
canvas = cls.FigureCanvas(figure)
File "/soft/anaconda3/5.2.0/lib/python3.6/site-packages/matplotlib/backends/backend_qt5agg.py", line 24, in init
super(FigureCanvasQTAgg, self).init(figure=figure)
File "/soft/anaconda3/5.2.0/lib/python3.6/site-packages/matplotlib/backends/backend_qt5.py", line 234, in init
_create_qApp()
File "/soft/anaconda3/5.2.0/lib/python3.6/site-packages/matplotlib/backends/backend_qt5.py", line 125, in _create_qApp
raise RuntimeError('Invalid DISPLAY variable')
RuntimeError: Invalid DISPLAY variable