Skip to content

Commit

Permalink
fixup! ENH: enable plotting curvilinear geometries in native coordinates
Browse files Browse the repository at this point in the history
  • Loading branch information
neutrinoceros committed May 2, 2023
1 parent b2c7360 commit dcc655f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion yt/visualization/plot_container.py
Original file line number Diff line number Diff line change
Expand Up @@ -707,6 +707,7 @@ def _get_axes_unit_labels(self, unit_x, unit_y):
for i, un in enumerate((unit_x, unit_y)):
unn = None
if hasattr(self.data_source, "axis"):
# TODO(4179): remove this
if hasattr(self.ds.coordinates, "image_units"):
# This *forces* an override
unn = self.ds.coordinates.image_units[self.data_source.axis][i]
Expand Down Expand Up @@ -741,7 +742,7 @@ def _get_axes_unit_labels(self, unit_x, unit_y):
# It doesn't make sense to scale a position by anything
# other than h**-1
raise RuntimeError
if un not in ["1", "u", "unitary"]:
if un not in ["dimensionless", "1", "u", "unitary"]:
if un in formatted_length_unit_names:
un = formatted_length_unit_names[un]
else:
Expand Down

0 comments on commit dcc655f

Please sign in to comment.