Skip to content

Commit

Permalink
Merge pull request #3755 from neutrinoceros/typesetting_fixes_VR
Browse files Browse the repository at this point in the history
BUG: fix a typesetting bug with fractionnal units in colorbar labels for volume rendering
  • Loading branch information
matthewturk authored Jan 21, 2022
2 parents 762afa8 + 2b56a88 commit 35dd7f9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion yt/fields/derived_field.py
Original file line number Diff line number Diff line change
Expand Up @@ -327,7 +327,7 @@ def get_label(self, projected=False):
units = Unit(self.units)
# Add unit label
if not units.is_dimensionless:
data_label += r"\ \ (%s)" % (units.latex_representation())
data_label += r"\ \ \left(%s\right)" % (units.latex_representation())

data_label += r"$"
return data_label
Expand Down

0 comments on commit 35dd7f9

Please sign in to comment.