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

Home » Public Forums » archive » cgbarplot - barnames
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: cgbarplot - barnames [message #85957 is a reply to message #85956] Sat, 21 September 2013 07:40 Go to previous messageGo to previous message
gunvicsin11 is currently offline  gunvicsin11
Messages: 93
Registered: November 2012
Member
On Saturday, September 21, 2013 7:23:26 PM UTC+5:30, David Fanning wrote:
> sid writes:
>
>
>
>> I am barplot, But I need only barnames at few locations in the xaxis. Because my barnames are in years and they are 23. So overlap is happening if I give all the barnames. So I need to name few bars.
>
>>
>
>> Please let me know how to do this.
>
>
>
> You can do something like this:
>
>
>
> IDL> barnames = StrTrim(Indgen(23)+1995)
>
> IDL> print, barnames
>
> 1995 1996 1997 1998 1999 2000 2001
>
> 2002 2003 2004 2005 2006 2007 2008
>
> 2009 2010 2011 2012 2013 2014 2015
>
> 2016 2017
>
> IDL> blanks = Indgen(10)*2+1
>
> IDL> barnames[blanks] = ""
>
> IDL> print, barnames
>
> 1995 1997 1999 2001 2003 2005
>
> 2007 2009 2011 2013 2015 2016 2017
>
>
>
> 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.")

Respected sir,
But I get zeros in the plot whereever the blanks are there.
Please let me know how to get rid of this zeroes
thanking you
sid
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: IDL log scale issues
Next Topic: Searching for Rob Moore

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

Current Time: Wed Oct 08 17:50:53 PDT 2025

Total time taken to generate the page: 0.00175 seconds