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

Home » Public Forums » archive » MONTHS IN 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
MONTHS IN PLOT [message #91992] Sun, 27 September 2015 07:40 Go to next message
joyrles1996 is currently offline  joyrles1996
Messages: 27
Registered: August 2015
Junior Member
date_label = LABEL_DATE(DATE_FORMAT = ['%M'])

FILE='C:\Users\Joyrles\Pictures\Nuvens\nuvens_anos.txt'
dados=read_ascii(file, data_start=0)
dados=dados.(0)

mm=dados[1,*]
year=dados[0,*]
day=dados[2,*]
hh=dados[3,*]
hh2=dados[5,*]
dur=dados[7,*]

index=where(dur gt 6, count)

cgHistoplot, mm(index), BINSIZE=1.0, PSYM=10, /FILL, POLYCOLOR=['blue', 'dodger blue'],yTITLE = 'Número de ocorrência de noites nubladas', $
title='Noite nubladas por mes de 2000 a 2010', XTICKFORMAT = 'LABEL_DATE'

WHY DO IT JUST APPEAR ONE MONTH AND NOT TWELVE?

PLEASE, HELP ME!
Re: MONTHS IN PLOT [message #91993 is a reply to message #91992] Sun, 27 September 2015 08:46 Go to previous message
David Fanning is currently offline  David Fanning
Messages: 11724
Registered: August 2001
Senior Member
Joyrles Fernandes writes:

>
> date_label = LABEL_DATE(DATE_FORMAT = ['%M'])
>
> FILE='C:\Users\Joyrles\Pictures\Nuvens\nuvens_anos.txt'
> dados=read_ascii(file, data_start=0)
> dados=dados.(0)
>
> mm=dados[1,*]
> year=dados[0,*]
> day=dados[2,*]
> hh=dados[3,*]
> hh2=dados[5,*]
> dur=dados[7,*]
>
> index=where(dur gt 6, count)
>
> cgHistoplot, mm(index), BINSIZE=1.0, PSYM=10, /FILL, POLYCOLOR=['blue', 'dodger blue'],yTITLE = 'Número de ocorrência de noites nubladas', $
> title='Noite nubladas por mes de 2000 a 2010', XTICKFORMAT = 'LABEL_DATE'
>
> WHY DO IT JUST APPEAR ONE MONTH AND NOT TWELVE?
>
> PLEASE, HELP ME!

I'm guessing you are not getting any help, because you don't provide any
information that will help us guess what the problem is. For example,
what is the data structure of mm? What is the count? How many elements
are in dur? What have you tried to sort the problem out for yourself?
Etc. Without this information, we are guessing and our answers are
probably a complete waste of time. The Help command is your friend here.

Here is a good article that explains how to ask a question on a group
like this that will likely elicit an answer:

http://www.catb.org/~esr/faqs/smart-questions.html

In your case, I think you may be running into one of the famous IDL
gotchas:

http://idlcoyote.com/misc_tips/noidea.html
http://idlcoyote.com/misc_tips/brokenwhere.html

You might be able to fix some of these problems by turning your column
arrays (i.e., everything you are extracting from dados) into row arrays,
like this:

mm=Reform(dados[1,*])

But, this is only a guess. If you want more help, you need to provide
more information and give us a sense of what you have tried to fix the
problem yourself.

Cheers,

David

--
David Fanning, Ph.D.
Fanning Software Consulting, Inc.
Coyote's Guide to IDL Programming: http://www.idlcoyote.com/
Sepore ma de ni thue. ("Perhaps thou speakest truth.")
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: legend() with symbols
Next Topic: problem with idl program

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

Current Time: Wed Oct 08 07:17:08 PDT 2025

Total time taken to generate the page: 0.00601 seconds