using PGFPlotsX
x = range(0, 5; length = 200)
y = .√x
plottheme = @pgf {no_marks, blue}
@pgf TikzPicture(
Axis({
xmin = -4, xmax = 4, xtick = -5:1:5,
ymin = -4, ymax = 4, ytick = -5:1:5,
width = 500,
axis_lines = "middle",
axis_line_style = ["<->","very thick"],
grid = "both",
title="My Figure"
},
Plot(plottheme, Table(x, y)),
Plot(plottheme, Table(x, .-y))
)
)
How do I add arrows at the ends of the function?
How can I make the arrows at the ends of the axes look like triangle? This suggests it’s possible.
How do I to make the axes extend beyond the grid? For example, this suggests I can “shorten” the axes somehow.