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

Home » Public Forums » archive » fill_plot
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Return to the default flat view Create a new topic Submit Reply
Re: fill_plot [message #93001 is a reply to message #93000] Fri, 08 April 2016 05:20 Go to previous messageGo to previous message
Mats Löfdahl is currently offline  Mats Löfdahl
Messages: 263
Registered: January 2012
Senior Member
Den fredag 8 april 2016 kl. 13:36:55 UTC+2 skrev Rogert:
> Hi
>
> I plot a vector with the data i need, for example example:
>
> data=findgen(18) ; are negative and positive values
>
> openr,1,'G:\datos.dat'
> readf,1,data
> close,1
>
> cgplot,
>
> How could I shade with blue the data under x axis and red the positive values above x ???
>
> I was reading to use polyfill but always use two dimensions, vectors x and y...
>
> Thank you !!!

Your gcplot command is incomplete but if you do

cgplot, data

then data is your y and your x is indgen(n_elements(data)).
[Message index]
 
Read Message
Read Message
Read Message
Previous Topic: Can you please explain me the meaning of the following IDL code?
Next Topic: assigning integer and string value to same variable one by one

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

Current Time: Wed Oct 08 14:08:30 PDT 2025

Total time taken to generate the page: 0.00191 seconds