<html>
  <head>
    <meta content="text/html; charset=UTF-8" http-equiv="Content-Type">
  </head>
  <body text="#000000" bgcolor="#FFFFFF">
    Hallo Frieder,<br>
    I mean a diagram with <i>one</i> y-axis quantified by <i>one</i>
    numeric <i>scale</i>.<br>
    <br>
     The x-axis could be the automatically generated one showing the
    serial date number, advantageously shortened by an adequate offset.
    The YY.MM.DD.HH.MM.SS information could be accomodated at the bottom
    of the diagram by means of xstring(). The following minimal example
    my explain the approach.<br>
    <br>
    <pre style="font-family:Courier New;font-style:normal;font-size:12.0;"><span style="color:rgb(100,174,100);font-style:italic;">//dummy data</span>
<span style="color:rgb(0,0,0);">yr</span><span style="color:rgb(92,92,92);">=</span><span style="color:rgb(74,85,219);">[</span><span style="color:rgb(188,143,143);">2016</span><span style="color:rgb(74,85,219);">]</span><span style="color:rgb(92,92,92);">*</span><span style="color:rgb(50,185,185);">ones</span><span style="color:rgb(74,85,219);">(</span><span style="color:rgb(188,143,143);">1</span><span style="color:rgb(0,0,0);">,</span><span style="color:rgb(188,143,143);">5</span><span style="color:rgb(74,85,219);">)</span><span style="color:rgb(0,0,0);">;</span> <span style="color:rgb(0,0,0);">mh</span><span style="color:rgb(92,92,92);">=</span><span style="color:rgb(188,143,143);">10</span><span style="color:rgb(92,92,92);">*</span><span style="color:rgb(50,185,185);">ones</span><span style="color:rgb(74,85,219);">(</span><span style="color:rgb(0,0,0);">yr</span><span style="color:rgb(74,85,219);">)</span><span style="color:rgb(0,0,0);">;</span> <span style="color:rgb(0,0,0);">
dy</span><span style="color:rgb(92,92,92);">=</span><span style="color:rgb(188,143,143);">4</span><span style="color:rgb(92,92,92);">*</span><span style="color:rgb(50,185,185);">ones</span><span style="color:rgb(74,85,219);">(</span><span style="color:rgb(0,0,0);">yr</span><span style="color:rgb(74,85,219);">)</span><span style="color:rgb(0,0,0);">;</span> <span style="color:rgb(0,0,0);">hr</span><span style="color:rgb(92,92,92);">=</span><span style="color:rgb(188,143,143);">10</span><span style="color:rgb(92,92,92);">*</span><span style="color:rgb(50,185,185);">ones</span><span style="color:rgb(74,85,219);">(</span><span style="color:rgb(0,0,0);">yr</span><span style="color:rgb(74,85,219);">)</span><span style="color:rgb(0,0,0);">;</span> <span style="color:rgb(0,0,0);">mn</span><span style="color:rgb(92,92,92);">=</span><span style="color:rgb(188,143,143);">11</span><span style="color:rgb(92,92,92);">*</span><span style="color:rgb(50,185,185);">ones</span><span style="color:rgb(74
,85,219);">(</span><span style="color:rgb(0,0,0);">yr</span><span style="color:rgb(74,85,219);">)</span><span style="color:rgb(0,0,0);">;</span> <span style="color:rgb(0,0,0);">sd</span><span style="color:rgb(92,92,92);">=</span><span style="color:rgb(74,85,219);">[</span><span style="color:rgb(188,143,143);">41</span><span style="color:rgb(255,170,0);">:</span><span style="color:rgb(188,143,143);">45</span><span style="color:rgb(74,85,219);">]</span><span style="color:rgb(0,0,0);">;</span>
<span style="color:rgb(0,0,0);">dn</span><span style="color:rgb(92,92,92);">=</span><span style="color:rgb(174,92,176);text-decoration:underline;">datenum</span><span style="color:rgb(74,85,219);">(</span><span style="color:rgb(0,0,0);">yr</span><span style="color:rgb(0,0,0);">,</span><span style="color:rgb(0,0,0);">mh</span><span style="color:rgb(0,0,0);">,</span><span style="color:rgb(0,0,0);">dy</span><span style="color:rgb(0,0,0);">,</span><span style="color:rgb(0,0,0);">hr</span><span style="color:rgb(0,0,0);">,</span><span style="color:rgb(0,0,0);">mn</span><span style="color:rgb(0,0,0);">,</span><span style="color:rgb(0,0,0);">sd</span><span style="color:rgb(74,85,219);">)</span>
<span style="color:rgb(0,0,0);">dv</span><span style="color:rgb(92,92,92);">=</span><span style="color:rgb(174,92,176);text-decoration:underline;">datevec</span><span style="color:rgb(74,85,219);">(</span><span style="color:rgb(0,0,0);">dn</span><span style="color:rgb(74,85,219);">)</span>
<span style="color:rgb(0,0,0);">dv</span><span style="color:rgb(74,85,219);">(</span><span style="color:rgb(255,170,0);">:</span><span style="color:rgb(0,0,0);">,</span><span style="color:rgb(188,143,143);">1</span><span style="color:rgb(74,85,219);">)</span><span style="color:rgb(92,92,92);">=</span><span style="color:rgb(0,0,0);">dv</span><span style="color:rgb(74,85,219);">(</span><span style="color:rgb(255,170,0);">:</span><span style="color:rgb(0,0,0);">,</span><span style="color:rgb(188,143,143);">1</span><span style="color:rgb(74,85,219);">)</span><span style="color:rgb(92,92,92);">-</span><span style="color:rgb(188,143,143);">2000</span><span style="color:rgb(100,174,100);font-style:italic;">//two digits only</span>
<span style="color:rgb(50,185,185);">xdel</span><span style="color:rgb(74,85,219);">(</span><span style="color:rgb(74,85,219);">)</span><span style="color:rgb(0,0,0);">;</span>
<span style="color:rgb(0,0,0);">x</span><span style="color:rgb(92,92,92);">=(</span><span style="color:rgb(0,0,0);">dn</span><span style="color:rgb(92,92,92);">-</span><span style="color:rgb(0,0,0);">dn</span><span style="color:rgb(74,85,219);">(</span><span style="color:rgb(188,143,143);">1</span><span style="color:rgb(74,85,219);">))*24*3600</span><span style="color:rgb(0,0,0);">;</span><span style="color:rgb(100,174,100);font-style:italic;">//offset,time measured in seconds</span> 
<span style="color:rgb(0,0,0);">y</span><span style="color:rgb(92,92,92);">=</span><span style="color:rgb(0,0,0);">x</span><span style="color:rgb(0,0,0);">;</span><span style="color:rgb(100,174,100);font-style:italic;">//dummy data</span>
<span style="color:rgb(174,92,176);text-decoration:underline;">plot</span><span style="color:rgb(74,85,219);">(</span><span style="color:rgb(0,0,0);">x</span><span style="color:rgb(0,0,0);">,</span><span style="color:rgb(0,0,0);">y</span><span style="color:rgb(0,0,0);">,</span><span style="color:rgb(188,143,143);">'</span><span style="color:rgb(188,143,143);">o-</span><span style="color:rgb(188,143,143);">'</span><span style="color:rgb(74,85,219);">)</span> <span style="color:rgb(100,174,100);font-style:italic;">// with date as YY.MM.DD.HH.MM.SS</span>
<span style="color:rgb(160,32,240);">for</span> <span style="color:rgb(0,0,0);">k</span><span style="color:rgb(92,92,92);">=</span><span style="color:rgb(188,143,143);">1</span><span style="color:rgb(255,170,0);">:</span><span style="color:rgb(50,185,185);">length</span><span style="color:rgb(74,85,219);">(</span><span style="color:rgb(0,0,0);">dn</span><span style="color:rgb(74,85,219);">)</span><span style="color:rgb(100,174,100);font-style:italic;">//Beschrift</span>
 <span style="color:rgb(50,185,185);">xstring</span><span style="color:rgb(74,85,219);">(</span><span style="color:rgb(0,0,0);">x</span><span style="color:rgb(74,85,219);">(</span><span style="color:rgb(0,0,0);">k</span><span style="color:rgb(74,85,219);">)</span><span style="color:rgb(0,0,0);">,</span><span style="color:rgb(0,0,0);">x</span><span style="color:rgb(74,85,219);">(</span><span style="color:rgb(188,143,143);">1</span><span style="color:rgb(74,85,219);">)</span><span style="color:rgb(0,0,0);">,</span><span style="color:rgb(50,185,185);">string</span><span style="color:rgb(74,85,219);">(</span><span style="color:rgb(50,185,185);">round</span><span style="color:rgb(74,85,219);">(</span><span style="color:rgb(0,0,0);">dv</span><span style="color:rgb(74,85,219);">(</span><span style="color:rgb(0,0,0);">k</span><span style="color:rgb(0,0,0);">,</span><span style="color:rgb(255,170,0);">:</span><span style="color:rgb(74,85,219);">)</span><span style="color:rgb(74,85,219);">)</
span><span style="color:rgb(92,92,92);">'</span><span style="color:rgb(74,85,219);">)</span><span style="color:rgb(74,85,219);">)</span>
<span style="color:rgb(160,32,240);">end</span>
</pre>
    Kind regards<br>
    Jens<br>
----------------------------------------------------------------------------------------------------------<br>
    <div class="moz-cite-prefix">Am 04.10.2016 07:43, schrieb Frieder
      Nikolaisen:<br>
    </div>
    <blockquote
      cite="mid:26b7a6eee9d63aa2d15fabebb6333d48@mail.student.hs-rm.de"
      type="cite">Hello togehter,
      <br>
      <br>
      thank you for your answers. I do have to plot again and again for
      choosing the best time interval.
      <br>
      <br>
      Jens, what do you mean with using a single diagram? A diagram with
      one x and one y axis? And writing n/10^3 U/min) might look nicer,
      bit is not solving the problem of having the two needed
      information on the x axis: Time in YY.MM.DD.HH.MM.SS and the line
      in the Matrix.
      <br>
      <br>
      Best regards
      <br>
      Frieder
      <br>
      <br>
      <br>
      <br>
      Am 30.09.2016 16:33, schrieb Jens Simon Strom:
      <br>
      <blockquote type="cite">Dear Frieder,
        <br>
         My first reflex is to dodge the questions you are asking and to
        use a
        <br>
        simpler approach instead:
        <br>
        <br>
         Call the y-axis 'n/(10^3U/min), P/MW, a/(10m/s^2)' and plot the
        <br>
        values into one SINGLE diagram over 't/h' which is calculated as
        <br>
        (T-int(T))*24. Note that dividing the quantity by its unit gives
        the
        <br>
        number shown at the axis. This is a widely accepted convention
        to draw
        <br>
        axes and clearer than 'P in MW' oder 'P [MW]'. I think the
        diagram
        <br>
        would look quite nice.
        <br>
        <br>
         Regards
        <br>
         Jens
        <br>
         -------------------------------------------------------
        <br>
        <br>
        Am 30.09.2016 13:23, schrieb Frieder Nikolaisen:
        <br>
        <br>
        <blockquote type="cite">Dear Jens,
          <br>
          <br>
          there is not much to be confused about. I have attached my
          <br>
          Diagramms with that Code but real data. The mininmal example
          is just
          <br>
          crap, because of the random Matrix A.
          <br>
          <br>
          The Grafik-Fenster Nummer 100000 is only for choosing the
          Intervall
          <br>
          of intrest. The 100001 is the detail to look at. It's just
          about a
          <br>
          vehicle dooing shunting. I will include the possiblilty to
          choose
          <br>
          the paramater you want to look at. Right now turn per minute
          and
          <br>
          power arn't that useful.
          <br>
          <br>
          Best regards
          <br>
          Frieder
          <br>
          <br>
          Am 30.09.2016 11:48, schrieb Jens Simon Strom:
          <br>
          <br>
          <blockquote type="cite">Dear Frieder,
            <br>
            It looks like you would like to put plenty of information
            into
            <br>
            one
            <br>
            single diagram. This tends to become confusing and difficult
            to
            <br>
            read.
            <br>
            It would help your helpers if you enclosed a (manual) sketch
            how
            <br>
            the
            <br>
            final result of your visualisation should look like. And
            perhaps
            <br>
            that
            <br>
            could trigger you to review the layout of what you plan to
            plot.
            <br>
            Regards
            <br>
            Jens
            <br>
            <br>
            <br>
          </blockquote>
          <br>
        </blockquote>
        <br>
------------------------------------------------------------------------------------
        <br>
        <blockquote type="cite">
          <blockquote type="cite">
            <br>
            Am 30.09.2016 11:27, schrieb Frieder Nikolaisen:
            <br>
            <br>
            <blockquote type="cite">I did forgott one Point:
              <br>
              <br>
              My data Looks like:
              <br>
              <br>
              Drehzahl Cv-Druck Richtung Lokbremse anlegen Lokbremse
              lösen
              <br>
              Zugbremse anlegen Zugbremse lösen Kupplung betätigt
              Bremsen
              <br>
              aktiv
              <br>
              <br>
              03.04.2012 08:49:20.090 46476.4940 0.00 478.61 0.53 0 0 0
              1 0 0
              <br>
              0
              <br>
              03.04.2012 09:42:42.120 46476.4940 0.00 1150.71 0.24 0 0 0
              1 0
              <br>
              0 0
              <br>
              ...
              <br>
              04.04.2012 12:13:15.910 46482.9710 15.10 1344.19 0.49 1 1
              1 1 1
              <br>
              0 1
              <br>
              <br>
              I want to plot some paramters over the time. I used
              datenum -
              <br>
              but then the Diagramm cant be read easy. How could I print
              the
              <br>
              time instead of Serial date number on the axes as well as
              the
              <br>
              row number? (plotxxyyy x1=real time in DD MM YY HH MM SS,
              x2=row
              <br>
              number and yyy)
              <br>
              <br>
              I do read These file in a Matrix, I add some more
              paramters and
              <br>
              print:
              <br>
              <br>
              Zeit Distanz Geschwindigkeit 1 Drehzahl
              <br>
              Getriebeausgangsleistung [Watt] Zugkraft [N]
              Beschleunigung
              <br>
              [m/s^2] Cv-Druck Richtung Lokbremse anlegen Lokbremse
              lösen
              <br>
              Zugbremse anlegen Zugbremse lösen Kupplung betätigt
              Bremsen
              <br>
              aktiv
              <br>
              734962.404654 46476.494 0.00 1150.71 141700 0 0.00 0 0 0 0
              1 0
              <br>
              0
              <br>
              734962.404900 46476.494 0.00 1059.06 110500 0 0.00 0 0 1 0
              1 0
              <br>
              0
              <br>
              ...
              <br>
              <br>
              For beeing used in a secound Programm.
              <br>
              <br>
              Best regards
              <br>
              <br>
              -------- Originalnachricht --------
              <br>
              Betreff: [Scilab-users] plotxxyyy
              <br>
              Datum: 30.09.2016 11:17
              <br>
              Absender: Frieder Nikolaisen
              <br>
              <a class="moz-txt-link-rfc2396E" href="mailto:Frieder.Nikolaisen@student.hs-rm.de"><Frieder.Nikolaisen@student.hs-rm.de></a> [1]
              <br>
              Empfänger: Users mailing list for Scilab
              <br>
              <a class="moz-txt-link-rfc2396E" href="mailto:users@lists.scilab.org"><users@lists.scilab.org></a> [2]
              <br>
              Antwort an: Users mailing list for Scilab
              <br>
              <a class="moz-txt-link-rfc2396E" href="mailto:users@lists.scilab.org"><users@lists.scilab.org></a> [3]
              <br>
              <br>
              Hello everybody,
              <br>
              <br>
              with you help I got my programm so far running pretty
              well. Now
              <br>
              I have trouble again with the plotting. I used the
              demos_gui
              <br>
              plotyyy, but want now the plotxxyyy. How to implement xx?
              I
              <br>
              attach my minimal example with a random Matrix, instead of
              the
              <br>
              real one I use.
              <br>
              <br>
              This programm will be used at my theses. So I want to do
              <br>
              correct quotes. I am used how to do this a text, but how
              is it
              <br>
              done in a programm?
              <br>
              <br>
              I do get Errors, if I do not open the example plotyyy - is
              this
              <br>
              really necessary?
              <br>
              " plotyyy=uigetfile('plotyyy.dem.sce'); mopen(plotyyy) "
              <br>
              <br>
              Best regards
              <br>
              Frieder Nikolaisen
              <br>
              <br>
              The minimal Code:
              <br>
              <br>
              //Write your callback for Diagramm here
              <br>
              <br>
              A=rand(15,50)
              <br>
              <br>
              //Dieser Code und geistiges Eigentum von Samuel GOUGEON
              wird
              <br>
              geändert und angepasst von Frieder Nikolaisen (FN), bleibt
              in
              <br>
              seinen Grundzügen jedoch erhalten
              <br>
              <br>
              // Scilab ( <a class="moz-txt-link-freetext" href="http://www.scilab.org/">http://www.scilab.org/</a> [4] ) - This file is
              part of
              <br>
              Scilab
              <br>
              // Copyright (C) 2010 Samuel GOUGEON
              <br>
              // Copyright (C) 2010 - DIGITEO - Allan CORNET
              <br>
              //
              <br>
              // This file is released under the 3-clause BSD license.
              See
              <br>
              COPYING-BSD.
              <br>
              <br>
              function demo_plotyyy()
              <br>
              <br>
              plotyyy=uigetfile('plotyyy.dem.sce') // hinzugefügt von FN
              <br>
              (changed by Frieder Nikolaisen)
              <br>
              mopen(plotyyy) // hinzugefügt von FN
              <br>
              <br>
              // DEMO START
              <br>
              // A plotyyy() example:
              <br>
              //<a class="moz-txt-link-freetext" href="http://bugzilla.scilab.org/show_bug.cgi?id=6070">http://bugzilla.scilab.org/show_bug.cgi?id=6070</a> [5]
              <br>
              <br>
              my_handle = scf(100000);
              <br>
              clf(my_handle);
              <br>
              <br>
              // Preparing data
              <br>
              x = A(:,1); //Serial Date Number geändert durch FN
              (changed by
              <br>
              Frieder Nikolaisen)
              <br>
              y2 = A(:,5); //Leistung geändert durch FN
              <br>
              y3 = A(:,7) //Beschleunigung geändert durch FN
              <br>
              <br>
              drawlater()
              <br>
              demo_viewCode("plotyyy.dem.sce");
              <br>
              <br>
              // Axis y1
              <br>
              y1=A(:,4); //Drehzahl geändert durch FN
              <br>
              plot2d(x,y1)
              <br>
              xtitle([gettext("Leistung, Drehzahl und Beschleunigung");"
              <br>
              "],..
              <br>
              gettext("Serial Date Numbers"),gettext("Drehzahl in
              U/min"));
              <br>
              // geändert durch FN
              <br>
              <br>
              // Axis y2
              <br>
              c=color("blue");
              <br>
              na=newaxes();
              <br>
              na.foreground=c;
              <br>
              na.font_color=c;
              <br>
              plot2d(x,y2,style=c)
              <br>
              ylabel("Leistung in Watt","color",[0 0 1]) // geändert
              durch
              <br>
              FN
              <br>
              na.children(1).children(1).thickness=2;
              <br>
              na.filled="off";
              <br>
              na.axes_visible(1)="off";
              <br>
              // na.axes_reverse(2)="on";
              <br>
              na.y_location="middle";
              <br>
              <br>
              // Axis y3
              <br>
              c=color("red");
              <br>
              na=newaxes();
              <br>
              na.foreground=c; // Axis and ticks color
              <br>
              na.font_color=c; // Labels's color
              <br>
              plot2d(x,y3,style=c);
              <br>
              ylabel("Beschleunigung in m/s","color",[1 0 0]) //
              geändert
              <br>
              durch FN
              <br>
              na.filled="off"; // Transparent background, letting the
              first
              <br>
              plot appearing
              <br>
              na.axes_visible(1)="off"; // Masking the x axis (useless
              <br>
              overlay)
              <br>
              na.y_location="right"; // Y axis on the right side
              <br>
              na.children(1).children(1).thickness=2; // Curve thickness
              <br>
              <br>
              drawnow()
              <br>
              <br>
              // DEMO END
              <br>
              mclose(plotyyy)
              <br>
              <br>
              endfunction
              <br>
              <br>
              demo_plotyyy();
              <br>
              clear demo_plotyyy;
              <br>
              <br>
              // Code von Samuel GOUGEON endet
              <br>
              <br>
              set(handles.Anzeige, 'string','Ausgangsdiagramm erstellt')
              <br>
              <br>
              _______________________________________________
              <br>
              users mailing list
              <br>
              <a class="moz-txt-link-abbreviated" href="mailto:users@lists.scilab.org">users@lists.scilab.org</a> [6]
              <br>
              <a class="moz-txt-link-freetext" href="http://lists.scilab.org/mailman/listinfo/users">http://lists.scilab.org/mailman/listinfo/users</a> [7]
              <br>
              <br>
              _______________________________________________
              <br>
              users mailing list
              <br>
              <a class="moz-txt-link-abbreviated" href="mailto:users@lists.scilab.org">users@lists.scilab.org</a> [8]
              <br>
              <a class="moz-txt-link-freetext" href="http://lists.scilab.org/mailman/listinfo/users">http://lists.scilab.org/mailman/listinfo/users</a> [9]
              <br>
            </blockquote>
            <br>
            _______________________________________________
            <br>
            users mailing list
            <br>
            <a class="moz-txt-link-abbreviated" href="mailto:users@lists.scilab.org">users@lists.scilab.org</a> [10]
            <br>
            <a class="moz-txt-link-freetext" href="http://lists.scilab.org/mailman/listinfo/users">http://lists.scilab.org/mailman/listinfo/users</a> [11]
            <br>
          </blockquote>
          <br>
          _______________________________________________
          <br>
          users mailing list
          <br>
          <a class="moz-txt-link-abbreviated" href="mailto:users@lists.scilab.org">users@lists.scilab.org</a>
          <br>
          <a class="moz-txt-link-freetext" href="http://lists.scilab.org/mailman/listinfo/users">http://lists.scilab.org/mailman/listinfo/users</a>
          <br>
        </blockquote>
        <br>
        <br>
        <br>
        Links:
        <br>
        ------
        <br>
        [1] <a class="moz-txt-link-freetext" href="mailto:Frieder.Nikolaisen@student.hs-rm.de">mailto:Frieder.Nikolaisen@student.hs-rm.de</a>
        <br>
        [2] <a class="moz-txt-link-freetext" href="mailto:users@lists.scilab.org">mailto:users@lists.scilab.org</a>
        <br>
        [3] <a class="moz-txt-link-freetext" href="mailto:users@lists.scilab.org">mailto:users@lists.scilab.org</a>
        <br>
        [4] <a class="moz-txt-link-freetext" href="http://www.scilab.org/">http://www.scilab.org/</a>
        <br>
        [5] <a class="moz-txt-link-freetext" href="http://bugzilla.scilab.org/show_bug.cgi?id=6070">http://bugzilla.scilab.org/show_bug.cgi?id=6070</a>
        <br>
        [6] <a class="moz-txt-link-freetext" href="mailto:users@lists.scilab.org">mailto:users@lists.scilab.org</a>
        <br>
        [7] <a class="moz-txt-link-freetext" href="http://lists.scilab.org/mailman/listinfo/users">http://lists.scilab.org/mailman/listinfo/users</a>
        <br>
        [8] <a class="moz-txt-link-freetext" href="mailto:users@lists.scilab.org">mailto:users@lists.scilab.org</a>
        <br>
        [9] <a class="moz-txt-link-freetext" href="http://lists.scilab.org/mailman/listinfo/users">http://lists.scilab.org/mailman/listinfo/users</a>
        <br>
        [10] <a class="moz-txt-link-freetext" href="mailto:users@lists.scilab.org">mailto:users@lists.scilab.org</a>
        <br>
        [11] <a class="moz-txt-link-freetext" href="http://lists.scilab.org/mailman/listinfo/users">http://lists.scilab.org/mailman/listinfo/users</a>
        <br>
      </blockquote>
      <br>
      _______________________________________________
      <br>
      users mailing list
      <br>
      <a class="moz-txt-link-abbreviated" href="mailto:users@lists.scilab.org">users@lists.scilab.org</a>
      <br>
      <a class="moz-txt-link-freetext" href="http://lists.scilab.org/mailman/listinfo/users">http://lists.scilab.org/mailman/listinfo/users</a>
      <br>
    </blockquote>
    <br>
  </body>
</html>