manim icon indicating copy to clipboard operation
manim copied to clipboard

get_axis_labels() producing labels of different sizes

Open bayezidx opened this issue 7 months ago • 0 comments

Description of bug / unexpected behavior

The y_label is bold and of bigger size than x_label.

Expected behavior

The labels should be of the same size and typeset.

How to reproduce the issue

Code for reproducing the problem
class GetAxisLabelsExample(Scene):
    def construct(self):
        ax = Axes()
        labels = ax.get_axis_labels(Tex("x-label"), Text("y-label"))
        self.add(ax, labels)

Additional media files

Images/GIFs

Image

System specifications

LaTeX details
  • LaTeX distribution (e.g. TeX Live 2020):
  • Installed LaTeX packages:

Image

Additional comments

The example in the documentation uses .scale() to rescale the labels. But, the fact that y_label is bolded and the x_label is not, can still be noticed.

Additional Issue: My LaTeX failed to compile underscore sign. Hence, I used hyphen.

bayezidx avatar Jun 12 '25 04:06 bayezidx