[Scilab-users] Fwd: plotxxyyy
Frieder Nikolaisen
Frieder.Nikolaisen at student.hs-rm.de
Fri Sep 30 13:23:26 CEST 2016
Dear Jens,
there is not much to be confused about. I have attached my Diagramms
with that Code but real data. The mininmal example is just crap, because
of the random Matrix A.
The Grafik-Fenster Nummer 100000 is only for choosing the Intervall of
intrest. The 100001 is the detail to look at. It's just about a vehicle
dooing shunting. I will include the possiblilty to choose the paramater
you want to look at. Right now turn per minute and power arn't that
useful.
Best regards
Frieder
Am 30.09.2016 11:48, schrieb Jens Simon Strom:
> Dear Frieder,
> It looks like you would like to put plenty of information into one
> single diagram. This tends to become confusing and difficult to read.
> It would help your helpers if you enclosed a (manual) sketch how the
> final result of your visualisation should look like. And perhaps that
> could trigger you to review the layout of what you plan to plot.
> Regards
> Jens
>
> ------------------------------------------------------------------------------------
> Am 30.09.2016 11:27, schrieb Frieder Nikolaisen:
>> I did forgott one Point:
>>
>>
>> My data Looks like:
>>
>> Drehzahl Cv-Druck Richtung Lokbremse anlegen Lokbremse
>> lösen Zugbremse anlegen Zugbremse lösen Kupplung betätigt
>> Bremsen aktiv
>>
>> 03.04.2012 08:49:20.090 46476.4940 0.00 478.61 0.53 0
>> 0 0 1 0 0 0
>> 03.04.2012 09:42:42.120 46476.4940 0.00 1150.71 0.24 0
>> 0 0 1 0 0 0
>> ...
>> 04.04.2012 12:13:15.910 46482.9710 15.10 1344.19 0.49 1
>> 1 1 1 1 0 1
>>
>> I want to plot some paramters over the time. I used datenum - but
>> then the Diagramm cant be read easy. How could I print the time
>> instead of Serial date number on the axes as well as the row number?
>> (plotxxyyy x1=real time in DD MM YY HH MM SS, x2=row number and yyy)
>>
>> I do read These file in a Matrix, I add some more paramters and
>> print:
>>
>> Zeit Distanz Geschwindigkeit 1 Drehzahl
>> Getriebeausgangsleistung [Watt] Zugkraft [N] Beschleunigung
>> [m/s^2] Cv-Druck Richtung Lokbremse anlegen Lokbremse
>> lösen Zugbremse anlegen Zugbremse lösen Kupplung betätigt
>> Bremsen aktiv
>> 734962.404654 46476.494 0.00 1150.71 141700 0 0.00
>> 0 0 0 0 1 0 0
>> 734962.404900 46476.494 0.00 1059.06 110500 0 0.00
>> 0 0 1 0 1 0 0
>> ...
>>
>> For beeing used in a secound Programm.
>>
>> Best regards
>>
>>
>> -------- Originalnachricht --------
>> Betreff: [Scilab-users] plotxxyyy
>> Datum: 30.09.2016 11:17
>> Absender: Frieder Nikolaisen <Frieder.Nikolaisen at student.hs-rm.de>
>> Empfänger: Users mailing list for Scilab <users at lists.scilab.org>
>> Antwort an: Users mailing list for Scilab <users at lists.scilab.org>
>>
>> Hello everybody,
>>
>> with you help I got my programm so far running pretty well. Now I
>> have trouble again with the plotting. I used the demos_gui plotyyy,
>> but want now the plotxxyyy. How to implement xx? I attach my minimal
>> example with a random Matrix, instead of the real one I use.
>>
>> This programm will be used at my theses. So I want to do correct
>> quotes. I am used how to do this a text, but how is it done in a
>> programm?
>>
>> I do get Errors, if I do not open the example plotyyy - is this
>> really necessary?
>> " plotyyy=uigetfile('plotyyy.dem.sce'); mopen(plotyyy) "
>>
>>
>> Best regards
>> Frieder Nikolaisen
>>
>>
>>
>>
>> The minimal Code:
>>
>> //Write your callback for Diagramm here
>>
>> A=rand(15,50)
>>
>> //Dieser Code und geistiges Eigentum von Samuel GOUGEON wird
>> geändert und angepasst von Frieder Nikolaisen (FN), bleibt in seinen
>> Grundzügen jedoch erhalten
>>
>> // Scilab ( http://www.scilab.org/ ) - This file is part of Scilab
>> // Copyright (C) 2010 Samuel GOUGEON
>> // Copyright (C) 2010 - DIGITEO - Allan CORNET
>> //
>> // This file is released under the 3-clause BSD license. See
>> COPYING-BSD.
>>
>> function demo_plotyyy()
>>
>> plotyyy=uigetfile('plotyyy.dem.sce') // hinzugefügt von FN
>> (changed by Frieder Nikolaisen)
>> mopen(plotyyy) // hinzugefügt von FN
>>
>> // DEMO START
>> // A plotyyy() example:
>> //http://bugzilla.scilab.org/show_bug.cgi?id=6070
>>
>> my_handle = scf(100000);
>> clf(my_handle);
>>
>> // Preparing data
>> x = A(:,1); //Serial Date Number geändert durch
>> FN (changed by Frieder Nikolaisen)
>> y2 = A(:,5); //Leistung geändert durch
>> FN
>> y3 = A(:,7) //Beschleunigung geändert durch
>> FN
>>
>>
>> drawlater()
>> demo_viewCode("plotyyy.dem.sce");
>>
>> // Axis y1
>> y1=A(:,4); //Drehzahl geändert durch
>> FN
>> plot2d(x,y1)
>> xtitle([gettext("Leistung, Drehzahl und Beschleunigung");" "],..
>> gettext("Serial Date Numbers"),gettext("Drehzahl in U/min"));
>> // geändert durch FN
>>
>> // Axis y2
>> c=color("blue");
>> na=newaxes();
>> na.foreground=c;
>> na.font_color=c;
>> plot2d(x,y2,style=c)
>> ylabel("Leistung in Watt","color",[0 0 1]) // geändert durch FN
>> na.children(1).children(1).thickness=2;
>> na.filled="off";
>> na.axes_visible(1)="off";
>> // na.axes_reverse(2)="on";
>> na.y_location="middle";
>>
>> // Axis y3
>> c=color("red");
>> na=newaxes();
>> na.foreground=c; // Axis and ticks color
>> na.font_color=c; // Labels's color
>> plot2d(x,y3,style=c);
>> ylabel("Beschleunigung in m/s","color",[1 0 0]) // geändert
>> durch FN
>> na.filled="off"; // Transparent
>> background, letting the first plot appearing
>> na.axes_visible(1)="off"; // Masking the x axis
>> (useless overlay)
>> na.y_location="right"; // Y axis on the right
>> side
>> na.children(1).children(1).thickness=2; // Curve thickness
>>
>> drawnow()
>>
>> // DEMO END
>> mclose(plotyyy)
>>
>> endfunction
>>
>> demo_plotyyy();
>> clear demo_plotyyy;
>>
>> // Code von Samuel GOUGEON endet
>>
>> set(handles.Anzeige, 'string','Ausgangsdiagramm erstellt')
>>
>>
>> _______________________________________________
>> users mailing list
>> users at lists.scilab.org
>> http://lists.scilab.org/mailman/listinfo/users
>>
>> _______________________________________________
>> users mailing list
>> users at lists.scilab.org
>> http://lists.scilab.org/mailman/listinfo/users
>
> _______________________________________________
> users mailing list
> users at lists.scilab.org
> http://lists.scilab.org/mailman/listinfo/users
-------------- next part --------------
A non-text attachment was scrubbed...
Name: Grafik-Fenster Nummer 100001.gif
Type: image/gif
Size: 14869 bytes
Desc: not available
URL: <https://lists.scilab.org/pipermail/users/attachments/20160930/288a073f/attachment.gif>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: Grafik-Fenster Nummer 100000.gif
Type: image/gif
Size: 23758 bytes
Desc: not available
URL: <https://lists.scilab.org/pipermail/users/attachments/20160930/288a073f/attachment-0001.gif>
More information about the users
mailing list