Combine contour plot with Histogram
3 views (last 30 days)
Show older comments
I have two maps that I need to combine and plot in matlab. The first is an elevation map of land. I made a contour plot of the land. I have a second map that displays gas pockets of the land. I need to make a histogram of the gas pockets and combine it with the contour map. I can do each part seperatly but don't know how to combine the two graphs.
0 Comments
Answers (1)
Image Analyst
on 22 Oct 2013
I don't know how you would either. All spatial information is lost when you make a histogram from the elevation image, so how could the histogram be on the same image as the elevation image and make sense? Why do you think that you need to combine these? I suggest you don't combine them unless you mean just to put the elevation as either a surface or image with contour lines, and the histogram in an axes next to it.
5 Comments
Image Analyst
on 22 Oct 2013
A bar chart is not always a histogram, so don't call every bar chart a histogram. In fact the bar chart you mention is not a histogram. A histogram is a frequency of occurrence. I'm not even sure how you would represent bars over an image like how you want it. Do you want a bar at every single pixel? That would be too crowded that you wouldn't be able to see anything at all - the thousands or millions of bars would all obscure each other.
See Also
Products
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!