# Using Sage plotting capability on data from PARI/GP

I am trying to plot data in Sage that is generated by a function in PARI/GP, however keep getting type errors.

I use this simple example to illustrate the point:

```
f=(gp("Z(s)=zeta(s)"))
f(2)
```

This gives the correct output 1.6449340668482264364724151666460251892 and appears to be a 'normal' floating point number that I can indeed multiply/add with.

However, when I try the following:

```
plot(f,(2,6))
```

It keeps coming back with

```
TypeError: Error executing code in GP
```

I have studied most of the (limited) info on the Pari/GP interface and did read that PARI/GP always returns a string. I therefore tried to convert the returned value into a float, int etc., however nothing works. I very likely do something wrong (or not allowed) and would be grateful for any advice on what could be the issue here (esp. since f(2) gives the correct numerical floating point result).

Thanks!