# Problem with medit in Freefem++ vesrsion 4.9

**URL:** <https://community.freefem.org/t/problem-with-medit-in-freefem-vesrsion-4-9/1159>\
**Category:** General Discussion\
**Created:** [August 16, 2021, 5:01am UTC](https://community.freefem.org/t/problem-with-medit-in-freefem-vesrsion-4-9/1159 "2021-08-16T05:01:21Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![ali.mes](https://yyz2.discourse-cdn.com/flex030/user_avatar/community.freefem.org/ali.mes/32/707_2.png) [@ali.mes](https://community.freefem.org/u/ali.mes)\
**Post date:** [August 16, 2021, 5:01am UTC](https://community.freefem.org/t/problem-with-medit-in-freefem-vesrsion-4-9/1159/1 "2021-08-16T05:01:21Z")

</div>

When I run the following code

load “medit”  
mesh Th=square(10,10,[2_x-1,2_y-1]);  
fespace Vh(Th,P1);  
Vh u=2-x_x-y_y;  
medit(“mm”,Th,u);

I get a back and white flat triangulated square, but the manual mentioned that this code should generate a colorful surface.  
I and using freefem++ on Linux.

---

<div class="post-metadata">

**Author:** ![Daokun](https://yyz2.discourse-cdn.com/flex030/user_avatar/community.freefem.org/daokun/32/522_2.png) [@Daokun](https://community.freefem.org/u/Daokun)\
**Post date:** [August 16, 2021, 12:57pm UTC](https://community.freefem.org/t/problem-with-medit-in-freefem-vesrsion-4-9/1159/2 "2021-08-16T12:57:18Z")

</div>

right click–\>data–\>toggle metric

---

<div class="post-metadata">

**Author:** ![ali.mes](https://yyz2.discourse-cdn.com/flex030/user_avatar/community.freefem.org/ali.mes/32/707_2.png) [@ali.mes](https://community.freefem.org/u/ali.mes)\
**Post date:** [August 16, 2021, 1:12pm UTC](https://community.freefem.org/t/problem-with-medit-in-freefem-vesrsion-4-9/1159/3 "2021-08-16T13:12:32Z")

</div>

Thanks for your help. It worked.
