From 577d76e8c2cb209d6420764206bcfa30d7f46bcf Mon Sep 17 00:00:00 2001 From: Martin Stancsics Date: Sun, 6 Oct 2024 17:16:28 +0200 Subject: [PATCH] More precise labels on figure --- src/manim_figures/comparative_equilibrium_entry.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/manim_figures/comparative_equilibrium_entry.py b/src/manim_figures/comparative_equilibrium_entry.py index eae2189..54a26c9 100644 --- a/src/manim_figures/comparative_equilibrium_entry.py +++ b/src/manim_figures/comparative_equilibrium_entry.py @@ -52,7 +52,7 @@ def construct(self): y_axis_config={"include_ticks": False}, ) x_label = ax.get_x_axis_label(r"N_F") - y_label = ax.get_y_axis_label(r"\pi_F") + y_label = ax.get_y_axis_label(r"\pi^t_F") N_P_0 = 0 N_P_1 = 0.5 @@ -71,12 +71,12 @@ def construct(self): pi_F_alt = ax.plot(lambda x: pi_F(N_P_1, x), color=RED_D) pi_F_orig_label = ax.get_graph_label( pi_F_orig, - r"\pi_F(N_P, N_F)", + r"\pi^t_F(N_P, N_F)", direction=UP, # type: ignore ) pi_F_alt_label = ax.get_graph_label( pi_F_alt, - r"\pi_F(N_P', N_F)", + r"\pi^t_F(N_P', N_F)", direction=DOWN, # type: ignore ) @@ -97,7 +97,7 @@ def construct(self): N_F_opt_1_bar.get_bottom(), # type: ignore N_F_opt_0_bar.get_bottom(), # type: ignore ) - brace_label = MathTex(r"> N_P' - N_P", color=BLACK) + brace_label = MathTex(r"> \frac{V_P}{V_F}(N_P' - N_P)", color=BLACK) brace_label.next_to(brace_loss, DOWN) # Moving objects