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

Home » Public Forums » archive » Bar coordinate shift with cgBarPlot
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: Bar coordinate shift with cgBarPlot [message #87763 is a reply to message #87758] Wed, 26 February 2014 08:52 Go to previous messageGo to previous message
Federico Tosi is currently offline  Federico Tosi
Messages: 4
Registered: February 2014
Junior Member
Thanks for the reply, David. In fact this works, although it is graphically inelegant when you have many bars and they are close to each other.

I wonder whether an alternative approach could exist, perhaps removing the X-axis and redesigning it (with the AXIS command) taking care of defining the ticks. However, I'm not sure this can be done in conjunction with cgBarPlot.


> You are not going to be able to do anything about the ticks, but maybe
>
> something like this will work for you:
>
>
>
> tickNames = StrArr(5)
>
> FOR j=0,4 DO tickNames[j] = StrTrim(j*10,2) + '-' + StrTrim(j*10+10,2)
>
> cgBarPlot, findgen(5)+1.0, barnames=ticknames
>
>
>
> 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
Read Message
Read Message
Previous Topic: how to composite a mapcoord object using geographic coordinate(no projection)
Next Topic: Setting axes range in function graphics

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

Current Time: Thu Oct 09 13:23:28 PDT 2025

Total time taken to generate the page: 2.88255 seconds