How to make discrete pcolor x-axis with no gaps between datapoints?
Show older comments
Is it possible to make a plot of continous discrete data? Something like shown in figure below? This is a simple representation of problem.

Here, B-axis is continous, while A-axis is discrete. Though the x-axis breaks, I do not want any gap between the datapoints. Basically, A-axis does not run continously from 0-300. Rathar it should select discrete x-points, 0-3-4-7-9 etc.... and make a continous plot.
Also, I would like to clarify that I am not making a 2-D plot (like the one shown here), I have a "pcolor plot".
Any help will be greatly appriciated.
Accepted Answer
More Answers (1)
Bharat Chandra Mukkavalli
on 11 Jul 2022
0 votes
Hi,
Refer to the link on plotting discrete X values here: https://www.mathworks.com/matlabcentral/answers/612426-how-to-plot-discrete-values-on-the-x-axis
Hope this helps!
Categories
Find more on Line Plots in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!
