gnudatalanguage / gdl

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

plot of array with only NaN hangs session #1839

Closed brandy125 closed 5 months ago

brandy125 commented 6 months ago

This simple one-liner hangs my session. Can anybody confirm?

GDL>plot,fltarr(10)*'NAN'
jaymurthy commented 6 months ago

Yes. GDL - GNU Data Language, Version v1.0.6-1-gf84626e7 OSX

alaingdl commented 6 months ago

Thanks ! :disappointed:

I confirm this regression which appeared between 2024-03-22 and 2024-04-03. 6 files have been changed in this period, including 4 files related to plotting ... (the changes are quite large in these 4 files : i think the expert is @GillesDuvert ) (plotting_axis.cpp, plotting_contour.cpp, plotting.cpp, plotting.hpp)

plot,replicate(!values.f_nan,3)
GillesDuvert commented 5 months ago

Thanks, behaviour now is consistent with IDL:

IDL>  plot,replicate(!values.f_nan,3)
% PLOT: Not enough valid and unique points specified.

and

IDL> contour, replicate(!values.f_nan,10,10)
% CONTOUR: Warning: Infinite plot range.