Skip to content

Commit

Permalink
More precise labels on figure
Browse files Browse the repository at this point in the history
  • Loading branch information
stanmart committed Oct 6, 2024
1 parent 49a2b83 commit 577d76e
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/manim_figures/comparative_equilibrium_entry.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
)

Expand All @@ -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
Expand Down

0 comments on commit 577d76e

Please sign in to comment.