# 3d plot syntax issue

I try this in Sage 5.11 Notebook:

```
var (x' y')
plot3d(x^2 y^2,(x,-2,2),(y-3,3))
```

But I got syntax error. I typed the figures correctly, but I don't know how to solve the syntax error.

3d plot syntax issue

I try this in Sage 5.11 Notebook:

```
var (x' y')
plot3d(x^2 y^2,(x,-2,2),(y-3,3))
```

But I got syntax error. I typed the figures correctly, but I don't know how to solve the syntax error.

0

The issue is with `x^2 y^2`

. You need to tell sage the operation between $x^2$ and $y^2$. Is your function $x^2\cdot y^2$? If so, you need:

```
plot3d(x^2*y^2,(x,-2,2),(y,-2,2)).
```

As a note, it *is*possible to use this syntax with implicit multiplication - see e.g. http://math.stackexchange.com/a/11866...

Asked: **
2015-03-16 13:41:08 -0600
**

Seen: **38 times**

Last updated: **Mar 16 '15**

How to install seaborn in sagemath cloud?

Detecting extrema and asymptotes of (nasty) functions of two variables

Adding arrows in vector fields

3d plot in vector format: still using matplotlib?

Trying to plot a function with three variables

How can i generate a 3D plot with more details?

can I create isosurface contours from list data?

Bound box for parametric 3D plots?

How I can plot functions of the kind $f:\Bbb R\to\Bbb C$ in 3D properly?

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.

Be careful, it should be

and not