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

2D yz quickplot not quite right #1077

Closed
rtimms opened this issue Jun 24, 2020 · 0 comments · Fixed by #1078
Closed

2D yz quickplot not quite right #1077

rtimms opened this issue Jun 24, 2020 · 0 comments · Fixed by #1078
Assignees

Comments

@rtimms
Copy link
Contributor

rtimms commented Jun 24, 2020

For 2D (y,z) vars the plot should use pcolormesh rather than conotourf to give the correct result (for the way we have set up FEM the x,y values are at the corners of the mesh)

                if self.is_y_z[key] is True:
                    self.plots[key][0][0] = ax.pcolormesh(
                        x,
                        y,
                        var,
                        vmin=vmin,
                        vmax=vmax,
                        cmap="coolwarm",
                        shading="gouraud",
                    )
                else:
                    self.plots[key][0][0] = ax.contourf(
                        x, y, var, levels=100, vmin=vmin, vmax=vmax, cmap="coolwarm"
                    )
@rtimms rtimms self-assigned this Jun 24, 2020
rtimms added a commit that referenced this issue Jun 24, 2020
rtimms added a commit that referenced this issue Jun 24, 2020
rtimms added a commit that referenced this issue Jun 24, 2020
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

Successfully merging a pull request may close this issue.

1 participant