[pyngl-talk] PyNGL skewT default background color

Fearon, Dr. Matthew, Contractor, Code 7533 matthew.fearon.ctr at nrlmry.navy.mil
Thu May 3 16:32:21 MDT 2018


Thanks, Bill. This is really helpful.

From: Bill Ladwig [mailto:ladwig at ucar.edu]
Sent: Thursday, May 3, 2018 2:36 PM
To: Fearon, Dr. Matthew, Contractor, Code 7533
Cc: pyngl-talk at ucar.edu
Subject: Re: [pyngl-talk] PyNGL skewT default background color

Hi Matt,

Unfortunately there isn't a resource for this, but if you're willing to modify your copy of PyNGL, you can manually change the color pretty easily. In your site-packages directory for your Python distribution, you should see a PyNGL directory. Under that, there is Ngl.py. Around line 6054, in the skewt_bkg function, you'll see this:


if (localOpts.sktDrawColAreaFill):

    color1 = "PaleGreen2"            # "LightGreen"

    color2 = "Background"            # "Azure"

Change "PaleGreen2" for color1 to a color of your liking.

Hope this helps,

Bill

On Thu, May 3, 2018 at 12:08 PM, Fearon, Dr. Matthew, Contractor, Code 7533 via pyngl-talk <pyngl-talk at ucar.edu<mailto:pyngl-talk at ucar.edu>> wrote:
Dear PyNGL users:

I’m using the Ngl resources for skewT plotting. I was wondering if anyone has experimented with changing the default green sktColoredBands to another color. This option turn the bands off/on, but is there a resource or a trick for changing the default green banded background color?
Thank you,
Matt

_______________________________________________
pyngl-talk mailing list
List instructions, subscriber options, unsubscribe:
http://mailman.ucar.edu/mailman/listinfo/pyngl-talk

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.ucar.edu/pipermail/pyngl-talk/attachments/20180503/b5a33e80/attachment-0001.html>


More information about the pyngl-talk mailing list