Re: [Scilab-users] labels for 2 y-axes in plot

2017-03-10 Thread Samuel Gougeon

Le 10/03/2017 à 21:00, Samuel Gougeon a écrit :

Le 10/03/2017 à 18:16, Erhy a écrit :

Thank you Samuel.
I hoped for a handle of an already existing ax*i*s after newax*e*s()

newaxes() creates its own set of axes with calling drawaxis().

Sorry, please read:
newaxes() creates its own set of axes *without* calling drawaxis().

As already answered on 2017-03-02 23:19, axes created by newaxes() 
can't be modified separately. 


___
users mailing list
users@lists.scilab.org
http://lists.scilab.org/mailman/listinfo/users


Re: [Scilab-users] labels for 2 y-axes in plot

2017-03-10 Thread Samuel Gougeon

Le 10/03/2017 à 18:16, Erhy a écrit :

Thank you Samuel.
I hoped for a handle of an already existing ax*i*s after newax*e*s()

newaxes() creates its own set of axes with calling drawaxis().
As already answered on 2017-03-02 23:19, axes created by newaxes() can't 
be modified separately.


___
users mailing list
users@lists.scilab.org
http://lists.scilab.org/mailman/listinfo/users


Re: [Scilab-users] labels for 2 y-axes in plot

2017-03-10 Thread Erhy
Thank you Samuel.
I hoped for a handle of an already existing ax*i*s after newax*e*s()



--
View this message in context: 
http://mailinglists.scilab.org/labels-for-2-y-axes-in-plot-tp4035658p4035784.html
Sent from the Scilab users - Mailing Lists Archives mailing list archive at 
Nabble.com.
___
users mailing list
users@lists.scilab.org
http://lists.scilab.org/mailman/listinfo/users


Re: [Scilab-users] labels for 2 y-axes in plot

2017-03-10 Thread sgougeon

>now I see there is also a function
>*drawaxis*.
>Is it possible to get a *handle* of the X-axis alone to modify the color and 
>appearance of only one axis?

As indicated in its help page, just use the drawaxis output:

HandleOfMyAdditionalAxis = drawaxis(..);
___
users mailing list
users@lists.scilab.org
http://lists.scilab.org/mailman/listinfo/users


Re: [Scilab-users] labels for 2 y-axes in plot

2017-03-10 Thread Erhy
now I see there is also a function
*drawaxis*.
Is it possible to get a *handle* of the X-axis alone
to modify the color and appearance of only one axis?

Thank You
Erhy



--
View this message in context: 
http://mailinglists.scilab.org/labels-for-2-y-axes-in-plot-tp4035658p4035782.html
Sent from the Scilab users - Mailing Lists Archives mailing list archive at 
Nabble.com.
___
users mailing list
users@lists.scilab.org
http://lists.scilab.org/mailman/listinfo/users


Re: [Scilab-users] Extraction of unusual fields of custom mlist in Scilab 6

2017-03-10 Thread Clément David
Hi Pierre,

Nice catch, could you open a bug on that ?

The bug is also much more understandable with :

a = mlist(['mytype']);
b = mlist(['myothertype']);
function out = %mytype_e(varargin)
var   = varargin($);
field = varargin(1);
disp(typeof(varargin))
disp(typeof(var))
disp(typeof(field))
out = [];
endfunction
a(b);

Which display that var and field does not have the same type nor value when 
there is only 1 argument
:/ .

Thanks,

--
Clément
___
users mailing list
users@lists.scilab.org
http://lists.scilab.org/mailman/listinfo/users


[Scilab-users] Not-Equal-Operation (<>, ~=) with UserType arguments badly crashes Scilab 6.0.0

2017-03-10 Thread Dirk Reusch
Hello,

Using precompiled Scilab 6.0.0 Linux 64bit, the following procedure
crashes Scilab silently ...

Startup execution:
  loading initial environment

-->
exec('/home/dirk/Downloads/scilab-6.0.0/modules/ast/tests/unit_tests/newtype.tst',-1)

This is my type.

 %nt_p: This is my type.

--> a==a

Undefined operation for the given operands.
check or define function %nt_o_nt for overloading.

--> a<>a

... SCILAB CRASHES !!!


Thanks for any advice and further insight,

Dirk

PS: Tested also with current nightly build ... with the very same crash
result!
___
users mailing list
users@lists.scilab.org
http://lists.scilab.org/mailman/listinfo/users


Re: [Scilab-users] ?==?utf-8?q? Plots for scientific papers

2017-03-10 Thread Pierre Vuillemin
Hi all, 

* the last version no longer assumes that there is a legend,
* I've added a doc (header) with an example that should clarify the
options. I tend to use structure for options, i.e.

opt.line_thickness = 2 

prettify(h, opt) 

* now, the z-axis should also be modified.

Regards, 

Pierre 

nb: again, the last version is on my github [1]. 

Le 09.03.2017 20:10, Jens Simon Strom a écrit :

> Hallo Pierre,
> prettyfy is great. It will save many people a lot of time and trouble. I do 
> not often use a legend. Leaving it out produces an error and using an empty 
> one looks ugly. So that's my suggestion.
> Kind regards
> Jens
> --
> Am 08.03.2017 18:28, schrieb Pierre Vuillemin: 
> 
> I may complete the script over time if you have some suggestions. 
> 
> Until then, I don't see any difference when changing the value of the 
> anti-aliasing option, does someone know if it is still functional? 
> 
> Regards, 
> 
> Pierre 
> Le 08/03/2017 à 16:29, Claus Futtrup a écrit : 
> Hi Pierre and Antoine
> 
> Thank you very much for your help. This is very inspiring and encouraging.
> 
> Best regards,
> Claus
> 
> On 08-03-2017 11:41, Pierre Vuillemin wrote: Following Antoine's idea, find 
> enclosed an example on how you can automate the process of improving your 
> plots. This is obviously incomplete but it gives a general idea. 
> 
> Hope it helps, 
> 
> Pierre 
> 
> Le 08.03.2017 10:08, Antoine Monmayrant a écrit : 
> It's definetly possible to do it. 
> In my group, we usually: 
> - set decent default values for the default figure ( hd=gdf() ): 
> increase font size, ... 
> - fix the ticks madness (ie replace [0. 0.167 0.333 0.5 0.667 0.833 1. 
> ] ticks by [0. 0.25 0.5 0.75 1.]) 
> - use the latex rendering for all the text, including ticks labels: 
> - for ticks¹, just prepend & append "$" to the labels: ["0"; "0.25"; 
> "0.5"; "0.75"; "1"]->["$0$"; "$0.25$"; "$0.5$"; "$0.75$"; "$1$"]. 
> - for text, use "$\text{" and "}$" : "$\text{Your fancy text rendered 
> in Latex: \lambda^\beta}$" 
> - Export in a vectorial format, I prefer svg. 
> - Apply some cosmetic changes, add arrows, "(a)", "(b)", ... using Inkscape 
> - Generate a pdf version. 
> 
> Hope it helps, 
> 
> Antoine 
> ¹ We have a script to clean up the ticks: it sets a decent number of 
> ticks, and automate the prepend/append of "$". 
> 
> Le Mardi, Mars 07, 2017 20:35 CET, Claus Futtrup  a 
> écrit: 
> 
> Hi 
> 
> I'm using Python matplotlib for some graphs for scientific papers. The 
> reason is that the font and all seems to fit very well with the LaTeX 
> document. 
> 
> I know that Scilab can accept MathML (or LaTeX) expressions. Is there a 
> simple way to configure Scilab for similar high-quality plots? ... I'd 
> like all text to be nice looking, i.e. the title, the x-axis and y-axis 
> labels, the legend, etc. 
> 
> Best regards, 
> 
> Claus 
> 
> ___ 
> users mailing list 
> users@lists.scilab.org 
> http://lists.scilab.org/mailman/listinfo/users 
> 
> ___ 
> users mailing list 
> users@lists.scilab.org 
> http://lists.scilab.org/mailman/listinfo/users

___
users mailing list
users@lists.scilab.org
http://lists.scilab.org/mailman/listinfo/users

___
users mailing list
users@lists.scilab.org
http://lists.scilab.org/mailman/listinfo/users

___
users mailing list
users@lists.scilab.org
http://lists.scilab.org/mailman/listinfo/users

___
users mailing list
users@lists.scilab.org
http://lists.scilab.org/mailman/listinfo/users 

 

Links:
--
[1]
https://github.com/pivui/scilabTools/blob/master/prettify/prettify.sci___
users mailing list
users@lists.scilab.org
http://lists.scilab.org/mailman/listinfo/users