Ask Your Question

Revision history [back]

The way implicit_plot works is by sampling the plotting region, and detecting sign changes.

So if the line to plot is at the edge of the region, it won't work.

Workaround: enlarge the region when plotting, then restrict the region when showing the plot.

Example:

sage: x, y = SR.var('x, y')
sage: p = implicit_plot(y == 2, (x, -0.1, 2), (y, -0.1, 2.1))
sage: p.show(ymax=2)