# Plot a function of two variables in Paraview

**URL:** https://discourse.paraview.org/t/plot-a-function-of-two-variables-in-paraview/14233
**Category:** ParaView Support
**Created:** [March 22, 2024, 5:40pm UTC](https://discourse.paraview.org/t/plot-a-function-of-two-variables-in-paraview/14233 "2024-03-22T17:40:32Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![legno](https://discourse.paraview.org/letter_avatar_proxy/v4/letter/l/e9bcb4/32.png) [@legno](https://discourse.paraview.org/u/legno)
#### Post date: [March 22, 2024, 5:40pm UTC](https://discourse.paraview.org/t/plot-a-function-of-two-variables-in-paraview/14233/1 "2024-03-22T17:40:32Z")

</div>

Hello,  
I have generated the files attached with a PDE solver. The files contain the numerical solution (A) of a two-dimensional PDE, which I want to compare with an analytical function of two variables (B), say, f(x,y) = 1+x^2+y^2. How can I do this in Paraview? I tried the solution proposed [here](https://discourse.paraview.org/t/function-plotting/1713), but it is not clear.

May you please provide me a detailed procedure to do this ? Thanks  
[solution000000.vtu](https://discourse.paraview.org/uploads/short-url/qGQSHT510FjjDGqxnFIrC1Xmuhx.vtu) (671.3 KB)

[solution.pvd](https://discourse.paraview.org/uploads/short-url/RW4mKQHgcmxJUBWl95YEDOAMoI.pvd) (170 Bytes)

---

<div class="post-metadata">

### Author: ![mwestphal](https://discourse.paraview.org/user_avatar/discourse.paraview.org/mwestphal/32/17_2.png) [@mwestphal](https://discourse.paraview.org/u/mwestphal)
#### Post date: [March 25, 2024, 11:03am UTC](https://discourse.paraview.org/t/plot-a-function-of-two-variables-in-paraview/14233/2 "2024-03-25T11:03:19Z")

</div>

Hi,

You data only contains `f_24` data, which computation are you trying to do ?

Best,
