[pyngl-talk] Replacement for gsnXYFillColors+transparency in PyNGL
Stéphane Sénési
senesi at posteo.net
Wed Dec 18 07:23:14 MST 2019
- Previous message: [pyngl-talk] >>> Ngl.gc_inout(30, 120, [30, 70, 70, 30, 30], [120, 120, 160, 160, 120]) array([1], dtype=int32) >>> Ngl.gc_inout(31, 120, [30, 70, 70, 30, 30], [120, 120, 160, 160, 120]) array([1], dtype=int32) >>> Ngl.gc_inout(31, 121, [30, 70, 70, 30, 30], [120, 120, 160, 160, 120]) array([1], dtype=int32) >>> Ngl.gc_inout(30, 121, [30, 70, 70, 30, 30], [120, 120, 160, 160, 120]) array([0], dtype=int32)
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
Hi,
Using Ncl, you can use gsnXYFillColors together with colors defined by a
quadruplet (RGB+transparency) for creating graphs where an enveloppe
between two curves can be lighlty shaded, and superimposed on another
enveloppe.
This is e.g. useful when showing time evolution of a climate variable,
and its confidence interval, under two forcing scenarios
I have not been able to figure out from PyNGL doc how to do that : If
ressource nglXYFillColors
<http://www.pyngl.ucar.edu/Resources/ngl.shtml#nglXYFillColors> allow to
fill the area between two curves, it only allows for named colors or
color indices, and not color quadruplet such as with gsnXYFillColors;
and PyNGL explanations about named colors and color indices make no
mention of opacity tuning
Any help would be welcome
Regards
Stéphane Sénési
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.ucar.edu/pipermail/pyngl-talk/attachments/20191218/069cf03b/attachment.html>
- Previous message: [pyngl-talk] >>> Ngl.gc_inout(30, 120, [30, 70, 70, 30, 30], [120, 120, 160, 160, 120]) array([1], dtype=int32) >>> Ngl.gc_inout(31, 120, [30, 70, 70, 30, 30], [120, 120, 160, 160, 120]) array([1], dtype=int32) >>> Ngl.gc_inout(31, 121, [30, 70, 70, 30, 30], [120, 120, 160, 160, 120]) array([1], dtype=int32) >>> Ngl.gc_inout(30, 121, [30, 70, 70, 30, 30], [120, 120, 160, 160, 120]) array([0], dtype=int32)
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
More information about the pyngl-talk
mailing list