BUG: Normal vectors in SlicePlot doesn't understand non-cartesian coordinate systems #3528
Labels
api-consistency
naming conventions, code deduplication, informative error messages, code smells...
bug
coordinates: non-cartesian
Bug report
Good news, this one already has a fix waiting in #3489, but I'm reporting it independently because it wasn't my main motivation in that PR and I actually encountered this bug now.
Bug summary
because
SlicePlot
instantiatesOffAxisSlicePlot
as well asAxisAlignedSlicePlot
classes based on the value of thenormal
argument, it implements some magic to transcribe special values of normal vectors into strings, namely:The problem being that this correspondence is hard coded and doesn't account for the relevant geometry, so it only works with cartesian coordinates.
Code for reproduction
Actual outcome
Traceback
Expected outcome
Should be equivalent to
The text was updated successfully, but these errors were encountered: