Is there any way to create a graphics object

조회 수: 3 (최근 30일)
Kim Dohyun
Kim Dohyun 2021년 4월 27일
댓글: per isakson 2021년 5월 3일
I want to create a graphics object which acts as a parent of child object with some functionalities.
The best example for this is Matlab's 'Contour' object.
I have looked up ChartContainer and Group,
but they are not what I wanted because:
ChartContainer is not a child of an axes, but it acts like an axes. This limits other functionalities that we expect from axes, for example, hold.
Group is not allowed to have subclass,
I want to have a class that its object satisfies:
  • it is a graphics object so that it is visible in get(ax, 'Children').
  • I can show multiple graphics object together in one axes
  • I can modify its data so that its children (such as patch, line, etc) changes interactively.
Is there any way?

답변 (0개)

카테고리

Help CenterFile Exchange에서 Developing Chart Classes에 대해 자세히 알아보기

제품


릴리스

R2020a

Community Treasure Hunt

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

Start Hunting!

Translated by