Re: tmXBLabelFontColor as an array

From: Mary Haley <haley_at_nyahnyahspammersnyahnyah>
Date: Wed Jan 18 2012 - 10:14:16 MST

Hi Adrian,

Unfortunately there is no easy way to color the individual labels differently.

The way I would do it is draw the plot twice, and each time, set the labels you want with the colors you want.

I've attached a sample script. This is not the best way to do it, as this example won't work in a panel plot. But, it's a quick-and-dirty solution.

If you need a panel plot version, let me know.

--Mary

On Jan 18, 2012, at 9:58 AM, Tompkins Adrian wrote:

> hello,
>
> I want to be able to highlight two particular timeslots in a contour
> plot. I thought to do this by changing their color, but it seems that
> unlike res@tmXBValues, the resource tmXBLabelFontColor can only take a
> single integer, not an array of values for each tick lable.
>
> i.e.
> This is what I want to do (but doesn't seem to work):
> res@tmXBLabelFontColor=(/1,3,1,1,3,1,1,1/)
>
> while this changes the color of all lables:
> res@tmXBLabelFontColor=3
>
> Is there a way to highlight a subset of graph lables?
>
> thanks and best wishes,
>
> Adrian
>
>
> --
> Adrian Tompkins | Earth System Physics
> +39 040 2240579 (office) | ICTP (UNESCO-IAEA)
> +39 040 2240449 (fax) | Strada Costiera 11
> www.ictp.it | 34151 Trieste, Italy
>
> _______________________________________________
> ncl-talk mailing list
> List instructions, subscriber options, unsubscribe:
> http://mailman.ucar.edu/mailman/listinfo/ncl-talk

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

Received on Wed Jan 18 10:14:26 2012

This archive was generated by hypermail 2.1.8 : Mon Jan 23 2012 - 12:45:14 MST