improve visibility of a plot
1 次查看(过去 30 天)
显示 更早的评论
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/307419/image.png)
is their any way, by which i can get better visibility of the graph. i.e in the above graph the blue line is almost flattened on log y-axis.
if i zoom in as shown in below image i lose the data of green line.
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/307423/image.png)
is their any way i can get both data plotted completely and also with improved visibility
回答(2 个)
Kevin Joshi
2020-6-1
Considering your data is already in log scale and has huge difference between the plot, i suggest to please consider the following option-
Break the Y-axis to represent the graph using the file exchange submission
https://in.mathworks.com/matlabcentral/fileexchange/45760-break-y-axis?s_tid=FX_rc2_behav
0 个评论
Sugar Daddy
2020-6-1
You need to
- Change ylim of axes
- turn the grid on
- turn minor grid on
- change the grid alpha
for example
grid on
grid minor
a = gca;
a.XAxis.MinorTickValues = [0:1:20];
a.GridAlpha = 0.7;
a.YLim = [10^-9 10^-7];
a.YTick = [10^-8];
similarly select the yminorticks you want by a.YAxis.MinorTickValues
0 个评论
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Graphics Object Properties 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!