Modifying line type scale
21 次查看(过去 30 天)
显示 更早的评论
When plotting a line with dashed style and the vector to be plotted contains very large number of points ,the resulted output line looks like continuous line style ...so is there any method to keep the dashes appearing whatever the length of the data points???
4 个评论
Scott MacKenzie
2021-7-10
There might be some workarounds, such as downsampling your data. Perhaps post your data and code, so we can see what's going on and perhaps explore some options.
Mathieu NOE
2021-7-12
hello
yes , downsampling is the way to go, make sure the plotted data does not exceed length 500 to 1000 (test it)
回答(1 个)
Guru Kumaresan
2021-7-13
Hi Ahmed,
You are trying to plot the data that is very large when compared to the resolution of your monitor. This is the reason for you seeing the points as a continuous line. This is just a visualisation issue as the data is discrete. Try performing the following steps to have a proper visualisation:
- Try downsampling your data because such a large data cannot be visualised as separate points because of the resolution issue.
- One more way is to try reducing the markersize, which in turn will make the plot appear as you wanted.
If you need to modify the Markersize you can do as shown below:
plot(x,'MarkerSize',1);
0 个评论
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Graphics Performance 的更多信息
产品
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!