Repository: ManimCommunity/manim

Issue:
Wrong log axis labels when rendering with OpenGl
## Description of bug / unexpected behavior
<!-- Add a clear and concise description of the problem you encountered. -->
When using the OpenGL renderer, the labels along the logarithmic axis, when enabled, are all rendered as "Integer" instead of the correct number "10^n" (where n is the corresponding integer)

## Expected behavior
<!-- Add a clear and concise description of what you expected to happen. -->
The labels should render as number instead of a class name

## How to reproduce the issue
<!-- Provide a piece of code illustrating the undesired behavior. -->
Copy the example code LogScalingExample from the [Axes documentation page](https://docs.manim.community/en/stable/reference/manim.mobject.graphing.coordinate_systems.Axes.html) about scaling one axis with logarithmic scale (currently the first example of the page) and run it with `manim --renderer=opengl -pql test.py LogScalingExample` (changing resolution has no effect)

<details><summary>Code for reproducing the problem</summary>
(taken from the online docstring)

```py
from manim import *

class LogScalingExample(Scene):
    def construct(self):
        ax = Axes(
            x_range=[0, 10, 1],
            y_range=[-2, 6, 1],
            tips=False,
            axis_config={"include_numbers": True},
            y_axis_config={"scaling": LogBase(custom_labels=True)},
        )

        # x_min must be > 0 because log is undefined at 0.
        graph = ax.plot(lambda x: x ** 2, x_range=[0.001, 10], use_smoothing=False)
        self.add(ax, graph)

```


</details>


## Additional media files
<!-- Paste in the files manim produced on rendering the code above. -->

<details><summary>Images/GIFs</summary>


![A_ManimCE_v0 17 1](https://user-images.githubusercontent.com/18192532/206695660-2dacc418-4954-4ee6-8d9b-40f149f9af3e.png)


</details>


## Logs
<details><summary>Terminal output</summary>
<!-- Add "-v DEBUG" when calling manim to generate more detailed logs -->

```
Manim Community v0.17.1

[12/09/22 12:48:08] INFO                                                                scene_file_writer.py:736
                             File ready at
                             '${ROOT}/media/images/test/LogScalingExample_ManimCE_v0.17.1.png'
                    INFO     Rendered LogScalingExample                                             scene.py:241
                             Played 0 animations
                    INFO     Previewed File at:                                                  file_ops.py:227
                             '${ROOT}/media/images/test/LogScalingExample_ManimCE_v0.17.1.png'
```

<!-- Insert screenshots here (only when absolutely necessary, we prefer copy/pasted output!) -->

</details>


## System specifications

<details><summary>System Details</summary>

```
Python 3.10.8 on Linux (Fedora 36)

Installed python modules:
asttokens           2.2.1
backcall            0.2.0
certifi             2022.12.7
charset-normalizer  2.1.1
click               8.1.3
click-default-group 1.2.2
cloup               0.13.1
colour              0.1.5
commonmark          0.9.1
dearpygui           1.8.0
decorator           5.1.1
executing           1.2.0
glcontext           2.3.7
idna                3.4
ipython             8.7.0
isosurfaces         0.1.0
jedi                0.18.2
manim               0.17.1
ManimPango          0.4.3
mapbox-earcut       1.0.1
matplotlib-inline   0.1.6
moderngl            5.7.3
moderngl-window     2.4.2
multipledispatch    0.6.0
networkx            2.8.8
numpy               1.23.5
parso               0.8.3
pexpect             4.8.0
pickleshare         0.7.5
Pillow              9.3.0
pip                 21.3.1
prompt-toolkit      3.0.36
ptyprocess          0.7.0
pure-eval           0.2.2
pycairo             1.23.0
pydub               0.25.1
pyglet              2.0.1
Pygments            2.13.0
pyrr                0.10.3
requests            2.28.1
rich                12.6.0
scipy               1.9.3
screeninfo          0.8.1
setuptools          59.6.0
six                 1.16.0
skia-pathops        0.7.4
srt                 3.5.2
stack-data          0.6.2
svgelements         1.8.4
tqdm                4.64.1
traitlets           5.7.0
urllib3             1.26.13
watchdog            2.2.0
wcwidth             0.2.5
```
</details>

<details><summary>LaTeX details</summary>

+ TexLive 2021
+ Installed LaTeX packages: Full texlive installation from Fedora repos (a lot of packages, will post them if needed)
<!-- output of `tlmgr list --only-installed` for TeX Live or a screenshot of the Packages page for MikTeX -->
</details>

<details><summary>FFMPEG</summary>

```
ffmpeg version 5.0.2 Copyright (c) 2000-2022 the FFmpeg developers
built with gcc 12 (GCC)
configuration: --prefix=/usr --bindir=/usr/bin --datadir=/usr/share/ffmpeg --docdir=/usr/share/doc/ffmpeg --incdir=/usr/include/ffmpeg --libdir=/usr/lib64 --mandir=/usr/share/man --arch=x86_64 --optflags='-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection' --extra-ldflags='-Wl,-z,relro -Wl,--as-needed -Wl,-z,now -specs=/usr/lib/rpm/redhat/redhat-hardened-ld -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -Wl,--build-id=sha1 ' --extra-cflags=' -I/usr/include/rav1e' --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libvo-amrwbenc --enable-version3 --enable-bzlib --enable-chromaprint --disable-crystalhd --enable-fontconfig --enable-frei0r --enable-gcrypt --enable-gnutls --enable-ladspa --enable-libaom --enable-libdav1d --enable-libass --enable-libbluray --enable-libbs2b --enable-libcdio--enable-libdrm --enable-libjack --enable-libfreetype --enable-libfribidi --enable-libgsm --enable-libilbc --enable-libmp3lame --enable-libmysofa --enable-nvenc --enable-openal --enable-opencl --enable-opengl --enable-libopenjpeg --enable-libopenmpt --enable-libopus --enable-libpulse --enable-librsvg --enable-librav1e --enable-librubberband --enable-libsmbclient --enable-version3 --enable-libsnappy --enable-libsoxr --enable-libspeex --enable-libsrt --enable-libssh --enable-libsvtav1 --enable-libtheora --enable-libtwolame --enable-libvorbis --enable-libv4l2 --enable-libvidstab --enable-libvmaf --enable-version3 --enable-vapoursynth --enable-libvpx --enable-vulkan --enable-libglslang --enable-libwebp --enable-libx264 --enable-libx265 --enable-libxvid --enable-libxml2 --enable-libzimg --enable-libzmq --enable-libzvbi --enable-lv2 --enable-avfilter --enable-libmodplug --enable-postproc --enable-pthreads --disable-static --enable-shared --enable-gpl --disable-debug --disable-stripping --shlibdir=/usr/lib64 --enable-lto --enable-libmfx --enable-runtime-cpudetect
libavutil      57. 17.100 / 57. 17.100
libavcodec     59. 18.100 / 59. 18.100
libavformat    59. 16.100 / 59. 16.100
libavdevice    59.  4.100 / 59.  4.100
libavfilter     8. 24.100 /  8. 24.100
libswscale      6.  4.100 /  6.  4.100
libswresample   4.  3.100 /  4.  3.100
libpostproc    56.  3.100 / 56.  3.100
```
</details>



Discussion:

Resolving patch:
diff --git a/manim/mobject/graphing/number_line.py b/manim/mobject/graphing/number_line.py
--- a/manim/mobject/graphing/number_line.py
+++ b/manim/mobject/graphing/number_line.py
@@ -2,6 +2,8 @@
 
 from __future__ import annotations
 
+from manim.mobject.opengl.opengl_vectorized_mobject import OpenGLVMobject
+
 __all__ = ["NumberLine", "UnitInterval"]
 
 
@@ -626,7 +628,7 @@ def _create_label_tex(
         """
         if label_constructor is None:
             label_constructor = self.label_constructor
-        if isinstance(label_tex, VMobject):
+        if isinstance(label_tex, (VMobject, OpenGLVMobject)):
             return label_tex
         else:
             return label_constructor(label_tex, **kwargs)


Test patch: