Hi,(adsbygoogle = window.adsbygoogle || []).push({});

My thesis involves several surface plots. Most of the interesting features of these plots (and also the region I am interested in) are between z=0 and z=0.2, but there are a few points that have values as high as z=4. I want to view only the region of interest, so I use

This works fine in the sense that it zooms in on the region of interest, but it does not truncate parts of the plot above z=0.2. This means that the surface extends above the axes, all the way up to the top of the figure when viewed from an oblique angle. Cosmetically, I feel this is unacceptable for a thesis, and I would like the plot to be truncated at the axis limits without affecting the location of the points.Code (Text):zlim([0 0.2])

I am okay with it either 'cutting' the top off, or flattening it at the top, but would probably prefer the former. Unfortunately, changing the actual values in this region (by setting any point with a value greater that z=0.2 to 0.2) changes the actual shape of the surface between these points and the neighbouring points.

There must be simple solution for this, but I can't find one. Hopefully someone has some ideas. Thanks in advance.

**Physics Forums - The Fusion of Science and Community**

The friendliest, high quality science and math community on the planet! Everyone who loves science is here!

# Truncating a surface plot in Matlab

Can you offer guidance or do you also need help?

Draft saved
Draft deleted

Loading...

Similar Threads - Truncating surface plot | Date |
---|---|

Mathematica: Generate Surface Equation | Oct 22, 2013 |

Looking for ray tracing and surface optimization suggestions | Oct 8, 2013 |

Trying to import an already meshed surface to Comsol for FE analysis | Jun 19, 2013 |

How to make a surface plot involving an infinite series | Mar 23, 2013 |

Truncating a vector from an addressed element in MatLab | Feb 13, 2009 |

**Physics Forums - The Fusion of Science and Community**