How can I set up the axis values in a plot?
1 visualización (últimos 30 días)
Mostrar comentarios más antiguos
Agustin
el 5 de Oct. de 2017
Comentada: Agustin
el 5 de Oct. de 2017
Hi! I'm working with some signal plots and I want to see how I can set up the axes so I can have a better view of the plots. For example, I have the attached plot:
How can I adjust the axes to have a more detailed view of the signals?
Thank you!
0 comentarios
Respuesta aceptada
Cam Salzberger
el 5 de Oct. de 2017
Editada: Cam Salzberger
el 5 de Oct. de 2017
Hello Agustin,
I'm not entirely certain what you mean by "a more detailed view of the signals". If you'd like to just thin out the line so that changes in direction are more visible, you can just add a 'LineWidth parameter when plotting. For example:
plot(rand(100,1), 'LineWidth', 0.2)
If you are looking to zoom in on various areas of interest, you can do that by modifying the axis limits. For example, for the second axes you might use:
xlim([18 40])
ylim([-2 2])
If the plots lend themselves to a different scale, you may get more detail out of them with logarithmic scale axes. For example, you could try plotting the first line with semilogy.
Of course, you can always make the figure window larger, either manually or by changing the 'Position' property of the figure. You can also pan and zoom on the plots manually using the tools in the toolbar.
Hope this helps.
-Cam
Más respuestas (0)
Ver también
Categorías
Más información sobre Annotations 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!