[Scilab-users] xclick bug on Mac OS ?

Philippe Dérogis derogis.philippe at gmail.com
Sat Oct 28 14:26:12 CEST 2017


	Hi Philippe and Samuel,

  I experiment exactly the problem described by Philippe on my Mac (MacBook Pro Retina 13 pouces running MacOS Sierra 10.12.6) with Scilab 6.0
I wrote to the mailing list on the 10 mai 2017 about that :

—— begin quote
	Hi,

My name is Philippe, I work in the field of physics and signal processing, I use scilab a lot in my work and I want to thanks very much all the the people involve in the development of this great software. 

 I updated my scilab to 6.0.0 two weeks ago on my power book (retina) running macOS 10.12.4. Since this time I experiment two problems with graphic figures. The first issue is that the thickness of the lines is really small and the text for the axis labels, curves label and title are almost unreadable (way smaller than in the preceding version). The second problem is about the zoom, when I try to zoom on a graphic figure using the rectangular selection with the mouse, I get an offset between the mouse pointer and the actual selection, making it impossible to correctly define de rectangular region. 

Is anybody else experimenting the same issues ? Does somebody have a fix or a workaround for that ?
— — end quote

So i’m glad to know that I’m not the only one who experiment this problem. In order to try to help I ran the following piece of code

clf()
   plot2d(0,0,rect=[0 0 1 1])
   xgrid(1)
   x=[];y=[]
   ibutton=0
   while ibutton<>5
       [ibutton,xcoord,ycoord]=xclick()
       x($+1)=xcoord
       y($+1)=ycoord
       plot(x,y,'-o')
   end
(thank you Philippe) on my Mac and clic with the mouse on the point (1,0), (0.9,0.1), (0.8,0.2), (0.7,0.3), (0.6,0.4) and (0.5,0.5) which result to plot circles on points :
x  = 

   0.4169399
   0.3666667
   0.3163934
   0.2661202
   0.215847
   0.1677596
   0.1677596
 y  = 

   0.5811594
   0.6318841
   0.6782609
   0.7289855
   0.7768116
   0.8304348
   0.8304348

you can download the png of the figure here : https://we.tl/VXmrnlsI2V <https://we.tl/VXmrnlsI2V>


I take the opportunity to report again that this problem affect the interactive zooming in graphic windows and, I thing, is related to the fact that the graphics windows (with default settings) are almost unreadable on My MacBook Retina (very small window with thin lines and fonts). Those issues where new with version 6.0 I didn’t have those problems with the 5.5.2 version.

I hope it helps.

One more time thanks a lot to all the people working on the development of Scilab, it is a very powerful software that I use a lot.

Philippe.

  

> Le 28 oct. 2017 à 13:48, philippe <rouxph.22 at gmail.com> a écrit :
> 
> Le 28/10/2017 à 12:45, Samuel Gougeon a écrit :
>> [...]
>> Sorry: the clf() tells it (if it was /actually/ run): it was in a
>> (almost) fresh figure, not in a frame.
> 
> yes , the figure is cleared at begining,  but the graphic windows can be
> a new one (if no graphic window is already open) or an existing one
> (perhaps already docked in scilab main window). Those different
> configurations where tested by the student .
> 
>> 
>> The clf page https://help.scilab.org/docs/6.0.0/en_US/clf.html misses
>> telling that uicontrols are cleared as well, including frames (i guess).
> 
> I don't understand the link between this bug and uicontrols .
> 
> Philippe
> 
> _______________________________________________
> users mailing list
> users at lists.scilab.org
> http://lists.scilab.org/mailman/listinfo/users

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.scilab.org/pipermail/users/attachments/20171028/410ed2ff/attachment.htm>


More information about the users mailing list