[Scilab-users] uman 2.1 is released

classic Classic list List threaded Threaded
28 messages Options
12
Samuel GOUGEON Samuel GOUGEON
Reply | Threaded
Open this post in threaded view
|

[Scilab-users] uman 2.1 is released

Hello,

The 2.1 version of the "uman" (user manual) module is released and available for Scilab 5.5 and Scilab 6.
It can be installed or updated with:
--> atomsInstall uman  // then close and restart Scilab

Main features: uman allows
  • to display in the console help pages of Scilab or of external modules or contributions, with chosen sections, in any chosen supported language without switching the session language. The online page can be as well targeted instead.
  • to grab easily all messages from the mailing lists archives about a given feature, function, author,..
  • to easily list bugs reported about a given function or feature

Main changes 2.1 :
  • "uman .. u" and disp_usage() now justify the list of syntaxes. The alignment mode can be tuned with the new configuration variable umanAlignSyntaxes:
    uman 2.0 & default help
    uman 2.1 with umanAlignSyntaxes=""
    uman 2.1 uman 2.1
    with umanAlignSyntaxes="l"
    --> uman who u

    Scilab > Variables > who
    ........................
    USAGES
     who
     who()
     names = who('local')
     [names,mem] = who('local')
     names = who('global')
     [names,mem] = who('global')
     who('sorted')
     names = who('local','sorted')
     [names,mem] = who('local','sorted')
     names = who('global','sorted')
     [names,mem] = who('global','sorted')


    --> uman who u

    Scilab > Variables > who

    ........................
    USAGES
                   who
                   who()
           names = who('local')
     [names,mem] = who('local')
           names = who('global')
     [names,mem] = who('global')
                   who('sorted')
           names = who('local','sorted')
     [names,mem] = who('local','sorted')
           names = who('global','sorted')
     [names,mem] = who('global','sorted')


    --> uman who u

    Scilab > Variables > who
    ........................
    USAGES
                   who
                   who()
     names       = who('local')
     [names,mem] = who('local')
     names       = who('global')
     [names,mem] = who('global')
                   who('sorted')
     names       = who('local','sorted')
     [names,mem] = who('local','sorted')
     names       = who('global','sorted')
     [names,mem] = who('global','sorted')


  • uman help pages are now available in french
  • 19 references / resources added
  • 14 bugs fixed

Online pages


Take it and enjoy.

Samuel Gougeon

------------------------------------------------------------------------------------------------------------
CHANGES 2.0 => 2.1 (2016-10-30)
-------------------------------
NEW FEATURES
 * New configuration variable umanAlignSyntaxes = '' | 'l' | 'r' (default)

IMPROVEMENTS
 * Help pages are now available in french.
 * Console mode: 
   - For a better readability, syntaxes of a function are now aligned. 
     Their justifying is tunable. Examples: who, unwrap, ss2tf, strsplit...
   - When a page has no parameters section, its description section(s) is
     now automatically displayed, even without using the 'd' option

REFERENCES ADDED
 * Redirections
   - internal: stat=>stats
   - to Scilab: bicg, bicgstab, cgs, class, iscell, iscellstr, isinteger,
     isjava, numel, pcg, spdiags, square => squarewave(faux-ami)
   - to external: print_usage
 * FileExchange: GnuSciPlot, Ishikawa, STL
 * ATOMS: forge cglab=>cgal, Dynpeak, FOT, sopi, wgserialxcosio

BUG FIXED
 * 'uman close u' displayed only 'close(H)', forgetting 'close'
 * Changing csvDefault('separator',..) made 'uman' failing.
 * uman ignored any <term> of a <variablelist> having an id.
 * '& ' in a <screen> area yielded an error. 
   Example: 'uman _atomsGettingStarted dc'
 * When a table's row had a single cell, '<td>' was sometimes displayed
 * 'uman bitget lru' did not display the parameters section
 * 'uman author> wb' without section and item yielded an error.
 * 'uman figure_size wb' did not select '... Fig.figure_size=sizes ...' 
 * 'uman [ wb' missed '[a b c ..]' and other entries
 * 'uman ? wb' or 'uman # wb' yielded a Bugzilla error
 * 'uman 12 wb' was accepted while Scilab bugs are numbered starting from 77.
 * 'uman doc/>plot2d wb' did not target the 'Documentation pages' component
 * 'uman doc/><100 wb' yielded an error (no topic)
 * 'uman author> @' used '>' as part of the author name


_______________________________________________
users mailing list
[hidden email]
http://lists.scilab.org/mailman/listinfo/users
Antoine Monmayrant Antoine Monmayrant
Reply | Threaded
Open this post in threaded view
|

Re: uman 2.1 is released

Hi Samuel,

Thanks for this update.
Uman is really a nice addon for Scilab.
I'll try give this version a try.

Cheers,

Antoine

Le 11/11/2016 à 17:50, Samuel Gougeon a écrit :
Hello,

The 2.1 version of the "uman" (user manual) module is released and available for Scilab 5.5 and Scilab 6.
It can be installed or updated with:
--> atomsInstall uman  // then close and restart Scilab

Main features: uman allows
  • to display in the console help pages of Scilab or of external modules or contributions, with chosen sections, in any chosen supported language without switching the session language. The online page can be as well targeted instead.
  • to grab easily all messages from the mailing lists archives about a given feature, function, author,..
  • to easily list bugs reported about a given function or feature

Main changes 2.1 :
  • "uman .. u" and disp_usage() now justify the list of syntaxes. The alignment mode can be tuned with the new configuration variable umanAlignSyntaxes:
    uman 2.0 & default help
    uman 2.1 with umanAlignSyntaxes=""
    uman 2.1 uman 2.1
    with umanAlignSyntaxes="l"
    --> uman who u

    Scilab > Variables > who
    ........................
    USAGES
     who
     who()
     names = who('local')
     [names,mem] = who('local')
     names = who('global')
     [names,mem] = who('global')
     who('sorted')
     names = who('local','sorted')
     [names,mem] = who('local','sorted')
     names = who('global','sorted')
     [names,mem] = who('global','sorted')


    --> uman who u

    Scilab > Variables > who

    ........................
    USAGES
                   who
                   who()
           names = who('local')
     [names,mem] = who('local')
           names = who('global')
     [names,mem] = who('global')
                   who('sorted')
           names = who('local','sorted')
     [names,mem] = who('local','sorted')
           names = who('global','sorted')
     [names,mem] = who('global','sorted')


    --> uman who u

    Scilab > Variables > who
    ........................
    USAGES
                   who
                   who()
     names       = who('local')
     [names,mem] = who('local')
     names       = who('global')
     [names,mem] = who('global')
                   who('sorted')
     names       = who('local','sorted')
     [names,mem] = who('local','sorted')
     names       = who('global','sorted')
     [names,mem] = who('global','sorted')


  • uman help pages are now available in french
  • 19 references / resources added
  • 14 bugs fixed

Online pages


Take it and enjoy.

Samuel Gougeon

------------------------------------------------------------------------------------------------------------
CHANGES 2.0 => 2.1 (2016-10-30)
-------------------------------
NEW FEATURES
 * New configuration variable umanAlignSyntaxes = '' | 'l' | 'r' (default)

IMPROVEMENTS
 * Help pages are now available in french.
 * Console mode: 
   - For a better readability, syntaxes of a function are now aligned. 
     Their justifying is tunable. Examples: who, unwrap, ss2tf, strsplit...
   - When a page has no parameters section, its description section(s) is
     now automatically displayed, even without using the 'd' option

REFERENCES ADDED
 * Redirections
   - internal: stat=>stats
   - to Scilab: bicg, bicgstab, cgs, class, iscell, iscellstr, isinteger,
     isjava, numel, pcg, spdiags, square => squarewave(faux-ami)
   - to external: print_usage
 * FileExchange: GnuSciPlot, Ishikawa, STL
 * ATOMS: forge cglab=>cgal, Dynpeak, FOT, sopi, wgserialxcosio

BUG FIXED
 * 'uman close u' displayed only 'close(H)', forgetting 'close'
 * Changing csvDefault('separator',..) made 'uman' failing.
 * uman ignored any <term> of a <variablelist> having an id.
 * '& ' in a <screen> area yielded an error. 
   Example: 'uman _atomsGettingStarted dc'
 * When a table's row had a single cell, '<td>' was sometimes displayed
 * 'uman bitget lru' did not display the parameters section
 * 'uman author> wb' without section and item yielded an error.
 * 'uman figure_size wb' did not select '... Fig.figure_size=sizes ...' 
 * 'uman [ wb' missed '[a b c ..]' and other entries
 * 'uman ? wb' or 'uman # wb' yielded a Bugzilla error
 * 'uman 12 wb' was accepted while Scilab bugs are numbered starting from 77.
 * 'uman doc/>plot2d wb' did not target the 'Documentation pages' component
 * 'uman doc/><100 wb' yielded an error (no topic)
 * 'uman author> @' used '>' as part of the author name



_______________________________________________
users mailing list
[hidden email]
http://lists.scilab.org/mailman/listinfo/users


-- 
+++++++++++++++++++++++++++++++++++++++++++++++++++++++

 Antoine Monmayrant LAAS - CNRS
 7 avenue du Colonel Roche
 BP 54200
 31031 TOULOUSE Cedex 4
 FRANCE

 Tel:+33 5 61 33 64 59
 
 email : [hidden email]
 permanent email : [hidden email]

+++++++++++++++++++++++++++++++++++++++++++++++++++++++


_______________________________________________
users mailing list
[hidden email]
http://lists.scilab.org/mailman/listinfo/users
Rafael Guerra Rafael Guerra
Reply | Threaded
Open this post in threaded view
|

Re: uman 2.1 is released

Given its usefulness, shouldn’t it be part of the main Scilab distribution, not an add-on?

 

and thanks too.

 

From: users [mailto:[hidden email]] On Behalf Of Antoine Monmayrant
Sent: Wednesday, November 16, 2016 1:50 PM
To: Users mailing list for Scilab <[hidden email]>
Subject: Re: [Scilab-users] uman 2.1 is released

 

Hi Samuel,

Thanks for this update.
Uman is really a nice addon for Scilab.
I'll try give this version a try.

Cheers,

Antoine

Le 11/11/2016 à 17:50, Samuel Gougeon a écrit :

Hello,

The 2.1 version of the "uman" (user manual) module is released and available for Scilab 5.5 and Scilab 6.
It can be installed or updated with:
--> atomsInstall uman  // then close and restart Scilab

Main features: uman allows

  • to display in the console help pages of Scilab or of external modules or contributions, with chosen sections, in any chosen supported language without switching the session language. The online page can be as well targeted instead.
  • to grab easily all messages from the mailing lists archives about a given feature, function, author,..
  • to easily list bugs reported about a given function or feature


Main changes 2.1 :

  • "uman .. u" and disp_usage() now justify the list of syntaxes. The alignment mode can be tuned with the new configuration variable umanAlignSyntaxes:

uman 2.0 & default help
uman 2.1 with umanAlignSyntaxes=""

uman 2.1

uman 2.1
with umanAlignSyntaxes="l"

--> uman who u

Scilab > Variables > who
........................
USAGES
 who
 who()
 names = who('local')
 [names,mem] = who('local')
 names = who('global')
 [names,mem] = who('global')
 who('sorted')
 names = who('local','sorted')
 [names,mem] = who('local','sorted')
 names = who('global','sorted')
 [names,mem] = who('global','sorted')

--> uman who u

Scilab > Variables > who
........................
USAGES
               who
               who()
       names = who('local')
 [names,mem] = who('local')
       names = who('global')
 [names,mem] = who('global')
               who('sorted')
       names = who('local','sorted')
 [names,mem] = who('local','sorted')
       names = who('global','sorted')
 [names,mem] = who('global','sorted')

--> uman who u

Scilab > Variables > who
........................
USAGES
               who
               who()
 names       = who('local')
 [names,mem] = who('local')
 names       = who('global')
 [names,mem] = who('global')
               who('sorted')
 names       = who('local','sorted')
 [names,mem] = who('local','sorted')
 names       = who('global','sorted')
 [names,mem] = who('global','sorted')

  •  
  • uman help pages are now available in french
  • 19 references / resources added
  • 14 bugs fixed

Online pages


Take it and enjoy.

Samuel Gougeon

------------------------------------------------------------------------------------------------------------

CHANGES 2.0 => 2.1 (2016-10-30)
-------------------------------
NEW FEATURES
 * New configuration variable umanAlignSyntaxes = '' | 'l' | 'r' (default)
 
IMPROVEMENTS
 * Help pages are now available in french.
 * Console mode: 
   - For a better readability, syntaxes of a function are now aligned. 
     Their justifying is tunable. Examples: who, unwrap, ss2tf, strsplit...
   - When a page has no parameters section, its description section(s) is
     now automatically displayed, even without using the 'd' option
 
REFERENCES ADDED
 * Redirections
   - internal: stat=>stats
   - to Scilab: bicg, bicgstab, cgs, class, iscell, iscellstr, isinteger,
     isjava, numel, pcg, spdiags, square => squarewave(faux-ami)
   - to external: print_usage
 * FileExchange: GnuSciPlot, Ishikawa, STL
 * ATOMS: forge cglab=>cgal, Dynpeak, FOT, sopi, wgserialxcosio
 
BUG FIXED
 * 'uman close u' displayed only 'close(H)', forgetting 'close'
 * Changing csvDefault('separator',..) made 'uman' failing.
 * uman ignored any <term> of a <variablelist> having an id.
 * '& ' in a <screen> area yielded an error. 
   Example: 'uman _atomsGettingStarted dc'
 * When a table's row had a single cell, '<td>' was sometimes displayed
 * 'uman bitget lru' did not display the parameters section
 * 'uman author> wb' without section and item yielded an error.
 * 'uman figure_size wb' did not select '... Fig.figure_size=sizes ...' 
 * 'uman [ wb' missed '[a b c ..]' and other entries
 * 'uman ? wb' or 'uman # wb' yielded a Bugzilla error
 * 'uman 12 wb' was accepted while Scilab bugs are numbered starting from 77.
 * 'uman doc/>plot2d wb' did not target the 'Documentation pages' component
 * 'uman doc/><100 wb' yielded an error (no topic)
 * 'uman author> @' used '>' as part of the author name





_______________________________________________
users mailing list
[hidden email]
http://lists.scilab.org/mailman/listinfo/users

 

 

-- 
+++++++++++++++++++++++++++++++++++++++++++++++++++++++
 
 Antoine Monmayrant LAAS - CNRS
 7 avenue du Colonel Roche
 BP 54200
 31031 TOULOUSE Cedex 4
 FRANCE
 
 <a href="Tel:&#43;33">Tel:+33 5 61 33 64 59
 
 email : [hidden email]
 permanent email : [hidden email]
 
+++++++++++++++++++++++++++++++++++++++++++++++++++++++
 

_______________________________________________
users mailing list
[hidden email]
http://lists.scilab.org/mailman/listinfo/users
amonmayr amonmayr
Reply | Threaded
Open this post in threaded view
|

Re: ?==?utf-8?q? uman 2.1 is released

Le Mercredi, Novembre 16, 2016 14:02 CET, Rafael Guerra <[hidden email]> a écrit:
 
> Given its usefulness, shouldn't it be part of the main Scilab distribution, not an add-on?

I totally agree with you!
I was about to add this precise comment to my previous email but changed my mind at the last minute.
I don't see exactly what it would take to "merge" it with core scilab and whether Scilab devs and the uman dev would agree on this...

Antoine

>
> and thanks too.
>
> From: users [mailto:[hidden email]] On Behalf Of Antoine Monmayrant
> Sent: Wednesday, November 16, 2016 1:50 PM
> To: Users mailing list for Scilab <[hidden email]>
> Subject: Re: [Scilab-users] uman 2.1 is released
>
> Hi Samuel,
>
> Thanks for this update.
> Uman is really a nice addon for Scilab.
> I'll try give this version a try.
>
> Cheers,
>
> Antoine
>
> Le 11/11/2016 à 17:50, Samuel Gougeon a écrit :
> Hello,
>
> The 2.1 version of the "uman" (user manual) module is released and available for Scilab 5.5 and Scilab 6.
> It can be installed or updated with:
> --> atomsInstall uman  // then close and restart Scilab
>
> Main features: uman allows
>
>   *   to display in the console help pages of Scilab or of external modules or contributions, with chosen sections, in any chosen supported language without switching the session language. The online page can be as well targeted instead.
>   *   to grab easily all messages from the mailing lists archives about a given feature, function, author,..
>   *   to easily list bugs reported about a given function or feature
>
> Main changes 2.1 :
>
>   *   "uman .. u" and disp_usage() now justify the list of syntaxes. The alignment mode can be tuned with the new configuration variable umanAlignSyntaxes:
> uman 2.0 & default help<https://help.scilab.org/docs/6.0.0/en_US/who.html>
> uman 2.1 with umanAlignSyntaxes=""
>
> uman 2.1
>
> uman 2.1
> with umanAlignSyntaxes="l"
>
> --> uman who u
>
> Scilab > Variables > who
> ........................
> USAGES
>  who
>  who()
>  names = who('local')
>  [names,mem] = who('local')
>  names = who('global')
>  [names,mem] = who('global')
>  who('sorted')
>  names = who('local','sorted')
>  [names,mem] = who('local','sorted')
>  names = who('global','sorted')
>  [names,mem] = who('global','sorted')
>
> --> uman who u
>
> Scilab > Variables > who
> ........................
> USAGES
>                who
>                who()
>        names = who('local')
>  [names,mem] = who('local')
>        names = who('global')
>  [names,mem] = who('global')
>                who('sorted')
>        names = who('local','sorted')
>  [names,mem] = who('local','sorted')
>        names = who('global','sorted')
>  [names,mem] = who('global','sorted')
>
> --> uman who u
>
> Scilab > Variables > who
> ........................
> USAGES
>                who
>                who()
>  names       = who('local')
>  [names,mem] = who('local')
>  names       = who('global')
>  [names,mem] = who('global')
>                who('sorted')
>  names       = who('local','sorted')
>  [names,mem] = who('local','sorted')
>  names       = who('global','sorted')
>  [names,mem] = who('global','sorted')
>
>
>   *
>   *   uman help pages are now available in french
>   *   19 references / resources added
>   *   14 bugs fixed
>
> Online pages
>
>   *   ATOMS : http://atoms.scilab.org/toolboxes/uman
>   *   Online help : http://sgougeon.free.fr/scilab/help/uman/scilab_en_US_help
>
> Take it and enjoy.
>
> Samuel Gougeon
> ------------------------------------------------------------------------------------------------------------
>
> CHANGES 2.0 => 2.1 (2016-10-30)
>
> -------------------------------
>
> NEW FEATURES
>
>  * New configuration variable umanAlignSyntaxes = '' | 'l' | 'r' (default)
>
>
>
> IMPROVEMENTS
>
>  * Help pages are now available in french.
>
>  * Console mode:
>
>    - For a better readability, syntaxes of a function are now aligned.
>
>      Their justifying is tunable. Examples: who, unwrap, ss2tf, strsplit...
>
>    - When a page has no parameters section, its description section(s) is
>
>      now automatically displayed, even without using the 'd' option
>
>
>
> REFERENCES ADDED
>
>  * Redirections
>
>    - internal: stat=>stats
>
>    - to Scilab: bicg, bicgstab, cgs, class, iscell, iscellstr, isinteger,
>
>      isjava, numel, pcg, spdiags, square => squarewave(faux-ami)
>
>    - to external: print_usage
>
>  * FileExchange: GnuSciPlot, Ishikawa, STL
>
>  * ATOMS: forge cglab=>cgal, Dynpeak, FOT, sopi, wgserialxcosio
>
>
>
> BUG FIXED
>
>  * 'uman close u' displayed only 'close(H)', forgetting 'close'
>
>  * Changing csvDefault('separator',..) made 'uman' failing.
>
>  * uman ignored any <term> of a <variablelist> having an id.
>
>  * '& ' in a <screen> area yielded an error.
>
>    Example: 'uman _atomsGettingStarted dc'
>
>  * When a table's row had a single cell, '<td>' was sometimes displayed
>
>  * 'uman bitget lru' did not display the parameters section
>
>  * 'uman author> wb' without section and item yielded an error.
>
>  * 'uman figure_size wb' did not select '... Fig.figure_size=sizes ...'
>
>  * 'uman [ wb' missed '[a b c ..]' and other entries
>
>  * 'uman ? wb' or 'uman # wb' yielded a Bugzilla error
>
>  * 'uman 12 wb' was accepted while Scilab bugs are numbered starting from 77.
>
>  * 'uman doc/>plot2d wb' did not target the 'Documentation pages' component
>
>  * 'uman doc/><100 wb' yielded an error (no topic)
>
>  * 'uman author> @' used '>' as part of the author name
>
>
>
>
>
> _______________________________________________
>
> users mailing list
>
> [hidden email]<mailto:[hidden email]>
>
> http://lists.scilab.org/mailman/listinfo/users
>
>
>
>
> --
>
> +++++++++++++++++++++++++++++++++++++++++++++++++++++++
>
>
>
>  Antoine Monmayrant LAAS - CNRS
>
>  7 avenue du Colonel Roche
>
>  BP 54200
>
>  31031 TOULOUSE Cedex 4
>
>  FRANCE
>
>
>
>  Tel:+33 5 61 33 64 59
>
>
>
>  email : [hidden email]<mailto:[hidden email]>
>
>  permanent email : [hidden email]<mailto:[hidden email]>
>
>
>
> +++++++++++++++++++++++++++++++++++++++++++++++++++++++
>
>

_______________________________________________
users mailing list
[hidden email]
http://lists.scilab.org/mailman/listinfo/users
Jens Jens
Reply | Threaded
Open this post in threaded view
|

[Scilab-users] pinkification of xs2jpg exported images

Hi ,
After exporting  a figure (produced with plot3d and param3d) I find an
ugly pink color behind the object when I open the image by Irfanview. On
screen there is white as required. I am not talking about the figure
property 'background'. That is well contolled.
How can I change pink  (close to 'Scilab pink 4',  255 128,128) into
simple white as on the screen?

Regards
Jens

_______________________________________________
users mailing list
[hidden email]
http://lists.scilab.org/mailman/listinfo/users
Samuel GOUGEON Samuel GOUGEON
Reply | Threaded
Open this post in threaded view
|

Re: pinkification of xs2jpg exported images

Le 17/11/2016 20:30, Jens Simon Strom a écrit :
> Hi ,
> After exporting  a figure (produced with plot3d and param3d) I find an
> ugly pink color behind the object when I open the image by Irfanview.
> On screen there is white as required. I am not talking about the
> figure property 'background'. That is well contolled.
> How can I change pink  (close to 'Scilab pink 4',  255 128,128) into
> simple white as on the screen?

This bug and its workaround are reported there:
http://bugzilla.scilab.org/14264

_______________________________________________
users mailing list
[hidden email]
http://lists.scilab.org/mailman/listinfo/users
Jens Jens
Reply | Threaded
Open this post in threaded view
|

Re: pinkification of xs2jpg exported images

Thanks Samuel,
If I try

driver JPG;
 xinit test.jpg;
 surf();
 f = gcf();
 f.figure_size = [1000 800];
 xend winopen test.jpg

Scilab freezes and I don't know where or if test.jpg is saved.

If I try

MyDir='...';
previous_driver = driver('jpg');
 xinit(MyDir+'/PinkOrNotPink.jpg');
 plot3d();
 xend();
driver(previous_driver); // Bring back the previous behavior of Scilab

I get PinkOrNotPink.jpg in MyDir - but still pink.

Maybe I misunderstood the workaround. Could you give further clues?

Regards
Jens
--------------------------------------


Am 17.11.2016 20:39, schrieb Samuel Gougeon:
Le 17/11/2016 20:30, Jens Simon Strom a écrit :
Hi ,
After exporting  a figure (produced with plot3d and param3d) I find an ugly pink color behind the object when I open the image by Irfanview. On screen there is white as required. I am not talking about the figure property 'background'. That is well contolled.
How can I change pink  (close to 'Scilab pink 4',  255 128,128) into simple white as on the screen?

This bug and its workaround are reported there: http://bugzilla.scilab.org/14264

_______________________________________________
users mailing list
[hidden email]
http://lists.scilab.org/mailman/listinfo/users



_______________________________________________
users mailing list
[hidden email]
http://lists.scilab.org/mailman/listinfo/users
Samuel GOUGEON Samuel GOUGEON
Reply | Threaded
Open this post in threaded view
|

Re: pinkification of xs2jpg exported images

>driver JPG;
>xinit test.jpg;
>surf ();
>f = gcf ();
>f.figure_size = [1000 800];
>xend winopen test.jpg
>
>Scilab freezes and I don't know where or if test.jpg is saved.

If you really write
xend winopen test.jpg

winopen and test.jpg are taken as xend() arguments.
The space is not a separator between consecutive instructions.

xend
winopen test.jpg

should work as expected instead, or

xend, winopen test.jpg

_______________________________________________
users mailing list
[hidden email]
http://lists.scilab.org/mailman/listinfo/users
Jens Jens
Reply | Threaded
Open this post in threaded view
|

Re: pinkification of xs2jpg exported images

It's not the trivial cause.

xend
  and
winopen test.jpg

were in two separate lines in my test. I tried again today and Scilab 5.5.2 freezed again. The only way to get out is Ctrl+Alt+Del.
However after deleting an already existing figure on the screen by xdel() the workaround works.

I have still problems with xinit/xend while saving images in a loop. The image generated in the next loop passage shall contain the content of the former ones. When I am ready to ask I will open a new post.

Regards
Jens
--------------------------------------------------------------------------

Am 18.11.2016 08:57, schrieb [hidden email]:

>> driver JPG;
>> xinit test.jpg;
>> surf ();
>> f = gcf ();
>> f.figure_size = [1000 800];
>> xend winopen test.jpg
>>
>> Scilab freezes and I don't know where or if test.jpg is saved.
> If you really write
> xend winopen test.jpg
>
> winopen and test.jpg are taken as xend() arguments.
> The space is not a separator between consecutive instructions.
>
> xend
> winopen test.jpg
>
> should work as expected instead, or
>
> xend, winopen test.jpg
>
> _______________________________________________
> users mailing list
> [hidden email]
> http://lists.scilab.org/mailman/listinfo/users
>

_______________________________________________
users mailing list
[hidden email]
http://lists.scilab.org/mailman/listinfo/users
Jens Jens
Reply | Threaded
Open this post in threaded view
|

[Scilab-users] Exporting graphics as non pink jpg with xinit/xend

In reply to this post by Samuel GOUGEON
Hi,
In the following script I would like to save the sequential plot result as a pinkless jpg. I found no way to adapt the xinit/xend workaround (for xs2jpg) to this case. After execution I would like to have three JPGs containing one, two and three lines .
xdel()
for i=1:3
    x=[0 1];
    plot(x,i*x) 
    halt()
end
In my real project the plots are param3d and plot3d. I hope that makes no difference.

Hoping for help with kind regards
Jens






_______________________________________________
users mailing list
[hidden email]
http://lists.scilab.org/mailman/listinfo/users
Jens Jens
Reply | Threaded
Open this post in threaded view
|

Re: Exporting graphics as non pink jpg with xinit/xend

Correction: The first phrase should read: In the following script I would like to save the sequential plots as (pinkless) JPGs.

Am 18.11.2016 20:30, schrieb Jens Simon Strom:
Hi,
In the following script I would like to save the sequential plot result as a pinkless jpg. I found no way to adapt the xinit/xend workaround (for xs2jpg) to this case. After execution I would like to have three JPGs containing one, two and three lines .
xdel()
for i=1:3
    x=[0 1];
    plot(x,i*x) 
    halt()
end
In my real project the plots are param3d and plot3d. I hope that makes no difference.

Hoping for help with kind regards
Jens







_______________________________________________
users mailing list
[hidden email]
http://lists.scilab.org/mailman/listinfo/users
Samuel GOUGEON Samuel GOUGEON
Reply | Threaded
Open this post in threaded view
|

Re: Exporting graphics as non pink jpg with xinit/xend

Le 18/11/2016 20:43, Jens Simon Strom a écrit :
Correction: The first phrase should read: In the following script I would like to save the sequential plots as (pinkless) JPGs.
Which version of Scilab are you using?



_______________________________________________
users mailing list
[hidden email]
http://lists.scilab.org/mailman/listinfo/users
Jens Jens
Reply | Threaded
Open this post in threaded view
|

Re: Exporting graphics as non pink jpg with xinit/xend

It is 5.5.2. Thanks for responding so fast!
Jens
----------------------------------------------
Am 18.11.2016 21:42, schrieb Samuel Gougeon:
Le 18/11/2016 20:43, Jens Simon Strom a écrit :
Correction: The first phrase should read: In the following script I would like to save the sequential plots as (pinkless) JPGs.
Which version of Scilab are you using?




_______________________________________________
users mailing list
[hidden email]
http://lists.scilab.org/mailman/listinfo/users


_______________________________________________
users mailing list
[hidden email]
http://lists.scilab.org/mailman/listinfo/users
Rafael Guerra Rafael Guerra
Reply | Threaded
Open this post in threaded view
|

Re: Exporting graphics as non pink jpg with xinit/xend

In reply to this post by Jens

Hi Jens,

 

Just to let you know that in my Win7 Scilab 5.5.2 installation, the code here below outputs 3 proper JPEGs with no pink colors:

 

////// START OF CODE

driver("JPG");

xdel()

for i=1:3

    str = "test" + string(i) + ".jpg";

    xinit(str);

    x=[0 1];

    plot(x,i*x)

    f = gcf();

    xend();

    winopen(str);

    halt()

end

////// END OF CODE

 

PS: all 3 files look good in IrfanView 64-bits.

 

Regards,

Rafael

 

 

From: users [mailto:[hidden email]] On Behalf Of Jens Simon Strom
Sent: Friday, November 18, 2016 8:44 PM
To: Users mailing list for Scilab <[hidden email]>
Subject: Re: [Scilab-users] Exporting graphics as non pink jpg with xinit/xend

 

Correction: The first phrase should read: In the following script I would like to save the sequential plots as (pinkless) JPGs.

Am 18.11.2016 20:30, schrieb Jens Simon Strom:

Hi,
In the following script I would like to save the sequential plot result as a pinkless jpg. I found no way to adapt the xinit/xend workaround (for xs2jpg) to this case. After execution I would like to have three JPGs containing one, two and three lines .

xdel()
for i=1:3
    x=[0 1];
    plot(x,i*x) 
    halt()
end

In my real project the plots are param3d and plot3d. I hope that makes no difference.

Hoping for help with kind regards
Jens




 


_______________________________________________
users mailing list
[hidden email]
http://lists.scilab.org/mailman/listinfo/users
Jens Jens
Reply | Threaded
Open this post in threaded view
|

Re: Exporting graphics as non pink jpg with xinit/xend

Thanks Rafael,

The three files are not pink (which is great) but do not show what I want. I want to have superposed plots, i.e.
test1.jpg should show one line (namely (x,1*x), that's the case)
test2.jpg should show two lines (namely (x,2*x) and (x,1*x), that's not the case)
test3.jpg should show three lines (namely (x,3*x) and (x,2*x) and (x,1*x,that's not the case)

Consecutive plots are normally superposed in Scilab. But here we get just the new ones.

Do you see a way to unpink superposed plots? I am trying for hours with no succes.

Kind regards
Jens
------------------------------------------------------



Am 19.11.2016 10:15, schrieb Rafael Guerra:

Hi Jens,

 

Just to let you know that in my Win7 Scilab 5.5.2 installation, the code here below outputs 3 proper JPEGs with no pink colors:

 

////// START OF CODE

driver("JPG");

xdel()

for i=1:3

    str = "test" + string(i) + ".jpg";

    xinit(str);

    x=[0 1];

    plot(x,i*x)

    f = gcf();

    xend();

    winopen(str);

    halt()

end

////// END OF CODE

 

PS: all 3 files look good in IrfanView 64-bits.

 

Regards,

Rafael

 

 

From: users [[hidden email]] On Behalf Of Jens Simon Strom
Sent: Friday, November 18, 2016 8:44 PM
To: Users mailing list for Scilab [hidden email]
Subject: Re: [Scilab-users] Exporting graphics as non pink jpg with xinit/xend

 

Correction: The first phrase should read: In the following script I would like to save the sequential plots as (pinkless) JPGs.

Am 18.11.2016 20:30, schrieb Jens Simon Strom:

Hi,
In the following script I would like to save the sequential plot result as a pinkless jpg. I found no way to adapt the xinit/xend workaround (for xs2jpg) to this case. After execution I would like to have three JPGs containing one, two and three lines .

xdel()
for i=1:3
    x=[0 1];
    plot(x,i*x) 
    halt()
end

In my real project the plots are param3d and plot3d. I hope that makes no difference.

Hoping for help with kind regards
Jens




 



_______________________________________________
users mailing list
[hidden email]
http://lists.scilab.org/mailman/listinfo/users


_______________________________________________
users mailing list
[hidden email]
http://lists.scilab.org/mailman/listinfo/users
Rafael Guerra Rafael Guerra
Reply | Threaded
Open this post in threaded view
|

Re: Exporting graphics as non pink jpg with xinit/xend

In reply to this post by Jens

Jens,

 

Check the following with an extra loop, it works fine for me:

 

///// START OF CODE

driver("JPG");

xdel()

y=[];

for i=1:3

    str = "test" + string(i) + ".jpg";

    xinit(str);

    x=[0 1];

    y(i,:)= j*x;

    for j=1:i

        plot(x,y(j,:));

    end

    xend();

end

///// END OF CODE

 

Regards,

Rafael

 

From: users [mailto:[hidden email]] On Behalf Of Jens Simon Strom
Sent: Saturday, November 19, 2016 10:56 AM
To: Users mailing list for Scilab <[hidden email]>
Subject: Re: [Scilab-users] Exporting graphics as non pink jpg with xinit/xend

 

Thanks Rafael,

The three files are not pink (which is great) but do not show what I want. I want to have superposed plots, i.e.
test1.jpg should show one line (namely
(x,1*x), that's the case)
test2.jpg should show two lines (namely
(x,2*x) and (x,1*x), that's not the case)
test3.jpg should show three lines (namely
(x,3*x) and (x,2*x) and (x,1*x,that's not the case)

Consecutive plots are normally superposed in Scilab. But here we get just the new ones.

Do you see a way to unpink superposed plots? I am trying for hours with no succes.

Kind regards
Jens
------------------------------------------------------


Am 19.11.2016 10:15, schrieb Rafael Guerra:

Hi Jens,

 

Just to let you know that in my Win7 Scilab 5.5.2 installation, the code here below outputs 3 proper JPEGs with no pink colors:

 

////// START OF CODE

driver("JPG");

xdel()

for i=1:3

    str = "test" + string(i) + ".jpg";

    xinit(str);

    x=[0 1];

    plot(x,i*x)

    f = gcf();

    xend();

    winopen(str);

    halt()

end

////// END OF CODE

 

PS: all 3 files look good in IrfanView 64-bits.

 

Regards,

Rafael

 

 

From: users [[hidden email]] On Behalf Of Jens Simon Strom
Sent: Friday, November 18, 2016 8:44 PM
To: Users mailing list for Scilab [hidden email]
Subject: Re: [Scilab-users] Exporting graphics as non pink jpg with xinit/xend

 

Correction: The first phrase should read: In the following script I would like to save the sequential plots as (pinkless) JPGs.

Am 18.11.2016 20:30, schrieb Jens Simon Strom:

Hi,
In the following script I would like to save the sequential plot result as a pinkless jpg. I found no way to adapt the xinit/xend workaround (for xs2jpg) to this case. After execution I would like to have three JPGs containing one, two and three lines .

xdel()
for i=1:3
    x=[0 1];
    plot(x,i*x) 
    halt()
end

In my real project the plots are param3d and plot3d. I hope that makes no difference.

Hoping for help with kind regards
Jens




 




_______________________________________________
users mailing list
[hidden email]
http://lists.scilab.org/mailman/listinfo/users

 


_______________________________________________
users mailing list
[hidden email]
http://lists.scilab.org/mailman/listinfo/users
Claus Futtrup Claus Futtrup
Reply | Threaded
Open this post in threaded view
|

Re: Exporting graphics as non pink jpg with xinit/xend

In reply to this post by Jens
Hi Jens

I ran below code and there's nothing pink about it. I'm using Scilab 5.5.0 on a Win10 machine.

In the past I've experienced on a Win7 machine that the viewer in Windows would give all plots a yellow-ish glaze.

Jens - have you tried to view the exported JPEG file in various software? It could be your viewer...

Alternatively, have you tried exporting to e.g. PNG instead of JPG?

If you conclude it's Scilab, then I think you have a corrupt library file somewhere and maybe it could be resolved by a fresh reinstall of Scilab.

/Claus

On 18-11-2016 20:43, Jens Simon Strom wrote:
Correction: The first phrase should read: In the following script I would like to save the sequential plots as (pinkless) JPGs.

Am 18.11.2016 20:30, schrieb Jens Simon Strom:
Hi,
In the following script I would like to save the sequential plot result as a pinkless jpg. I found no way to adapt the xinit/xend workaround (for xs2jpg) to this case. After execution I would like to have three JPGs containing one, two and three lines .
xdel()
for i=1:3
    x=[0 1];
    plot(x,i*x) 
    halt()
end
In my real project the plots are param3d and plot3d. I hope that makes no difference.

Hoping for help with kind regards
Jens








_______________________________________________
users mailing list
[hidden email]
http://lists.scilab.org/mailman/listinfo/users



_______________________________________________
users mailing list
[hidden email]
http://lists.scilab.org/mailman/listinfo/users
Rafael Guerra Rafael Guerra
Reply | Threaded
Open this post in threaded view
|

Re: Exporting graphics as non pink jpg with xinit/xend

In reply to this post by Jens

There was a small obvious typo on last code provide (‘j’ -> “i”). Corrected below.

One remark: the first time I ran the code snippet, the first file output “test1.jpg” was sort of empty and pink, but not the two other files. During subsequent trials the issue did not repeat.

 

///// START OF CODE

driver("JPG");

xdel()

y=[];

for i=1:3

    str = "test" + string(i) + ".jpg";

    xinit(str);

    x=[0 1];

    y(i,:)= i*x;

    for j=1:i

        plot(x,y(j,:));

    end

    xend();

end

///// END OF CODE

 

Regards,

Rafael

 

From: users [[hidden email]] On Behalf Of Jens Simon Strom
Sent: Saturday, November 19, 2016 10:56 AM
To: Users mailing list for Scilab <[hidden email]>
Subject: Re: [Scilab-users] Exporting graphics as non pink jpg with xinit/xend

 

Thanks Rafael,

The three files are not pink (which is great) but do not show what I want. I want to have superposed plots, i.e.
test1.jpg should show one line (namely
(x,1*x), that's the case)
test2.jpg should show two lines (namely
(x,2*x) and (x,1*x), that's not the case)
test3.jpg should show three lines (namely
(x,3*x) and (x,2*x) and (x,1*x,that's not the case)

Consecutive plots are normally superposed in Scilab. But here we get just the new ones.

Do you see a way to unpink superposed plots? I am trying for hours with no succes.

Kind regards
Jens
------------------------------------------------------

 


_______________________________________________
users mailing list
[hidden email]
http://lists.scilab.org/mailman/listinfo/users
Samuel GOUGEON Samuel GOUGEON
Reply | Threaded
Open this post in threaded view
|

Re: Exporting graphics as non pink jpg with xinit/xend

In reply to this post by Claus Futtrup
Le 19/11/2016 11:37, Claus Futtrup a écrit :
Hi Jens

I ran below code and there's nothing pink about it. I'm using Scilab 5.5.0 on a Win10 machine.
The bug occurred with Scilab > 5.4.0 only for certain hardwares (not really identified), not all. See the report.
So Jens may experiment it without that you get the same. Lucky you are.



_______________________________________________
users mailing list
[hidden email]
http://lists.scilab.org/mailman/listinfo/users
Samuel GOUGEON Samuel GOUGEON
Reply | Threaded
Open this post in threaded view
|

Re: pinkification of xs2jpg exported images

In reply to this post by Jens
By the way, could you please open a new thread next time, instead of
branching the "uman" one?
This help distinguising things in the archives, and so more easily get
informations back when searching in them.
Thanks

Le 17/11/2016 20:30, Jens Simon Strom a écrit :

> Hi ,
> After exporting  a figure (produced with plot3d and param3d) I find an
> ugly pink color behind the object when I open the image by Irfanview.
> On screen there is white as required. I am not talking about the
> figure property 'background'. That is well contolled.
> How can I change pink  (close to 'Scilab pink 4',  255 128,128) into
> simple white as on the screen?
>
> Regards
> Jens

_______________________________________________
users mailing list
[hidden email]
http://lists.scilab.org/mailman/listinfo/users
12