   x = 723637.025:0.05:723638.99;	%Was middle times of half-hours for two days.
   y = sin(x - 723637);			%Was half-hourly electrical load in MW.

   Tstart = fix(x(1));		%The START of the first day.
   Tstop = fix(x(end)) + 1;	%The END of the last day.
   Tstep = x(2) - x(1);		%Fraction of a day. Presumably a halfhour. Hope never to start with a daylight saving lurch.

   lines = 1;			%Allow one line for the xlabel text.

   hold off; figure(1); clf;		%Selecting "hold on" here has caused odd behaviour.
   hold on;				%Plotting is done piecemeal. Single compound surges are needed to align with successive legend entries.
   ymin = min(y); ymax = max(y);
   xlim([0 Tstop - Tstart]);		%Squeeze to known bounds. This also prevents matlab from extending the axis to roundish values.
   ylim([ymin ymax]);			%ymin is kept positive for LogScale. Without ylim, the top of the plot is often lost. (wunduhs and linux)
  %axis tight;				%Huh? Without xlim invoked, this causes a wildly deranged plot!
%   set(gcf,'Toolbar','none');		%I want more data space, less cybercrud.
   set(gcf,'Units','points'); 		%"Points", a fixed size, whereas dots are variable. Usual screen style is ~90 dots/inch.
   set(gca,'Units','points');		%I'm presuming that the size of the lettering is fixed in terms of points.
   set(gca,'TickDir','out');		%Do not deface the data area with non-data.
   global GnashPlotXlabelXbase;		%Put this where GnashPlotResqueeze can get at. (?)
   hf = get(gcf,'Position');		%(x,y) lower left; (width,height), in unclear units despite the specification of "ponts".
   h = max(hf(3:4));			%The larger of the width and height apparently is used in the relative sizing..
   hoist = 14;				%This works for the wunduhs version.
   if strfind(computer('arch'),'linux') > 0	%But the GNU/Linux version needs more space.
     hoist = hoist + 7;				%It delivers finer lines, and a different typeface.
   endif;				%Endless, endless ad-hoc twiddles.
   GnashPlotXlabelXbase = hoist + 9*lines;	%The x-axis base position. lines = 1 or 2.
   xtop = hf(4) - GnashPlotXlabelXbase - 17;	%The x-axis top, up from the x-axis base level. With space for the title
   set(gca,'Position',[38 GnashPlotXlabelXbase (hf(3) - 56) xtop]);	%[lmargin ybase rmargin +ytop].
   set(gcf,'ResizeFcn','GnashPlotResqueeze');	%On changing the figure's window size, invoke this.

   stairs([x(1) - Tstart - Tstep/2 x - Tstart + Tstep/2],[y y(end)],'r');	%Replicate the last value to sart&stop properly.

