[Matplotlib-users] When was axes kwarg rmoved?

Vicki Brown vlb at cfcl.com
Sat Oct 26 00:28:00 EDT 2019


Thanks. That could be what was happening!

> On Oct 25, 2019, at 21:06 , Benjamin Root <ben.v.root at gmail.com> wrote:
> 
> I don't think it ever was a keyword argument. Now, there have been some bugs fixed recently where unused keyword arguments were going through without emitting an error, which caused confusion when kwargs were misspelled. Perhaps this is the change that is impacting you. To be clear, I don't think it never would have done anything in the past.
> 
> I hope this helps!
> Cheers!
> Ben Root
> 
> On Fri, Oct 25, 2019 at 9:40 PM Vicki Brown <vlb at cfcl.com <mailto:vlb at cfcl.com>> wrote:
> I'm hoping someone can tell me (point me to the ChanegLog for) when he axes kwarg was removed from matplotlib.pyplot.clabel, matplotlib.pyplot.contou, and matplotlib.pyplot.contourf. 
> 
> My search has turned up nothing.
> 
> I have code in an exercise for a class that called:
> 
>     plt.contourf(xx, yy, Z, cmap=ccolor, alpha=.2, axes=ax)
>     cs2 = plt.contour(xx, yy, Z, cmap=ccolor, alpha=.6, axes=ax)
>     plt.clabel(cs2, fmt = '%2.1f', colors = 'k', fontsize=14, axes=ax)
> 
> when run, this raised errors.
> 
> I've changed it to
> 
>     ax.contourf(xx, yy, Z, cmap=ccolor, alpha=.2)
>     cs2 = ax.contour(xx, yy, Z, cmap=ccolor, alpha=.6)
>     ax.clabel(cs2, fmt = '%2.1f', colors = 'k', fontsize=14)
> 
> and the errors are gone. However, a confirming reference would be helpful.
> 
> -- Vicki
> 
> Vicki Brown
> cfcl.com/vlb <http://cfcl.com/vlb>
> 
> 
> 
> _______________________________________________
> Matplotlib-users mailing list
> Matplotlib-users at python.org <mailto:Matplotlib-users at python.org>
> https://mail.python.org/mailman/listinfo/matplotlib-users <https://mail.python.org/mailman/listinfo/matplotlib-users>

-- Vicki

Vicki Brown
cfcl.com/vlb



-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/matplotlib-users/attachments/20191025/69006de1/attachment.html>


More information about the Matplotlib-users mailing list