how i remove blue portion from graph

1 visualización (últimos 30 días)
Taniya
Taniya el 24 de Abr. de 2023
Respondida: Walter Roberson el 24 de Abr. de 2023

Respuesta aceptada

Walter Roberson
Walter Roberson el 24 de Abr. de 2023
It appears that you have created a surface from a 2D array that has a row of 0 on the top and left edges.
Depending exactly how you are plotting, you might be able to trim that row and column before doing the plotting. Or you might be able to replace the 0's with NaN before doing the plotting. These possibilities might not work as hoped if you are using surf(), as surf() interpolates face color based upon adjacent values and NaN in particular could potentially end up "poisoning" the edges that you do want.
Another approach, depending on how you did the plotting, might be to adjust the color of those particular faces to be 'none' or NaN to make those faces transparent. You might be able to adjust the graphic object CData or AlphaData

Más respuestas (0)

Categorías

Más información sobre Surface and Mesh Plots en Help Center y File Exchange.

Etiquetas

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by