# How to plot solution of a 2D edp on a 1D line

**URL:** https://community.freefem.org/t/how-to-plot-solution-of-a-2d-edp-on-a-1d-line/513
**Category:** General Discussion
**Created:** [July 22, 2020, 9:57am UTC](https://community.freefem.org/t/how-to-plot-solution-of-a-2d-edp-on-a-1d-line/513 "2020-07-22T09:57:45Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![Trophime](https://yyz2.discourse-cdn.com/flex030/user_avatar/community.freefem.org/trophime/32/215_2.png) [@Trophime](https://community.freefem.org/u/Trophime)
#### Post date: [July 22, 2020, 9:57am UTC](https://community.freefem.org/t/how-to-plot-solution-of-a-2d-edp-on-a-1d-line/513/1 "2020-07-22T09:57:45Z")

</div>

Hi,  
I would like to plot the solution of 2D edp on a line using for instance gnuplot.  
How can I get this done?

More generally I would like to plot solution on a given contour.  
How can I define this contour and interpolate the solution on points lying on this contour.

Thanks for help  
Best  
C

---

<div class="post-metadata">

### Author: ![prj](https://avatars.discourse-cdn.com/v4/letter/p/ecae2f/32.png) [@prj](https://community.freefem.org/u/prj)
#### Post date: [July 22, 2020, 11:18am UTC](https://community.freefem.org/t/how-to-plot-solution-of-a-2d-edp-on-a-1d-line/513/2 "2020-07-22T11:18:37Z")

</div>

Hello Christophe,  
Probably [this](https://github.com/FreeFem/FreeFem-sources/blob/46d9e0efbbe1f15a88b0a4282c4f1113dddeb317/examples/tutorial/gnuplot.edp) example or [that](https://github.com/FreeFem/FreeFem-sources/blob/ab09a0cf3b0bbfedd6a03f760cb8563d04a83846/examples/mpi/NSCaraCyl.edp#L46) one can help you achieve what you want?

---

<div class="post-metadata">

### Author: ![Trophime](https://yyz2.discourse-cdn.com/flex030/user_avatar/community.freefem.org/trophime/32/215_2.png) [@Trophime](https://community.freefem.org/u/Trophime)
#### Post date: [July 22, 2020, 6:47pm UTC](https://community.freefem.org/t/how-to-plot-solution-of-a-2d-edp-on-a-1d-line/513/3 "2020-07-22T18:47:47Z")

</div>

Hi Pierre, Thanks example 1 is perfect.
