Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

TypeError: tricontourf() takes 4 positional arguments but 5 were given #439

Open
scramjetFoam opened this issue Nov 10, 2023 · 0 comments
Open

Comments

@scramjetFoam
Copy link

scramjetFoam commented Nov 10, 2023

Description

TypeError: tricontourf() takes 4 positional arguments but 5 were given. I think proplot does not support tri.Triangulation?

Steps to reproduce

contour = axs[idx].tricontourf(x, y, tri, scalar, levels=1000, cmap='jet') 

Expected behavior: x and y are the coordinates of 2D unstructured grid, tri is the Triangulation grid connection relation, direct use of triang = tri.Triangulation(x, y) will cause deformation of the geometric model, so I wrote tri.

Refer to: https://gist.github.com/mrklein/dc19fbac73564dabdba2

Actual behavior: When these parameters are entered, the actual contour should be drawn, but proplot reports an error 'TypeError: tricontourf() takes 4 positional arguments but 5 were given' and matplotlib works perfectly.

Equivalent steps in matplotlib

contour = axs[idx].tricontourf(x, y, tri, scalar, levels=1000, cmap='jet') 

Proplot version

matplotlib.version = 3.4.3
proplot.version = 0.9.7

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant