# 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: **68 times**

Last updated: **Mar 03 '19**

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.