필터 지우기
필터 지우기

graphical object changing color!!

조회 수: 2 (최근 30일)
hana
hana 2012년 1월 17일
Guys, My code draws an object on top of another graphical object. The first object is plotted by {surf} of an {spline} and is multicolored.. (it's a Protein helix). My second graphical object (objects) is a group of cones drawn in a for-loop one by one by {surf} of {cylinder}.They are cones mimicking the intensity and direction of the forces on some of the atoms. The problem is that as soon as the cones are drawn the ribbon looses it's original color and everything turns neon blue even the cones!! Does anyone have any idea why this happens. P.S. I can provide you with screen shots.

채택된 답변

Walter Roberson
Walter Roberson 2012년 1월 17일
There is only one colormap per figure. If you have a colormap() call after the second plot, the first plot will change color.
  댓글 수: 1
hana
hana 2012년 1월 20일
Thank you so much. It resolved the issue :)

댓글을 달려면 로그인하십시오.

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Graphics Object Properties에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by