I am trying to produce scatterplots using the new IDL8 graphics functionalities.
For example, I use the PLOT procedure to plot band3 against band4:
test=plot(imagearr[*,*,2],imagearr[*,*,3],SYM_INDEX = 'dot')
But this always produces the following errors:
% PLOT: Arguments have invalid dimensions
% Error occurred at: GRAPHIC
22 C:\Program Files\ITT\IDL\IDL80\lib\graphics\graphic_error.pro
% PLOT 63
C:\Program Files\ITT\IDL\IDL80\lib\graphics\plot.pro
% $MAIN$
% Execution halted at: $MAIN$
IDL> test=plot(imagearr[*,*,2],imagearr[*,*,3])
% PLOT: Arguments have invalid dimensions
% Error occurred at: GRAPHIC 22 C:\Program
Files\ITT\IDL\IDL80\lib\graphics\graphic_error.pro
% PLOT 63 C:\Program
Files\ITT\IDL\IDL80\lib\graphics\plot.pro
% $MAIN$
% Execution halted at: $MAIN$
The error indicates something regarding the dimensions. What I am trying to plot comes from the same array:
imagearr=bytarr(1000,1000,36)
When I use the plot funtion in the "old way" (prior to IDL8) the scatterplot is produced without any problems:
plot,imagearr[*,*,2],imagearr[*,*,3],psym=3
Help is very much appreciated! Thanks!
Patrick
|