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

Home » Public Forums » archive » BarCoords- 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
BarCoords- cgBarplot [message #88329] Tue, 15 April 2014 07:14 Go to previous message
limiqt is currently offline  limiqt
Messages: 27
Registered: October 2013
Junior Member
Hi everyone,
I took the example bellow from http://www.idlcoyote.com/cg_tips/barplot.php

Pro baranderror

data = RandomU(-45L, 5) * 10.0
labels = ['Exp 1', 'Exp 2', 'Exp 3', 'Exp 4', 'Exp 5']
cgLoadct, 33, Clip=[10,245]
colors = ['cornflower blue','sea green','orange red','goldenrod','dark orchid']
cgBarPlot, data, BarNames=labels, Colors=colors, BarCoords=xlocs
lowErrs = RandomU(seed, 5)*0.75
highErrs = RandomU(seed, 5)*0.5
cgPlot, xlocs, data, Err_YLow=lowErrs, Err_YHigh=highErrs, /NoData, /Overplot, $ Err_Color='charcoal', Err_Thick=2

End

However Im getting the error message: CGPLOT-->Variable in undefined: X. I also followed the next example using cgwindow and I got the same error.

I was expecting to get xlocs automatically but it is not happening.

I wonder if someone knows how to get the xlocs

Thanks

Lim,
[Message index]
 
Read Message
Read Message
Read Message
Previous Topic: Trying to create a plot with strings as x-values...
Next Topic: Help converting MATLAB to IDL

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

Current Time: Wed Oct 08 15:13:16 PDT 2025

Total time taken to generate the page: 0.00475 seconds