gnudatalanguage / gdl

GDL - GNU Data Language
GNU General Public License v2.0
277 stars 61 forks source link

xrange causes problems in plot when array has "inf" values #1884

Closed brandy125 closed 2 months ago

brandy125 commented 2 months ago

I have no IDL at hands to compare with but this should not happen as far as I have it in mind:

GDL> p=findgen(100)
GDL> p(0:10)=1./0
% Program caused arithmetic error: Floating divide by zero
GDL> plot,p
GDL> plot,p,xrange=[0,50]
% PLOT: Not enough valid and unique points specified.
% Execution halted at: $MAIN$          
GDL> 
GillesDuvert commented 2 months ago

corrected in Master -- (code checked only NaNs) . Strange that this was not in a basic test.