You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Error message
I was running in an interactive terminal so my traceback doesn't have line numbers.
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "petsc4py/PETSc/Log.pyx", line 188, in petsc4py.PETSc.Log.EventDecorator.decorator.wrapped_func
File "petsc4py/PETSc/Log.pyx", line 189, in petsc4py.PETSc.Log.EventDecorator.decorator.wrapped_func
File "/home/jack/Documents/firedrake/firedrake/src/firedrake/firedrake/pyplot/mpl.py", line 274, in tripcolor
return _plot_2d_field("tripcolor", function, *args, complex_component=complex_component, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/jack/Documents/firedrake/firedrake/src/firedrake/firedrake/pyplot/mpl.py", line 219, in _plot_2d_field
triangulation = function_plotter.triangulation
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
AttributeError: 'FunctionPlotter' object has no attribute 'triangulation'
The same happens for UnitCubedSphereMesh too.
If I replace Function with Constant(0) I get a different error message:
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "petsc4py/PETSc/Log.pyx", line 188, in petsc4py.PETSc.Log.EventDecorator.decorator.wrapped_func
File "petsc4py/PETSc/Log.pyx", line 189, in petsc4py.PETSc.Log.EventDecorator.decorator.wrapped_func
File "/home/jack/Documents/firedrake/firedrake/src/firedrake/firedrake/pyplot/mpl.py", line 274, in tripcolor
return _plot_2d_field("tripcolor", function, *args, complex_component=complex_component, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/jack/Documents/firedrake/firedrake/src/firedrake/firedrake/pyplot/mpl.py", line 219, in _plot_2d_field
triangulation = function_plotter.triangulation
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
AttributeError: 'FunctionPlotter' object has no attribute 'triangulation'
I'm 90% sure this used to work as this MFE was based off a previous script I was using!
Describe the bug
There seems to have been some regression plotting functions on spherical meshes
Steps to Reproduce
Steps to reproduce the behavior:
Expected behavior
I see a plot!
Error message
I was running in an interactive terminal so my traceback doesn't have line numbers.
The same happens for
UnitCubedSphereMesh
too.If I replace
Function
withConstant(0)
I get a different error message:I'm 90% sure this used to work as this MFE was based off a previous script I was using!
Environment:
firedrake-status
:Additional Info
matplotlib==3.9.0
triplot
works for plotting just the mesh and gives the expected outcome.The text was updated successfully, but these errors were encountered: