gdl icon indicating copy to clipboard operation
gdl copied to clipboard

Maximum number of windows limited to 100

Open brandy125 opened this issue 2 years ago • 1 comments

Any chance to allow more than 100 windows in GDL?

In GDL we are limited to 69 "free" windows:

GDL> for i=0,200 do window,/free
% WINDOW: No more window handles left.
% Execution halted at: $MAIN$          
GDL> help,i
I               INT       =       69
GDL> 

In IDL there does not seem to exist this limit:

IDL> for i=0,200 do window,/free
IDL> help,i
I               INT       =      201
IDL> 

brandy125 avatar Aug 25 '23 12:08 brandy125

unfortunately this is a (silly) hard plplot limit, plplot allows 101 windows. Apparently. One could patch plplot (the number is defined in a .h) and report the new number in GraphicsMultiDevice::WAddFree(), line 500 of graphicsdevice.cpp Upon success, adding a patch to plplot is not impossible.

GillesDuvert avatar Aug 25 '23 17:08 GillesDuvert