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

Home » Public Forums » archive » Bar plotting in IDL
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 plotting in IDL [message #87269 is a reply to message #87263] Wed, 22 January 2014 07:33 Go to previous messageGo to previous message
David Fanning is currently offline  David Fanning
Messages: 11724
Registered: August 2001
Senior Member
Madhavan Bomidi writes:

> I get the error as below:
>
> (1) CGAXIS -> Keyword array parameter XTICKNAME must have from 1 to 60 elements.
>
> (2) I get the figure with bars but I don't see my xnos or x-axis labels are matching with my xnos. For example, the last value of ydata is 90 and the bar for this value is shown at an xnos=94.
>
> My understanding for using bar plot may be wrong!!! Can anyone help me resolve the issues I am facing?

You are running into the same problem you ran into yesterday. IDL has a
limitation on the number of labels it can put on an axis (60
apparently). Each bar plot uses a label in this code.

I think I would try to write something like the Error Estimate Plot in
the Coyote Plot Gallery, where instead of plotting errors you plot the
median value with the quadrilles on either side of it. Not sure what you
should do with outliers in that case, but maybe they don't matter.

Or, I suppose you can try overplotting no more than 60 values at a time
on the plot. The code is pretty clunky. It was a direct port of the IDL
routine. But, it is possible to do some nice things with it.

http://www.idlcoyote.com/cg_tips/barplot.php

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
Previous Topic: Plotting points in fainter color on an IDL plot
Next Topic: binning a point clouds in the xy plane

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

Current Time: Thu Oct 09 07:17:59 PDT 2025

Total time taken to generate the page: 2.39954 seconds