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 #85956 is a reply to message #85955] Sat, 21 September 2013 06:53 Go to previous messageGo to previous message
David Fanning is currently offline  David Fanning
Messages: 11724
Registered: August 2001
Senior Member
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.")
[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 16:02:39 PDT 2025

Total time taken to generate the page: 0.00183 seconds