Skip to content

plot of array with only NaN hangs session #1839

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
brandy125 opened this issue May 29, 2024 · 3 comments
Closed

plot of array with only NaN hangs session #1839

brandy125 opened this issue May 29, 2024 · 3 comments

Comments

@brandy125
Copy link

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

GDL>plot,fltarr(10)*'NAN'
@jaymurthy
Copy link

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

@alaingdl
Copy link
Contributor

Thanks ! 😞

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
Copy link
Contributor

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants