You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
24 lines
674 B
24 lines
674 B
from manim import *
|
|
|
|
|
|
class HeatDiagramPlot(Scene):
|
|
def construct(self):
|
|
ax = Axes(
|
|
x_range=[0, 40, 5],
|
|
y_range=[-8, 32, 5],
|
|
x_length=9,
|
|
y_length=6,
|
|
x_axis_config={"numbers_to_include": np.arange(0, 40, 5)},
|
|
y_axis_config={"numbers_to_include": np.arange(-5, 34, 5)},
|
|
tips=False,
|
|
)
|
|
labels = ax.get_axis_labels(
|
|
x_label=Tex("$\\Delta Q$"), y_label=Tex("T[$^\\circ C$]")
|
|
)
|
|
|
|
x_vals = [0, 8, 38, 39]
|
|
y_vals = [20, 0, 0, -5]
|
|
graph = ax.plot_line_graph(x_values=x_vals, y_values=y_vals)
|
|
|
|
self.add(ax, labels, graph)
|