Hello -
I tried to turn of the feature that makes contours with negative values dashed.
According to the mailinglist this should go by setting: rcParams[‘contour.negative_linestyle’]=(‘None’,‘None’)
I tried any combination of the None, None syntax, or just ‘solid’, but nothing worked.
Example shown below. I am using 0.90.1.
Thanks, Mark
from pylab import *
x,y = meshgrid(linspace(-3,3,10),linspace(-3,3,10))
rcParams[‘contour.negative_linestyle’]=(‘None’,‘None’)
contour(x,y,x,colors=‘b’)
Error message:
Traceback (most recent call last):
File “<pyshell#10>”, line 1, in ?
contour(x,y,x,colors='b')
File “C:\Python24\Lib\site-packages\matplotlib\pylab.py”, line 1777, in contour
draw_if_interactive()
File “C:\Python24\Lib\site-packages\matplotlib\backends\backend_tkagg.py”, line 59, in draw_if_interactive
figManager.show()
File “C:\Python24\Lib\site-packages\matplotlib\backends\backend_tkagg.py”, line 311, in show
self.canvas.draw()
File “C:\Python24\Lib\site-packages\matplotlib\backends\backend_tkagg.py”, line 154, in draw
FigureCanvasAgg.draw(self)
File “C:\Python24\Lib\site-packages\matplotlib\backends\backend_agg.py”, line 392, in draw
self.figure.draw(renderer)
File “C:\Python24\Lib\site-packages\matplotlib\figure.py”, line 601, in draw
for a in self.axes: a.draw(renderer)
File “C:\Python24\Lib\site-packages\matplotlib\axes.py”, line 1286, in draw
a.draw(renderer)
File “C:\Python24\Lib\site-packages\matplotlib\collections.py”, line 700, in draw
transoffset)
ValueError: invalid literal for float(): None