필터 지우기
필터 지우기

change color of words in matlab figure text

조회 수: 41 (최근 30일)
Maurilio Matracia
Maurilio Matracia 2022년 2월 23일
댓글: Maurilio Matracia 2022년 9월 29일
Hello everyone,
I have a matlab figure... is it possible to make a textbox with different colors for each word?
Thanks in advance
  댓글 수: 1
Maurilio Matracia
Maurilio Matracia 2022년 9월 29일
Hi everyone, I found out that using something like '\color[rgb]{0,.447,.741}text1 \color[rgb]{1,0,0}text2' solves the problem.
However, this works only on the tex interpreter, does anyone know how to make it work with latex interpreter?

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

답변 (1개)

KSSV
KSSV 2022년 2월 23일
편집: KSSV 2022년 2월 23일
Two options:
  1. USe GUI (matlab's figure) . Go to edit, insert text box, add the word, change the font color and size etc.
  2. Read about the function text.
  댓글 수: 2
Maurilio Matracia
Maurilio Matracia 2022년 2월 23일
Thank you.
However, I think that will only allow to change the entire text.
What I am asking for is to get a text with different colors for each word.
KSSV
KSSV 2022년 2월 23일
Do the same for each word.

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

카테고리

Help CenterFile Exchange에서 Axis Labels에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by