I am using matlab to visualize my data in pseudocolor figures (pcolor). It works pretty good to show the data in pcolor but now I get one more data set. If I plot each data set in a separate pcolor plot, everything is fine. But now, I combine the two data such that
NEW_DATA = [OLDDATA1, OLDATA2]
if I pcolor the NEW_DATA instead, the color get messed up. Is that any way I can show the combined data without losing any detail or color information. In my case, if you plot pcolor(NEW_DATA), the general shape was maintained (just like [pcolor(OLDDATA1), pcolor(OLDATA2)]) but some detail become fuzzy
In pcolor plots, the vertex colors are scaled into the color map. You can set the scaling using the
'clim'property of the axes. I’m guessing what is happening here is that the scaling is different between the twoOLDDATAand the combinedNEWDATA.Ultimately you need to decide which scaling to use; if you like the original from
OLDDATA1, you could do the following:If you like the original scaling of both
OLDDATAplots and there isn’t a scaling that works for both, you can manually create a figure with two axes placed adjacent to each other (rather than relying onsubplot). Each axes object can have its ownclimthat way, but the two plots will appear contiguous.