# False implicit plot

Hello

I write in SAGE

implicit_plot(y==1/2, (-1,1),(-1,1))

and it returns the graph of the line x=1/2. Why?

False implicit plot

Hello

I write in SAGE

implicit_plot(y==1/2, (-1,1),(-1,1))

and it returns the graph of the line x=1/2. Why?

add a comment

1

Sage does not guess the names of the variables (you could have been using any name). As your expression contains a single variable, it assumes that this is the first variable (what you would call "x"). To get what you want, use the more explicit syntax

```
sage: x = var('x')
sage: y = var('y')
sage: implicit_plot(y==1/2, (x,0,1), (y,0,1))
```

Asked: **
2019-03-03 11:38:12 -0500
**

Seen: **48 times**

Last updated: **Mar 03 '19**

Ploting ODE (unable to simplify to float approximation)

Plotting x, free variable error

TypeError: range() integer end argument expected, got sage.symbolic.expression.Expression.

How to enforce limits to the x-axis in plots?

A changing color in an autocovariance graph

Fast plots - How do I do those?

Error plotting root systems in Sage

Copyright Sage, 2010. Some rights reserved under creative commons license. Content on this site is licensed under a Creative Commons Attribution Share Alike 3.0 license.