フィルターのクリア

How to superpose several pcolor plots on same image

13 ビュー (過去 30 日間)
Max Jaquenoud
Max Jaquenoud 2018 年 12 月 5 日
編集済み: jonas 2018 年 12 月 5 日
Hi, I'm trying to superpose several pcolor plots but cannot find the right way. Hold on doesn't seem to work.
Also I would like each pcolor plot to have only one colour for all points instead of using a colormap, is that possible?
Thanks for your help !
Max
  3 件のコメント
Max Jaquenoud
Max Jaquenoud 2018 年 12 月 5 日
Sorry, by that I mean that I get each pcolor plot in a separate figure
jonas
jonas 2018 年 12 月 5 日
編集済み: jonas 2018 年 12 月 5 日
You're still not helpful. The following creates two pcolor plots on the same axes:
pcolor(peaks)
hold on
pcolor(peaks(10))
So what did you do to cause matlab to open a new figure? Some code would be quite useful... also, what do you mean by a single color per plot? I will not ask why you'd want to do such a thing, but you can just set the z-data to a uniform value and apply any colormap.

サインインしてコメントする。

採用された回答

Image Analyst
Image Analyst 2018 年 12 月 5 日
Maybe you're having a problem because pcolor doesn't have the same number of "pixels" as what you passed in. See this code:
pcolor(rand(3,5)); % Show 3 by 5 grid of pixels - NOT!
0000 Screenshot.png
Try these links to see how to overlay an image on another image.

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeBlue についてさらに検索

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by