Not indexed Color: Is there a way to change it?

43 views
Skip to first unread message

Zelda Grey

unread,
May 24, 2019, 2:35:22 PM5/24/19
to MTEX
Hi Ralf and Rudiger,
Is there a way to change white color of nonIndexed data to black? When I look up its color I get white
>> ebsd('notIndexed').color
ans
=
     
1     1     1

When I redefine its color it give the error which makes sense
>> ebsd('notIndexed').color=[0 0 0]
Error using phaseList/checkSinglePhase (line 287)
There are no indexed data in this variable!

In phaseList.m you put down a note at line 218
      % notindexed phase should be white by default

as I assume you wanna keep it white always but I am still curious if I able to intervene to change the color of notIndexed data

Second question, can I change the default colors of phases that you defined previously. Like instead of beginning with light blue I want to use red, blue etc
Many thanks in advance
Zelda

getMTEXpref('EBSDColorNames')
ans
=
 
1×12 cell array

 
Columns 1 through 5

   
{'light blue'}    {'light green'}    {'light red'}    {'cyan'}    {'magenta'}
 
Columns 6 through 10
   
{'yellow'}    {'blue'}    {'green'}    {'red'}    {'dark blue'}
 
Columns 11 through 12
   
{'dark green'}    {'dark red'}



Rüdiger Kilian

unread,
May 25, 2019, 3:48:27 AM5/25/19
to mtex...@googlegroups.com
Hi,
yes, you can change the definition you discovered in phaseList.m to any desired color you want so e.g. zeros(1,3), [0.1 0.4 0.7] ...
For the default colors, have a look in mtex_settings.
Cheers,
Rüdiger
________________________________________
From: mtex...@googlegroups.com <mtex...@googlegroups.com> on behalf of Zelda Grey <zelda...@gmail.com>
Sent: Friday, May 24, 2019 8:35:22 PM
To: MTEX
Subject: {MTEX} Not indexed Color: Is there a way to change it?
--
If you want to reduce the number of emails you get through this forum login to https://groups.google.com/forum/?fromgroups=#!forum/mtexmail, click "My membership" and select "Don't send me email updates". You can still get emails on selected topics by staring them.
---
You received this message because you are subscribed to the Google Groups "MTEX" group.
To unsubscribe from this group and stop receiving emails from it, send an email to mtexmail+u...@googlegroups.com<mailto:mtexmail+u...@googlegroups.com>.
Visit this group at https://groups.google.com/group/mtexmail.
To view this discussion on the web visit https://groups.google.com/d/msgid/mtexmail/9ab44bcf-5c99-467c-adb3-db654b8527dd%40googlegroups.com<https://groups.google.com/d/msgid/mtexmail/9ab44bcf-5c99-467c-adb3-db654b8527dd%40googlegroups.com?utm_medium=email&utm_source=footer>.
For more options, visit https://groups.google.com/d/optout.

Zelda Grey

unread,
May 25, 2019, 11:49:46 AM5/25/19
to MTEX
Thank you so much Rudiger I able to change to nonindexed data color to black. For future reference to other people who looking to change colors

To change notIndex data color
1. Go to phaseList.m line 221 
2. change c = ones(1,3);(white notindexed data) to c = zeros(1,3); (black notindexed data)

To change EBSD phase color
1. go to mtex_setting.m line 114 (EBSD Phase Colors)
2. change EBSDColorNames and its corresponding EBSDColors 

If you want to change phase color form command line

ebsd('iron').color=[1 0 0]

Zelda
To unsubscribe from this group and stop receiving emails from it, send an email to mtex...@googlegroups.com<mailto:mtexmail+unsubscribe@googlegroups.com>.
Reply all
Reply to author
Forward
0 new messages