Open/Close The Hidden Shelf Menu


Keep ximtool readable in 8-bit color

February 8th, 2005 by Marcos

Phil Massey at Lowell Observatory sent in the following tip:

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.

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

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

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

prior to starting up any windows or the window manager.

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.

Related posts

.
Google
 

0 Responses to “Keep ximtool readable in 8-bit color”

  1. No Comments

Leave a Response



Close
E-mail It