Re: [Scilab-users] Plot with two different y-axis as one plot

2016-09-28 Thread Frieder Nikolaisen

Thank you.

Am 28.09.2016 12:35, schrieb sgoug...@free.fr:

Hello,


I did attach a plot, now 20kB, of a pump from an old exam. The plot
does provide SI dimensions as well as US ones. Thats why there are 
three

x-axis and two y-axis.


For this kind of case where
 * you want different axes _for the same data_
 * all expected axes are linear (not logarithmic),
drawaxis() can be used to add extra axes, instead of newaxes().

HTH
Samuel Gougeon
___
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


Re: [Scilab-users] Plot with two different y-axis as one plot

2016-09-28 Thread sgougeon
Hello,

>I did attach a plot, now 20kB, of a pump from an old exam. The plot 
>does provide SI dimensions as well as US ones. Thats why there are three 
>x-axis and two y-axis.

For this kind of case where
 * you want different axes _for the same data_
 * all expected axes are linear (not logarithmic),
drawaxis() can be used to add extra axes, instead of newaxes().

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


Re: [Scilab-users] Plot with two different y-axis as one plot

2016-09-28 Thread Frieder Nikolaisen

Dear Mr. Gougeon´,


my mail was blocked, because I had a 150kB Picture attached...

I did you the plotyyy demo for my Programm. It's a nice result. I still 
have a Trouble by putting the plots on each other: I did build a user 
Interface with the guibuilder tool 3.0. There I did use the Axes tool to 
have my plotyyy in the same window. But only my ploty ist plotted in the 
White area and the other two plots are in the entire window. How to 
solve this?



I did attach a plot, now 20kB, of a pump from an old exam. The plot 
does provide SI dimensions as well as US ones. Thats why there are three 
x-axis and two y-axis.


Best regards
Frieder Nikolaisen


Am 26.09.2016 18:29, schrieb sgoug...@free.fr:

De: "Frieder Nikolaisen"
.../...
I do use the ScilabHelp, but I cannot find a plotyyy. That isn't the 
Demos?


no. To get and use the demos manager, you may run
--> demo_gui


.../... In this case, if I zoom in after
plotting, that might be called interactiv, I only zoom in the later
plotted graph, not both. So I cannot compare both Graphs, because 
they

are now related to two "different" x-axis.


Sure. This is the bug fixed last summer.
Installing the most recent nightly release of Scilab takes 3 mn
and does not require uninstalling your running stable 5.5.2 release.
You may have as many different Scilab installed versions as you want,
in parallel. This is a common situation for developers or others.


There isn't a plotyyy function in SciLab, only the workaround?

It is not a work-around. A native plotyyy() is not really needed.
Then why not a plot, ploty, plotxx, plotxxx, plotxxyy, etc?
Such a collection would be quite meaningless.
Only the fact that you can build the desired multiaxes plot function
of your dream and needs is meaningful. Scilab enables you to do so.



What do you mean by "2 on both sides"?


Having four Graphs with four different y-axis (instead of only two).
It's quite common in my field of engineering.


Would you have a snapshot of such a plot?
When there are really many plots sharing the same x-axis for 
different y

scales, another solution is to use subplot(n,1,i) instructions with
multiple plot2d(x, yi) with the shared x absissae.

HTH
Regards
Samuel Gougeon
___
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


Re: [Scilab-users] Plot with two different y-axis as one plot

2016-09-26 Thread sgougeon
>De: "Frieder Nikolaisen"
>.../...
>I do use the ScilabHelp, but I cannot find a plotyyy. That isn't the Demos?

no. To get and use the demos manager, you may run
--> demo_gui

>.../... In this case, if I zoom in after 
>plotting, that might be called interactiv, I only zoom in the later 
>plotted graph, not both. So I cannot compare both Graphs, because they 
>are now related to two "different" x-axis. 

Sure. This is the bug fixed last summer.
Installing the most recent nightly release of Scilab takes 3 mn
and does not require uninstalling your running stable 5.5.2 release.
You may have as many different Scilab installed versions as you want,
in parallel. This is a common situation for developers or others.

>There isn't a plotyyy function in SciLab, only the workaround?
It is not a work-around. A native plotyyy() is not really needed.
Then why not a plot, ploty, plotxx, plotxxx, plotxxyy, etc? 
Such a collection would be quite meaningless.
Only the fact that you can build the desired multiaxes plot function
of your dream and needs is meaningful. Scilab enables you to do so.


>> What do you mean by "2 on both sides"?
>
>Having four Graphs with four different y-axis (instead of only two). 
>It's quite common in my field of engineering.

Would you have a snapshot of such a plot?
When there are really many plots sharing the same x-axis for different y
scales, another solution is to use subplot(n,1,i) instructions with
multiple plot2d(x, yi) with the shared x absissae.

HTH
Regards
Samuel Gougeon
___
users mailing list
users@lists.scilab.org
http://lists.scilab.org/mailman/listinfo/users


Re: [Scilab-users] Plot with two different y-axis as one plot

2016-09-26 Thread Frieder Nikolaisen

Hello Mr. Gougeon,

thanks for your fast reply. I have the SCILAB build 5.5.2


I do use the ScilabHelp, but I cannot find a plotyyy. That isn't the 
Demos? I found online by searching scilab Demos plotyyy: 
http://gitweb.scilab.org/?p=scilab.git;a=commitdiff_plain;h=3a6f9d2f2634f286b686875725f4346dc3aaeeb6 
(your are the author)


That isn't quite different to my Code, as there is added a new axis and 
the Background is transparent. In this case, if I zoom in after 
plotting, that might be called interactiv, I only zoom in the later 
plotted graph, not both. So I cannot compare both Graphs, because they 
are now related to two "different" x-axis. There isn't a plotyyy 
function in SciLab, only the workaround?



What do you mean by "2 on both sides"?


Having four Graphs with four different y-axis (instead of only two). 
It's quite common in my field of engineering.


Best Regards,
Frieder Nikolaisen



Am 26.09.2016 14:18, schrieb sgoug...@free.fr:

Hello,


De: "Frieder Nikolaisen"
Envoyé: Lundi 26 Septembre 2016 13:27:35
Objet: [Scilab-users] Plot with two different y-axis as one plot

Dear Sir or Madam,

I want to print a Diagramm with two different y-axis and one x-axis. 
I
want to zoom both plots at the same time after plotting. With my 
Code, I

only zoom the secound plot. How could I plot it in a propperway?


Assuming that you are speaking about the interactive zoom:
This bug that was a regression from Scilab 5.4.0 was greatly fixed
by Caio during the last Google Summer Of Code.
You may download the nightly built release and use it for this 
purpose:

http://www.scilab.org/fr/development/nightly_builds/master


.../...

I would even like to have four y-axis, two of both sides in the same
Color as the graph. How to do this?


What do you mean by "2 on both sides"?
In Scilab, AFAIK, it is not possible to choose the side of each axis
on which ticks and labels are drawn. There is a trick to do that,
but it's neither straightforward nor handy.

In the demos, there is a Graphics => Plot 2D and 3D => plotyyy
example for plotting 3 y-axes with 3 different scales.
You may see its code and mimic it.

Regards
Samuel Gougeon
___
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


Re: [Scilab-users] Plot with two different y-axis as one plot

2016-09-26 Thread sgougeon
Hello,

>De: "Frieder Nikolaisen"
>Envoyé: Lundi 26 Septembre 2016 13:27:35
>Objet: [Scilab-users] Plot with two different y-axis as one plot
>
>Dear Sir or Madam,
>
>I want to print a Diagramm with two different y-axis and one x-axis. I 
>want to zoom both plots at the same time after plotting. With my Code, I 
>only zoom the secound plot. How could I plot it in a propperway?

Assuming that you are speaking about the interactive zoom: 
This bug that was a regression from Scilab 5.4.0 was greatly fixed
by Caio during the last Google Summer Of Code.
You may download the nightly built release and use it for this purpose:
http://www.scilab.org/fr/development/nightly_builds/master

>.../...
>
>I would even like to have four y-axis, two of both sides in the same 
>Color as the graph. How to do this?

What do you mean by "2 on both sides"?
In Scilab, AFAIK, it is not possible to choose the side of each axis
on which ticks and labels are drawn. There is a trick to do that,
but it's neither straightforward nor handy.

In the demos, there is a Graphics => Plot 2D and 3D => plotyyy
example for plotting 3 y-axes with 3 different scales.
You may see its code and mimic it.

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


[Scilab-users] Plot with two different y-axis as one plot

2016-09-26 Thread Frieder Nikolaisen

Dear Sir or Madam,

I want to print a Diagramm with two different y-axis and one x-axis. I 
want to zoom both plots at the same time after plotting. With my Code, I 
only zoom the secound plot. How could I plot it in a propperway?



a11=newaxes()
a11.tight_limits="on"
plot(x_Achse, y_AchseP, 'green')
legend("Leistung",2)


//a12=newaxes()
//a12.tight_limits="on"
//a12.filled = "off"   // Keine Hintergrundfarbe
//plot(x_Achse, y_Achsea, 'red')
//legend("Beschleunigung",2)

// Rechte Achse erstellen und zweite Fkt. drucken
a2=newaxes()
a2.filled = "off"   // Keine Hintergrundfarbe
a2.axes_visible(1)="off"// y-Achse ausblenden
a2.y_location="right"
a2.tight_limits="on"
plot(x_Achse,y_Achsen)
legend("Drehzahl",1)


I would even like to have four y-axis, two of both sides in the same 
Color as the graph. How to do this?


Best regards
Frieder Nikolaisen
___
users mailing list
users@lists.scilab.org
http://lists.scilab.org/mailman/listinfo/users