Keep ximtool readable in 8-bit color

February 8th, 2005 by admin

<

p>Phil Massey at Lowell Observatory sent in the following tip:

<

p>This probably doesn’t concern you, since it sounds like you use DS9, but I’m a fan of ximtool (actually ximtool-alt)—so easy to register frames against each other—so I’m willing to go to 8-bit color until Mike Fitzpatrick eventually fixes ximtool so it works under 32-bit.

<

p>However, when I set the color to 8-bit and do an implot, the graphics window is generally totally unreadable—yellow on white background.

<

p>I did eventually find a fix to this, and I don’t know if it would be worth posting on your web site or not. It turns out that there was nothing like an .Xdefaults being loaded. So, I created one:

        Gtermcolor0:          black
        Gtermcolor1:          ivory
        Gtermcolor2:          red
        Gtermcolor3:          green
        Gtermcolor4:          blue
        Gtermcolor5:          cyan
        Gtermcolor6:          yellow
        Gtermcolor7:          purple
        Gtermcolor8:          magenta
        Gtermcolor9:          black

<

p>based upon a note I’d gotten from Mike when I’d encountered a simialr problem some years back. and then explictly put in my .xinitrc file,

xrdb -load ~/.Xdefaults

<

p>prior to starting up any windows or the window manager.

<

p>This tip sounds like it is to keep xgterm plots looking correct. Over on the x11iraf page, I make a tip on how to keep everything looking ok when you use ximtool to display a graphic, which is to use the -maxColors flag in ximtool to limit how many colors it grabs.

.

Please remember this is the archive of Macsingularity. Comments are no longer supported, and this content and site are no longer updated.



Bad Behavior has blocked 290 access attempts in the last 7 days.

WP SlimStat