Sure, it's a pretty short function, 10 lines:
def retrieve_colormap(wks):
"""
Retrieves the current color map associated with the given workstation
and returns a 2-dimensional Numeric array of RGB values.
cmap = Ngl.retrieve_colormap(wks)
wks -- The identifier returned from calling Ngl.open_wks.
"""
return get_MDfloat_array(wks,"wkColorMap")
--Mary
On Fri, 30 Mar 2007, [BE] Ufuk Utku Turuncoglu wrote:
> Hi,
>
> I add the merge script but when i run my plot script it gives the following
> error,
>
> Traceback (most recent call last):
> File "plot_diff.py", line 180, in ?
> merge_colormaps(wks,"BlWhRe","gui_default")
> File "plot_diff.py", line 98, in merge_colormaps
> orig_cmap = retrieve_colormap(wks)
> NameError: global name 'retrieve_colormap' is not defined
>
> I think, "retrieve_colormap" function also is not exist in pyngl. could you
> send me?
>
> Best wishes
>
> Ufuk
>
>
_______________________________________________
pyngl-talk mailing list
pyngl-talk_at_ucar.edu
http://mailman.ucar.edu/mailman/listinfo/pyngl-talk
Received on Fri Mar 30 2007 - 08:41:21 MDT
This archive was generated by hypermail 2.2.0 : Sun Apr 01 2007 - 11:53:12 MDT