<html>
  <head>
    <meta content="text/html; charset=ISO-8859-1"
      http-equiv="Content-Type">
  </head>
  <body text="#000000" bgcolor="#FFFFFF">
    Dear Frieder,<br>
    My first reflex is to dodge the questions you are asking and to use
    a simpler approach instead:<br>
    <br>
    Call the y-axis 'n/(10^3U/min), P/MW, a/(10m/s^2)' and plot the
    values into one <b>single</b> diagram over 't/h' which is
    calculated as (T-int(T))*24. Note that dividing the quantity by its
    unit gives the number shown at the axis. This is a widely accepted
    convention to draw axes and clearer than 'P in MW' oder 'P [MW]'.  I
    think the diagram would look quite nice.<br>
    <br>
    Regards<br>
    Jens<br>
    -------------------------------------------------------<br>
    <br>
    <div class="moz-cite-prefix">Am 30.09.2016 13:23, schrieb Frieder
      Nikolaisen:<br>
    </div>
    <blockquote
      cite="mid:c3ee2615fad2b1d461f0ec0cbc989f95@mail.student.hs-rm.de"
      type="cite">Dear Jens,
      <br>
      <br>
      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.
      <br>
      <br>
      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.
      <br>
      <br>
      Best regards
      <br>
      Frieder
      <br>
      <br>
      <br>
      <br>
      Am 30.09.2016 11:48, schrieb Jens Simon Strom:
      <br>
      <blockquote type="cite">Dear Frieder,
        <br>
        It looks like you would like to put plenty of information into
        one
        <br>
        single diagram. This tends to become confusing and difficult to
        read.
        <br>
        It would help your helpers if you enclosed a (manual) sketch how
        the
        <br>
        final result of your visualisation should look like. And perhaps
        that
        <br>
        could trigger you to review the layout of what you plan to plot.
        <br>
        Regards
        <br>
        Jens
        <br>
        <br>
------------------------------------------------------------------------------------
        <br>
        Am 30.09.2016 11:27, schrieb Frieder Nikolaisen:
        <br>
        <blockquote type="cite">I did forgott one Point:
          <br>
          <br>
          <br>
          My data Looks like:
          <br>
          <br>
          Drehzahl     Cv-Druck    Richtung    Lokbremse anlegen
          Lokbremse lösen    Zugbremse anlegen    Zugbremse lösen
          Kupplung betätigt    Bremsen  aktiv
          <br>
          <br>
          03.04.2012 08:49:20.090    46476.4940    0.00    478.61
          0.53     0     0      0      1      0      0      0
          <br>
          03.04.2012 09:42:42.120    46476.4940    0.00    1150.71
          0.24     0     0      0      1      0      0      0
          <br>
          ...
          <br>
          04.04.2012 12:13:15.910    46482.9710    15.10    1344.19
          0.49     1     1      1      1      1      0      1
          <br>
          <br>
          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)
          <br>
          <br>
          I do read These file in a Matrix, I add some more paramters
          and print:
          <br>
          <br>
          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
          <br>
          734962.404654    46476.494    0.00    1150.71    141700    0
          0.00    0    0    0    0    1    0    0
          <br>
          734962.404900    46476.494    0.00    1059.06    110500    0
          0.00    0    0    1    0    1    0    0
          <br>
          ...
          <br>
          <br>
          For beeing used in a secound Programm.
          <br>
          <br>
          Best regards
          <br>
          <br>
          <br>
          -------- Originalnachricht --------
          <br>
          Betreff: [Scilab-users] plotxxyyy
          <br>
          Datum: 30.09.2016 11:17
          <br>
          Absender: Frieder Nikolaisen
          <a class="moz-txt-link-rfc2396E" href="mailto:Frieder.Nikolaisen@student.hs-rm.de"><Frieder.Nikolaisen@student.hs-rm.de></a>
          <br>
          Empfänger: Users mailing list for Scilab
          <a class="moz-txt-link-rfc2396E" href="mailto:users@lists.scilab.org"><users@lists.scilab.org></a>
          <br>
          Antwort an: Users mailing list for Scilab
          <a class="moz-txt-link-rfc2396E" href="mailto:users@lists.scilab.org"><users@lists.scilab.org></a>
          <br>
          <br>
          Hello everybody,
          <br>
          <br>
          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.
          <br>
          <br>
          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?
          <br>
          <br>
          I do get Errors, if I do not open the example plotyyy - is
          this really necessary?
          <br>
          " plotyyy=uigetfile('plotyyy.dem.sce');  mopen(plotyyy)       
          "
          <br>
          <br>
          <br>
          Best regards
          <br>
          Frieder Nikolaisen
          <br>
          <br>
          <br>
          <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
          geändert und angepasst von Frieder Nikolaisen (FN), bleibt in
          seinen Grundzügen jedoch erhalten
          <br>
          <br>
          // Scilab ( <a class="moz-txt-link-freetext" href="http://www.scilab.org/">http://www.scilab.org/</a> ) - This file is part of
          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
          COPYING-BSD.
          <br>
          <br>
          function demo_plotyyy()
          <br>
          <br>
          plotyyy=uigetfile('plotyyy.dem.sce')      // hinzugefügt von
          FN (changed by Frieder Nikolaisen)
          <br>
          mopen(plotyyy) // hinzugefügt von FN
          <br>
          <br>
              // DEMO START
          <br>
              // A plotyyy() example:
          //<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>
          <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 Frieder Nikolaisen)
          <br>
              y2 =  A(:,5);           //Leistung              geändert
          durch FN
          <br>
              y3 = A(:,7)             //Beschleunigung        geändert
          durch FN
          <br>
          <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>
              gettext("Serial Date Numbers"),gettext("Drehzahl in
          U/min"));    // 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 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 durch FN
          <br>
              na.filled="off";                        // Transparent
          background, letting the first plot appearing
          <br>
              na.axes_visible(1)="off";               // Masking the x
          axis (useless 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>
          _______________________________________________
          <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>
          <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>
        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>
      <fieldset class="mimeAttachmentHeader"></fieldset>
      <br>
      <pre wrap="">_______________________________________________
users mailing list
<a class="moz-txt-link-abbreviated" href="mailto:users@lists.scilab.org">users@lists.scilab.org</a>
<a class="moz-txt-link-freetext" href="http://lists.scilab.org/mailman/listinfo/users">http://lists.scilab.org/mailman/listinfo/users</a>
</pre>
    </blockquote>
    <br>
  </body>
</html>