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 #87764 is a reply to message #87763] Wed, 26 February 2014 09:04 Go to previous messageGo to previous message
David Fanning is currently offline  David Fanning
Messages: 11724
Registered: August 2001
Senior Member
Federico Tosi writes:

> 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.

I think I have said here several times that one of the worst programming
decisions I ever made was to do a direct translation of BarPlot to
cgBarPlot. So, yes, we have to live with our past.

If I were doing this, I would simply suppress the tick labels and add
them myself, rotated at, say, a 45 degree angle so they will fit. You
can do this with cgText. You can find code that does exactly this in the
cgBoxPlot program.

Should this feature be added to cgBarPlot. Probably. Am I going to do
it? No, not right now, unless someone is offering money. Then, I'd try
to fit it in. :-)

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: Sat Oct 11 00:14:33 PDT 2025

Total time taken to generate the page: 2.39759 seconds