[Matplotlib-users] Why the V parameter in matplotlib.axes.Axes.contour must be increasing?

Jody Klymak jklymak at uvic.ca
Wed Aug 16 12:48:37 EDT 2017


Hi David,

I’ve definitely run into this, to my annoyance.

Do you think you can open an issue on 
[GitHub](https://github.com/matplotlib/matplotlib/issues)?  If you 
don’t want to, I’m happy to do it.

With respect to one contour at zero, its easier than Matlab:

ax.contour(X, np.array([0.]))

works for me…

Cheers,

On 16 Aug 2017, at 5:33, Xi Shen wrote:

> Hi,
>
> https://matplotlib.org/api/_as_gen/matplotlib.axes.Axes.contour.html 
> says
> the contour function accept a vector parameter V which must be in
> increasing value. But the contour function in MATLAB does not have 
> this
> restriction.
>
> I understand the underlining implementation of these two functions 
> could be
> very different. I want to understand what is the purpose of this
> restriction, and if it possible to create a contour image the same as
> MATLAB does by using contour with V = [0 0]?
>
>
> Regards,
> David


> _______________________________________________
> Matplotlib-users mailing list
> Matplotlib-users at python.org
> https://mail.python.org/mailman/listinfo/matplotlib-users
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/matplotlib-users/attachments/20170816/84e921d7/attachment.html>


More information about the Matplotlib-users mailing list