Re: bar_plot probs? [message #10122] |
Mon, 20 October 1997 00:00 |
davidf
Messages: 2866 Registered: September 1996
|
Senior Member |
|
|
Matt Savoie (savoie@fsl.noaa.gov) writes:
>
> Hey, does anyone out there have a fix for this?
>
> I'm trying to use bar_plot On:
> IDL. Version 4.0.1 (sunos sparc).
> try:
>
> bar_plot, [100.,100.]
> bar_plot, [0.,100.], /rotate
> ^^^^ these work
>
> This doesn't:
> bar_plot, [100., 100.], /rotate
>
> When I try to do a rotated bar_plot, and all the values are the same,
> I get an error.
>
> % AXIS: Data coordinate system not established.
> % Execution halted at: BAR_PLOT
> 233 /home/rsi/idl_4/lib/bar_plot.pro
> % $MAIN$
> Does anyone have a fix for it?
This seems to work in IDL 5. Try making your plot first with
a NODATA keyword set on a Plot command. Then use your
BarPlot command with the OVERPLOT keyword set. This will
make sure you have a data coordinate system established.
Cheers,
David
-----------------------------------------------------------
David Fanning, Ph.D.
Fanning Software Consulting
E-Mail: davidf@dfanning.com
Phone: 970-221-0438
Coyote's Guide to IDL Programming: http://www.dfanning.com/
|
|
|