![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/1494472/image.jpeg)
How to plot extract one point values in mini graph within graph?
1 visualización (últimos 30 días)
Mostrar comentarios más antiguos
SANDEEP SINGH RANA
el 9 de En. de 2022
Comentada: SANDEEP SINGH RANA
el 30 de Sept. de 2023
Hi,
I want to show the different in Y-axis values at point (say 10 X-axis point). But I am not able give axes values to the graph. Can someone tell me how I can do? For (.fig), you can go to the link also.
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/857550/image.png)
0 comentarios
Respuesta aceptada
Ninad
el 27 de Sept. de 2023
Hi Sandeep,
As per my understanding you want to plot the y-values of lines 1 through 6 in the smaller subgraph for x=10.
You can use the “axes” function to create a new set of axes for the subgraph. Then use the ‘plot’ function to plot the specific values in the subgraph. The “xticks” and “xticklabels” function will help you to distinguish between the line numbers in the smaller subgraph.
I have written a dummy code in the “subGraphProb.m” file and attached it with my answer for your reference. This is what the output will look like:
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/1494472/image.jpeg)
You may use the following MATLAB documentation to learn more details about the “axes” function: https://in.mathworks.com/help/matlab/ref/axes.html
I hope this helps you.
Thanks,
Ninad.
Más respuestas (0)
Ver también
Categorías
Más información sobre Graph and Network Algorithms en Help Center y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!