# Visulization of xy plot

**URL:** https://community.freefem.org/t/visulization-of-xy-plot/1699
**Category:** General Discussion
**Created:** [April 26, 2022, 11:34am UTC](https://community.freefem.org/t/visulization-of-xy-plot/1699 "2022-04-26T11:34:53Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![zese](https://yyz2.discourse-cdn.com/flex030/user_avatar/community.freefem.org/zese/32/917_2.png) [@zese](https://community.freefem.org/u/zese)
#### Post date: [April 26, 2022, 11:34am UTC](https://community.freefem.org/t/visulization-of-xy-plot/1699/1 "2022-04-26T11:34:53Z")

</div>

Dear all,

I want to plot a xy graph through solving and update it. for example the velocity in a point through time to see if it is converged or not (periodic). I tried using the following  
real[int] xx(2), yy(2);  
for (int i = 0; i \< n; i++){  
if (i\>1)  
{ xx.resize(i+1);  
yy.resize(i+1);  
}  
solve Ns;  
x1=3;  
y1=-0.1;  
xx[i] = i\*dt;  
yy[i] = u(x1,y1);  
plot([xx, yy], wait=0);  
}  
however, no plot is shown during solving. how can I do that?  
BR
