# Plot clipping ffmatlib

**URL:** https://community.freefem.org/t/plot-clipping-ffmatlib/1930
**Category:** General Discussion
**Created:** [August 5, 2022, 8:55pm UTC](https://community.freefem.org/t/plot-clipping-ffmatlib/1930 "2022-08-05T20:55:57Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![Curiin](https://avatars.discourse-cdn.com/v4/letter/c/51bf81/32.png) [@Curiin](https://community.freefem.org/u/Curiin)
#### Post date: [August 5, 2022, 8:55pm UTC](https://community.freefem.org/t/plot-clipping-ffmatlib/1930/1 "2022-08-05T20:55:57Z")

</div>

Hi again!

Sorry to be bugging you all again, but I’ve got another question, this time regarding ffmatlib.  
I would like to generate (and save) a plot in Matlab using ffmatlib displaying my function using colours on a 3D domain, something like this:

 ![Bildschirmfoto 2022-07-18 um 20.41.46](https://canada1.discourse-cdn.com/flex030/uploads/freefem/original/2X/4/400ad06cee79a45dd6e70eb4ccd4d30a86ba0d52.jpeg)  
(this is a screenshot out of medit of something different).  
I have seen the demos example capacitor\_3d in the download of ffmatlib, but as far as I understand this only plots the “outside view” of the 3D body and I would like to know the function values inside (since my function has zero boundary, not the above).  
I’ve been looking in this forum as well as in Matlab Help, but I’m not sure which of the two could solve this problem.

Thanks in advance for any inputs and ideas!

---

<div class="post-metadata">

### Author: ![Curiin](https://avatars.discourse-cdn.com/v4/letter/c/51bf81/32.png) [@Curiin](https://community.freefem.org/u/Curiin)
#### Post date: [August 17, 2022, 5:44pm UTC](https://community.freefem.org/t/plot-clipping-ffmatlib/1930/2 "2022-08-17T17:44:30Z")

</div>

Of course, the obvious thing to do is an `xlim` in Matlab, as I did in the blow picture, but the problem is that the figure seems to be hollow… Does `ffSaveData` only save the boundary values or did I choose the wrong way to plot this?

 ![Bildschirmfoto 2022-08-17 um 19.41.32](https://canada1.discourse-cdn.com/flex030/uploads/freefem/original/2X/9/9d4dd5b09b848fd36ace7b75f5d78a822c666d20.png)
