[gpaw-users] Plotting error
Varadharajan Srinivasan
varadharajan.srinivasan at gmail.com
Tue Apr 26 09:27:23 CEST 2016
Dear all,
I was trying out a tutorial calculation on WS2 band structure with
spin-orbit coupling. I modified the system to MoS2 and tried out the python
scripts given in the tutorial. At the plotting stage I get the following
error :
plt.savefig('MoS2_bands.png')
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/usr/local/lib/python2.7/site-packages/matplotlib/pyplot.py", line
688, in savefig
res = fig.savefig(*args, **kwargs)
File "/usr/local/lib/python2.7/site-packages/matplotlib/figure.py", line
1565, in savefig
self.canvas.print_figure(*args, **kwargs)
File
"/usr/local/lib/python2.7/site-packages/matplotlib/backend_bases.py", line
2232, in print_figure
**kwargs)
File
"/usr/local/lib/python2.7/site-packages/matplotlib/backends/backend_agg.py",
line 527, in print_png
FigureCanvasAgg.draw(self)
File
"/usr/local/lib/python2.7/site-packages/matplotlib/backends/backend_agg.py",
line 474, in draw
self.figure.draw(self.renderer)
File "/usr/local/lib/python2.7/site-packages/matplotlib/artist.py", line
61, in draw_wrapper
draw(artist, renderer, *args, **kwargs)
File "/usr/local/lib/python2.7/site-packages/matplotlib/figure.py", line
1159, in draw
func(*args)
File "/usr/local/lib/python2.7/site-packages/matplotlib/artist.py", line
61, in draw_wrapper
draw(artist, renderer, *args, **kwargs)
File "/usr/local/lib/python2.7/site-packages/matplotlib/axes/_base.py",
line 2324, in draw
a.draw(renderer)
File "/usr/local/lib/python2.7/site-packages/matplotlib/artist.py", line
61, in draw_wrapper
draw(artist, renderer, *args, **kwargs)
File "/usr/local/lib/python2.7/site-packages/matplotlib/lines.py", line
739, in draw
ln_color_rgba = self._get_rgba_ln_color()
File "/usr/local/lib/python2.7/site-packages/matplotlib/lines.py", line
1251, in _get_rgba_ln_color
return colorConverter.to_rgba(self._color, self._alpha)
File "/usr/local/lib/python2.7/site-packages/matplotlib/colors.py", line
376, in to_rgba
'to_rgba: Invalid rgba arg "%s"\n%s' % (str(arg), exc))
ValueError: to_rgba: Invalid rgba arg "0.5"
to_rgb: Invalid rgb arg "0.5"
cannot convert argument to rgb sequence
Have I missed installing some libraries? I am working on a brew-based
installation of ase and gpaw on El Capitan Mac OS X.
Thanks,
Vardha.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://listserv.fysik.dtu.dk/pipermail/gpaw-users/attachments/20160426/c362e8a0/attachment.html>
More information about the gpaw-users
mailing list