<html>
  <head>
    <meta content="text/html; charset=ISO-8859-1"
      http-equiv="Content-Type">
  </head>
  <body text="#000000" bgcolor="#FFFFFF">
    Hallo Frieder,<br>
    You ask  many questions in one post.<br>
    <br>
    1: You just divide the (numerical)  time interval into an adequate
    number of points (which can be neatly accommodated) with linspace or
    ':' and plot the corresponding time text colums via a for-loop.
    There is no need that 'text times' coincide with measured data. They
    only should be placed at the correct locations.<br>
    <br>
    3:You may not be familiar with how to get quick help from Scilab:
    Just highlight the command plot2d or style here and go to the help
    pages.<br>
    <br>
    4: Highlight newaxes,  foreground<br>
    <br>
    5: I would postpone integrating a checkbox until everything else is
    to your satisfaction. The rest of #5 is perhaps answered by #1.<br>
    <br>
    General remarks
    <ul>
      <li> Do not ask many questions simultaneously. Attack them one by
        one. You make it easier for yourself and the helpers.</li>
      <li>Accompany your questions by short examples which omit 
        irrelevant 'ornaments'. The code you really write with the
        variables you really use is less appropriate in most cases. </li>
      <li>Begin to polish the results (color, line types, fonts,
        fontsize, etc.) only as the last step in your work. At the
        beginning accept what Scilab delivers to you.</li>
      <li>Work the help pages.</li>
    </ul>
    My painful experience is that the polishing job often consumes more
    time (and nerves) than the technical problem itself. Scilab is far
    from intuitive in that respect.<br>
    <br>
    Kind regards, Jens<br>
    ----------------------------------------------<br>
    <div class="moz-cite-prefix"><br>
       Am 06.10.2016 15:06, schrieb Frieder Nikolaisen:<br>
    </div>
    <blockquote
      cite="mid:8b3b1ce92a62e6b3e2e1b3d91a044d80@mail.student.hs-rm.de"
      type="cite">Hello,
      <br>
      <br>
      to Jens: ich habe Fortschritte gemacht, bin dennoch nicht zum
      Ergebnis gekommen.
      <br>
      <br>
      I will write about the problem, in English:
      <br>
      <br>
      1. Attached are two plots. The 16 line plot shows the Dates. But
      even with just 16 lines, it's not easy to read, as there are to
      many Dates ploted. How can I reduce the number?
      <br>
      2. In the plot with 1695 lines, there are no numbers anymore. I
      used the same code with the same data type, having the 16 first
      line in common.
      <br>
      3. Which paramter does change the color of plot and date?
      <br>
      4. I have these blue line on the x axis, how can I turn it off?
      <br>
      5. I would like to implement a checkbox, where the user can choose
      between date and line number. How to print the line number? There
      are more seconds as lines, so with just chaning the string, it
      does not fit.
      <br>
      <br>
      Thank you very much for the prevous help.
      <br>
      <br>
      <br>
      The not running Code:
      <br>
      <br>
          my_handle = scf(100000);
      <br>
          clf(my_handle);
      <br>
      <br>
          // Preparing data
      <br>
          x=((-A(:,1)+A(A_size(:,1))))*24*3600 //offset, time measured
      in seconds, FN
      <br>
      //    x  = A(:,1);            //Serial Date Number    geändert
      durch FN
      <br>
          y2 = A(:,y_2);            //              geändert durch FN
      <br>
          y3 = A(:,y_3)             //        geändert durch FN
      <br>
      <br>
      <br>
          drawlater()
      <br>
          // demo_viewCode("plotyyy.dem.sce");
      <br>
      <br>
          // Axis y1
      <br>
          y1=A(:,y_1);              //              geändert durch FN
      <br>
          plot2d(x,y1)
      <br>
          xtitle([gettext(string(kT(y_1)) +  string(kT(y_2)) +
      string(kT(y_3)));" "],..
      <br>
          gettext("Serial Date Numbers"),gettext(string(kT(y_1))));   
      // 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(string(kT(y_2)),"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(string(kT(y_3)),"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>
          //Secound x axis, by Frieder Nikolaisen supported by Jens
      Simon Strom via Scilab Mailinglist
      <br>
      <br>
          drawnow()
      <br>
      <br>
      dn=A(:,1)
      <br>
      A_size=size(A)
      <br>
      fake=zeros(A_size(1,1),1)
      <br>
      disp(A_size)
      <br>
      dv=datevec(A(:,1))
      <br>
      //dv(:,1)=dv(:,1)-2000//two digits only
      <br>
          x=((-A(:,1)+A(A_size(:,1))))*24*3600;//offset,time measured in
      seconds
      <br>
      plot(x,fake) // with date as YY.MM.DD.HH.MM.SS
      <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=0; // Curve thickness
      <br>
      for k=1:A_size(1,1)  //Beschriftung
      <br>
      xstring(x(k),x(1),string(round(dv(k,:))'))
      <br>
      end
      <br>
      <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>
      endfunction
      <br>
      <br>
      Best regards
      <br>
      Frieder
      <br>
      <br>
      <br>
      <br>
      <br>
      <br>
      <br>
    </blockquote>
    <br>
  </body>
</html>