What I've done is to write a program once that created the color triangle without labels and then copy that triangle to any figure that needs it. That works because the triangle is always the same. You want to be careful to use the right color
ZjQcmQRYFpfptBannerStart
This Message Is From an External Sender
This message came from outside your organization.
ZjQcmQRYFpfptBannerEnd
What I've done is to write a program once that created the color
triangle without labels and then copy that triangle to any figure that
needs it. That works because the triangle is always the same. You want
to be careful to use the right color model (additive vs. subtractive).
On a related topic, there's the issue of accommodation to color
blindness. In principle, if someone only has two kinds of cones, then
they'll always be missing something from a 3-color map. Some people
think that by using cyan, magenta and yellow as primaries they can get
around the problem, but that doesn't really work. An app called 'Color
Oracle' can be used to approximate what an image will look like under
various kinds of colorblindness.
mam
On 6/7/2025 9:42 AM, Matthew Newville via Ifeffit wrote:
> Hi Tony, Hm, that’s a good question. The single “ROI” images can export
> images of their color tables (including contrast), but the 3-color maps
> do not. I guess a triangle is traditional – perhaps there’s a better way
> to do that? I don’t have
> ZjQcmQRYFpfptBannerStart
> This Message Is From an External Sender
> This message came from outside your organization.
> ZjQcmQRYFpfptBannerEnd
>
> Hi Tony,
>
> Hm, that’s a good question. The single “ROI” images can export images
> of their color tables (including contrast), but the 3-color maps do
> not. I guess a triangle is traditional – perhaps there’s a better way
> to do that?
>
> I don’t have an immediate answer, but I’m sure we can come up with
> something for that.
>
> --Matt
>
> *From: *Tian, Tony via Ifeffit <ifeffit@millenia.cars.aps.anl.gov>
> *Date: *Saturday, June 7, 2025 at 7:31 AM
> *To: *ifeffit@millenia.cars.aps.anl.gov <ifeffit@millenia.cars.aps.anl.gov>
> *Cc: *Tian, Tony <tony.tian@usask.ca>
> *Subject: *[Ifeffit] XRFMap_viewer tricolor map legend
>
> Good afternoon, I was able to make a tricolor map with Larch's
> XRFMap_viewer like below, but couldn't have a pie-shaped diagram legend
> like this displayed like in a lot of XRF publications. Could you give
> some advice on how to do it? Thank you.
>
> ZjQcmQRYFpfptBannerStart
>
> *This Message Is From an External Sender *
>
> This message came from outside your organization.
>
> ZjQcmQRYFpfptBannerEnd
>
> Good afternoon,
>
> I was able to make a tricolor map with Larch's XRFMap_viewer like below,
>
> but couldn't have a pie-shaped diagram legend like this displayed like
> in a lot of XRF publications. Could you give some advice on how to do
> it? Thank you.
>
> Best regards,
>
> Tony
>
>
> ifeffit mailing list: https://millenia.cars.aps.anl.gov/mailman3/lists/ifeffit.millenia.cars.aps.anl.gov/
> to unsubscribe, send mail to ifeffit-leave@millenia.cars.aps.anl.gov