<div dir="ltr"><div><div>Interesting, but it is hard to tell what is going on without any code or data. In particular, matplotlib's contourf polygons has always been "unstacked". In other words, the polygons representing a contour level does not overlap with any other polygon of another contour level, so I am not exactly sure how you are getting the behavior you are seeing in either image.<br><br></div>Now, the default algorithm for contouring did change in v1.5. You can access the old algorithm by passing `corner_mask='legacy'` as a keyword argument to contourf() in v1.5. Could you try that and see if at least you get identical results for v1.5 and v1.4?  Note, that keyword argument is not available in v1.4. This should help us narrow down the source of your issue, but I wouldn't treat it as a solution because the old algorithm is slated for removal at some point, and it still doesn't explain the difference you are seeing with the new contouring algorithm.<br><br></div><div>Ben<br></div><div><br></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Thu, Nov 12, 2015 at 8:11 AM, Viktoria Schubert via Matplotlib-devel <span dir="ltr"><<a href="mailto:matplotlib-devel@python.org" target="_blank">matplotlib-devel@python.org</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hello together,<br>
<br>
Since the 1.5 version of matplotlib together with python 3.5, I get<br>
strange results from using the contourf function. What I'm actually<br>
doing is plotting a lot of points in a 2D-space. The density equals the<br>
likelihood of the data, so what I want is to plot the 1Sigma, 2Sigma and<br>
3Sigma areas of the data.<br>
For this purpose, I was using the following line of code:<br>
cs = plt.contourf(hist2D, extent=extent, levels=[L1,L2,L3,Lmin],<br>
linestyles=['-','-','-','-'], colors=['blue','blue','blue'], alpha=0.25)<br>
<br>
The problem now is, that with matplotlib 1.4, the resulting image shows<br>
the most dense area in white instead of darker blue, which was the<br>
previous behavior. I did not change my code, I can get the old result<br>
simply by moving back to 1.4.<br>
I link to the two pictures I created, so maybe one of you can explain<br>
me, what changed with the version so that the plot is getting messed up.<br>
V1.4:<br>
<a href="http://i.imgur.com/HH7jKBE.png" rel="noreferrer" target="_blank">http://i.imgur.com/HH7jKBE.png</a><br>
V1.5:<br>
<a href="http://i.imgur.com/0LZ9Tso.png" rel="noreferrer" target="_blank">http://i.imgur.com/0LZ9Tso.png</a><br>
<br>
Thank you very much,<br>
Viktoria<br>
_______________________________________________<br>
Matplotlib-devel mailing list<br>
<a href="mailto:Matplotlib-devel@python.org">Matplotlib-devel@python.org</a><br>
<a href="https://mail.python.org/mailman/listinfo/matplotlib-devel" rel="noreferrer" target="_blank">https://mail.python.org/mailman/listinfo/matplotlib-devel</a><br>
</blockquote></div><br></div>