comp.lang.idl-pvwave archive
Messages from Usenet group comp.lang.idl-pvwave, compiled by Paulo Penteado

Home » Public Forums » archive » Has anyone used stippling in contour plot ?
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Switch to threaded view of this topic Create a new topic Submit Reply
Has anyone used stippling in contour plot ? [message #89216] Tue, 05 August 2014 05:53 Go to next message
siumtesfai is currently offline  siumtesfai
Messages: 62
Registered: April 2013
Member
How can one contour plot with stippling where it shows statistically significant of the trends (e.g temperature trends, zonal wind speed trends etc).

I have the follow 2D array which is filled with zeros and ones


nx = 144
ny = 73
lon = findgen(144)*2.5
lat = findgen(73)*2.5-90

Array=fltarr(nx,ny)

Array(0:20, 20:50)=1 ,anywhere else is zeros

First I have contoured the actual trend values. I want to display where the trends are statistically significant with stippling.

Any suggestion ?
Re: Has anyone used stippling in contour plot ? [message #89315 is a reply to message #89216] Fri, 15 August 2014 17:35 Go to previous messageGo to next message
Jim  Pendleton is currently offline  Jim Pendleton
Messages: 165
Registered: November 2011
Senior Member
On Tuesday, August 5, 2014 6:53:11 AM UTC-6, siumt...@gmail.com wrote:
> How can one contour plot with stippling where it shows statistically significant of the trends (e.g temperature trends, zonal wind speed trends etc).
>
>
>
> I have the follow 2D array which is filled with zeros and ones
>
>
>
>
>
> nx = 144
>
> ny = 73
>
> lon = findgen(144)*2.5
>
> lat = findgen(73)*2.5-90
>
>
>
> Array=fltarr(nx,ny)
>
>
>
> Array(0:20, 20:50)=1 ,anywhere else is zeros
>
>
>
> First I have contoured the actual trend values. I want to display where the trends are statistically significant with stippling.
>
>
>
> Any suggestion ?

you might look into the IDLgrPattern object and the C_FILL_PATTERN keyword to the CONTOUR() function or IDLgrContour if you're using Object Graphics.
Re: Has anyone used stippling in contour plot ? [message #89316 is a reply to message #89315] Fri, 15 August 2014 17:46 Go to previous messageGo to next message
Jim  Pendleton is currently offline  Jim Pendleton
Messages: 165
Registered: November 2011
Senior Member
On Friday, August 15, 2014 6:35:48 PM UTC-6, Jim P wrote:
> On Tuesday, August 5, 2014 6:53:11 AM UTC-6, siumt...@gmail.com wrote:
>
>> How can one contour plot with stippling where it shows statistically significant of the trends (e.g temperature trends, zonal wind speed trends etc).
>
>>
>
>>
>
>>
>
>> I have the follow 2D array which is filled with zeros and ones
>
>>
>
>>
>
>>
>
>>
>
>>
>
>> nx = 144
>
>>
>
>> ny = 73
>
>>
>
>> lon = findgen(144)*2.5
>
>>
>
>> lat = findgen(73)*2.5-90
>
>>
>
>>
>
>>
>
>> Array=fltarr(nx,ny)
>
>>
>
>>
>
>>
>
>> Array(0:20, 20:50)=1 ,anywhere else is zeros
>
>>
>
>>
>
>>
>
>> First I have contoured the actual trend values. I want to display where the trends are statistically significant with stippling.
>
>>
>
>>
>
>>
>
>> Any suggestion ?
>
>
>
> you might look into the IDLgrPattern object and the C_FILL_PATTERN keyword to the CONTOUR() function or IDLgrContour if you're using Object Graphics.

There is also a handy routine for generating degrees of stippling in lib\utilities\stipple_pattern.pro.

The output from this function can be used as input to the PATTERN property of an IDLgrPattern object.
Re: Has anyone used stippling in contour plot ? [message #89321 is a reply to message #89216] Sun, 17 August 2014 07:51 Go to previous messageGo to next message
Fabzi is currently offline  Fabzi
Messages: 305
Registered: July 2010
Senior Member
On 05.08.2014 14:53, siumtesfai@gmail.com wrote:
> nx = 144
> ny = 73
> lon = findgen(144)*2.5
> lat = findgen(73)*2.5-90

with such a low resolution it is possible to simply plot dark points
where the trend is significant, like for this IPCC plot:

http://makanaka.files.wordpress.com/2013/09/ipcc_ar5_wg_spm_ trend.jpg

You can use cgPlotS for this.
Re: Has anyone used stippling in contour plot ? [message #89322 is a reply to message #89321] Sun, 17 August 2014 07:58 Go to previous messageGo to next message
Fabzi is currently offline  Fabzi
Messages: 305
Registered: July 2010
Senior Member
... and like IPCC, I would suggest not to colorize the non-significant
trends but use NaN instead (the usual motto: if the trend is not
significant, then there is no trend ;-)). Unfortunately, contour is
quite bad with NaN, and you might get better results with cgImage.



On 17.08.2014 16:51, Fabien wrote:
> On 05.08.2014 14:53, siumtesfai@gmail.com wrote:
>> nx = 144
>> ny = 73
>> lon = findgen(144)*2.5
>> lat = findgen(73)*2.5-90
>
> with such a low resolution it is possible to simply plot dark points
> where the trend is significant, like for this IPCC plot:
>
> http://makanaka.files.wordpress.com/2013/09/ipcc_ar5_wg_spm_ trend.jpg
>
> You can use cgPlotS for this.
Re: Has anyone used stippling in contour plot ? [message #91729 is a reply to message #89322] Sun, 16 August 2015 08:50 Go to previous message
siumtesfai is currently offline  siumtesfai
Messages: 62
Registered: April 2013
Member
Thanks Fabien
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: Re: Read data in more than one column
Next Topic: Write 3dimensional array as bsq-file without using ENVI Methods

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ] [ PDF ]

Current Time: Wed Oct 08 09:15:32 PDT 2025

Total time taken to generate the page: 0.00519 seconds