<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://www.sternwarte.uni-erlangen.de/wiki/index.php?action=history&amp;feed=atom&amp;title=Plot_data_with_gaps_%28xfig_example%29</id>
	<title>Plot data with gaps (xfig example) - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://www.sternwarte.uni-erlangen.de/wiki/index.php?action=history&amp;feed=atom&amp;title=Plot_data_with_gaps_%28xfig_example%29"/>
	<link rel="alternate" type="text/html" href="https://www.sternwarte.uni-erlangen.de/wiki/index.php?title=Plot_data_with_gaps_(xfig_example)&amp;action=history"/>
	<updated>2026-05-11T02:57:35Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.35.7</generator>
	<entry>
		<id>https://www.sternwarte.uni-erlangen.de/wiki/index.php?title=Plot_data_with_gaps_(xfig_example)&amp;diff=1829&amp;oldid=prev</id>
		<title>Stierhof at 01:33, 4 April 2019</title>
		<link rel="alternate" type="text/html" href="https://www.sternwarte.uni-erlangen.de/wiki/index.php?title=Plot_data_with_gaps_(xfig_example)&amp;diff=1829&amp;oldid=prev"/>
		<updated>2019-04-04T01:33:08Z</updated>

		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;table class=&quot;diff diff-contentalign-left diff-editfont-monospace&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;en&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Revision as of 01:33, 4 April 2019&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l211&quot; &gt;Line 211:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 211:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;}&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;}&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;−&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;%% Here you! Output the plot and enjoy it!&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;%% Here you &lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;go&lt;/ins&gt;! Output the plot and enjoy it!&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;%%  &lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;%%  &lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;%% One cautious note: as with xfig_multiplot it may happen that tic labels&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;%% One cautious note: as with xfig_multiplot it may happen that tic labels&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;−&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;%% are overlapping. To circumvent this either give major &lt;del class=&quot;diffchange diffchange-inline&quot;&gt;ticmarks &lt;/del&gt;or change&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;%% are overlapping. To circumvent this either give major &lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;tic marks &lt;/ins&gt;or change&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;%% the plotting ranges.&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;%% the plotting ranges.&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>Stierhof</name></author>
	</entry>
	<entry>
		<id>https://www.sternwarte.uni-erlangen.de/wiki/index.php?title=Plot_data_with_gaps_(xfig_example)&amp;diff=1828&amp;oldid=prev</id>
		<title>Stierhof: Created page with &quot;=== Plot data over range with gaps === center  &lt;pre&gt; %% Found yourself with data that is only interesting in some parts of the %% plot ra...&quot;</title>
		<link rel="alternate" type="text/html" href="https://www.sternwarte.uni-erlangen.de/wiki/index.php?title=Plot_data_with_gaps_(xfig_example)&amp;diff=1828&amp;oldid=prev"/>
		<updated>2019-04-04T01:31:56Z</updated>

		<summary type="html">&lt;p&gt;Created page with &amp;quot;=== Plot data over range with gaps === &lt;a href=&quot;/wiki/index.php/File:Plot_with_gaps_jjs.png&quot; title=&quot;File:Plot with gaps jjs.png&quot;&gt;600px|center&lt;/a&gt;  &amp;lt;pre&amp;gt; %% Found yourself with data that is only interesting in some parts of the %% plot ra...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;=== Plot data over range with gaps ===&lt;br /&gt;
[[File:plot_with_gaps_jjs.png|600px|center]]&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
%% Found yourself with data that is only interesting in some parts of the&lt;br /&gt;
%% plot range? Ever wondered how you can do this with XFig? Here is your chance!&lt;br /&gt;
%% &lt;br /&gt;
%% The idea: Give the ranges of interest and the data to plot. Arrange the data&lt;br /&gt;
%% in subplots and add a visible marker to make the seperation clear.&lt;br /&gt;
&lt;br /&gt;
require(&amp;quot;xfig&amp;quot;);&lt;br /&gt;
&lt;br /&gt;
% Some function do demonstrate the feature&lt;br /&gt;
define zp (x) { return 1./sqrt(2*PI)*exp(-x*x/2.); }&lt;br /&gt;
&lt;br /&gt;
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%&lt;br /&gt;
%  Here is where the plotting begins              %%&lt;br /&gt;
&lt;br /&gt;
%-----------------------&lt;br /&gt;
%  Do a plot where the x-axis has a gap&lt;br /&gt;
&lt;br /&gt;
variable x = [-20:20:0.001]; % The x-grid for the full function&lt;br /&gt;
variable y1 = zp(x); % Use the function, we shift it later when plotting&lt;br /&gt;
variable y2 = zp(.3*x)+.7*zp(x-4);&lt;br /&gt;
&lt;br /&gt;
%% In xranges and yranges the plot range of interest are given. Make sure&lt;br /&gt;
%% they do not overlap (or the scale would be messed up).&lt;br /&gt;
&lt;br /&gt;
% Environment setup&lt;br /&gt;
variable xranges = [{5,17},{989,1010}]; % Min and Max values for the subplots&lt;br /&gt;
variable yranges = [{0,.5}];&lt;br /&gt;
variable xlabel = &amp;quot;Random test [a.u.]&amp;quot;;&lt;br /&gt;
variable ylabel = &amp;quot;Probability&amp;quot;;&lt;br /&gt;
variable title = &amp;quot;Plot with Gaps&amp;quot;;&lt;br /&gt;
&lt;br /&gt;
%% NSUBn is the number of subplots. In XDIM, YDIM the size of the total plot&lt;br /&gt;
%% can be set.&lt;br /&gt;
&lt;br /&gt;
variable NSUBX = length(xranges); % Number of x splittings&lt;br /&gt;
variable NSUBY = length(yranges); % Number of y splittings&lt;br /&gt;
variable XDIM = 15.; % Plots total x width&lt;br /&gt;
variable YDIM = 10.; % Plots total y width&lt;br /&gt;
&lt;br /&gt;
%% Set some variables we use to store different stuff. xsepsize, ysepsize&lt;br /&gt;
%% determines how large the visible seperator should be. 0.5 is twice the&lt;br /&gt;
%% default major tic mark length, which seems to be a good value.&lt;br /&gt;
&lt;br /&gt;
% Define the plot variables&lt;br /&gt;
variable P = {}; % collector for plot structures&lt;br /&gt;
variable i,j;&lt;br /&gt;
variable dx=0.,dy=0.; % Shift pannels&lt;br /&gt;
variable ddx, ddy; % Data of plot&lt;br /&gt;
variable xsepsize = 0.5; % Seperator size in x&lt;br /&gt;
variable ysepsize = 0.5; % Seperator size in y&lt;br /&gt;
variable XSEP1,XSEP2; % x seperator&lt;br /&gt;
variable YSEP1,YSEP2; % y seperator&lt;br /&gt;
&lt;br /&gt;
%% Calculate the total x- and yrange we are covering. We need this to&lt;br /&gt;
%% set the plot panel size matching the relative range size.&lt;br /&gt;
&lt;br /&gt;
variable sumxrange = 0.; % Total covered ranges for scaling&lt;br /&gt;
variable sumyrange = 0.;&lt;br /&gt;
&lt;br /&gt;
foreach i (xranges) { sumxrange += _max(i[0], i[1])-_min(i[0],i[1]); }&lt;br /&gt;
foreach j (yranges) { sumyrange += _max(j[0], j[1])-_min(j[0],j[1]); }&lt;br /&gt;
&lt;br /&gt;
%% Some more variable we need to set the spacing between panels right.&lt;br /&gt;
&lt;br /&gt;
variable thisxmin, thisxmax; % Current panels min and max range&lt;br /&gt;
variable thisymin, thisymax;&lt;br /&gt;
&lt;br /&gt;
variable xspace = 0.; % Extra space so the total size is reached&lt;br /&gt;
variable yspace = 0.;&lt;br /&gt;
&lt;br /&gt;
%% Loop over all ranges and create a panel for each. Remove the tics in&lt;br /&gt;
%%  between and insert the visible seperator. Finally plot the data and&lt;br /&gt;
%%  adjust the panels.&lt;br /&gt;
&lt;br /&gt;
_for j (0, NSUBY-1, 1)&lt;br /&gt;
{&lt;br /&gt;
  thisymin = _min(yranges[j][0], yranges[j][1]);&lt;br /&gt;
  thisymax = _max(yranges[j][0], yranges[j][1]);&lt;br /&gt;
  dx = 0.;&lt;br /&gt;
  &lt;br /&gt;
  % Set extra y space as necessary&lt;br /&gt;
  if (NSUBY &amp;gt; 1) {&lt;br /&gt;
    if (j &amp;gt; 0 &amp;amp;&amp;amp; j &amp;lt; NSUBY-1)&lt;br /&gt;
      yspace = ysepsize;&lt;br /&gt;
    else&lt;br /&gt;
      yspace = ysepsize/2.;&lt;br /&gt;
  }&lt;br /&gt;
  &lt;br /&gt;
  _for i (0, NSUBX-1, 1) {&lt;br /&gt;
    thisxmin = _min(xranges[i][0], xranges[i][1]);&lt;br /&gt;
    thisxmax = _max(xranges[i][0], xranges[i][1]);&lt;br /&gt;
    &lt;br /&gt;
    % Set extra x space as necessary&lt;br /&gt;
    if (NSUBX &amp;gt; 1) {&lt;br /&gt;
      if (i &amp;gt; 0 &amp;amp;&amp;amp; i &amp;lt; NSUBX-1)&lt;br /&gt;
	xspace = xsepsize;&lt;br /&gt;
      else&lt;br /&gt;
	xspace = xsepsize/2.;&lt;br /&gt;
    }&lt;br /&gt;
&lt;br /&gt;
    % Create plot object for each section&lt;br /&gt;
    list_append(P, xfig_plot_new(XDIM*(thisxmax-thisxmin)/sumxrange-xspace,&lt;br /&gt;
			         YDIM*(thisymax-thisymin)/sumyrange-yspace));&lt;br /&gt;
&lt;br /&gt;
    % Set world according to given ranges&lt;br /&gt;
    P[-1].world(xranges[i][0], xranges[i][1], yranges[j][0], yranges[j][1]);&lt;br /&gt;
    &lt;br /&gt;
    % Set axis to confine plot labels so they do not overlap&lt;br /&gt;
    %P[-1].axis(; ticlabels_confine);&lt;br /&gt;
&lt;br /&gt;
    % Start with top left panel and go right to bottom to remove tic marks&lt;br /&gt;
    variable this = P[-1].plot_data;&lt;br /&gt;
    if (j &amp;gt; 0) % All panels that are not the first one (y) do not need x2axis tics&lt;br /&gt;
      P[-1].x2axis(;off);&lt;br /&gt;
    if (i &amp;gt; 0) % All panels not the first (x) do not need y1axis tics&lt;br /&gt;
      P[-1].y1axis(;off);&lt;br /&gt;
    if (j &amp;lt; NSUBY-1) % All panels not the last (y) do not need x1axis tics&lt;br /&gt;
      P[-1].x1axis(;off);&lt;br /&gt;
    if (i &amp;lt; NSUBX-1) % All panels not the last (x) do not need y2axis tics&lt;br /&gt;
      P[-1].y2axis(;off);&lt;br /&gt;
    &lt;br /&gt;
    % Plot into panels&lt;br /&gt;
    P[-1].plot(x+10, y1; color=&amp;quot;#CC0033&amp;quot;);&lt;br /&gt;
    P[-1].plot(x+1000, y2; color=&amp;quot;#0033CC&amp;quot;);&lt;br /&gt;
&lt;br /&gt;
    % Create plot objects for seperators (unfortunately the implementation does not&lt;br /&gt;
    % allow to reuse objects)&lt;br /&gt;
    XSEP1 = xfig_plot_new(1,1); XSEP2 = xfig_plot_new(1,1);&lt;br /&gt;
    XSEP1.world(-1,1,-1,1); XSEP2.world(-1,1,-1,1);&lt;br /&gt;
    XSEP1.axis(;off); XSEP2.axis(;off);&lt;br /&gt;
    XSEP1.plot([-1,-.25], [0,0]; width=1); XSEP2.plot([-1,-.25], [0,0]; width=1);&lt;br /&gt;
    XSEP1.plot([.25,1], [0,0]; width=1); XSEP2.plot([.25,1], [0,0]; width=1);&lt;br /&gt;
    XSEP1.plot([-.75,.25], [-1,1]; width=1); XSEP2.plot([-.75,.25], [-1,1]; width=1);&lt;br /&gt;
    XSEP1.plot([-.25,.75], [-1,1]; width=1); XSEP2.plot([-.25,.75], [-1,1]; width=1);&lt;br /&gt;
    XSEP1.axis(;off); XSEP2.axis(;off);&lt;br /&gt;
    XSEP1.scale(xsepsize); XSEP2.scale(xsepsize);&lt;br /&gt;
    &lt;br /&gt;
    YSEP1 = xfig_plot_new(1,1); YSEP2 = xfig_plot_new(1,1);&lt;br /&gt;
    YSEP1.world(-1,1,-1,1); YSEP2.world(-1,1,-1,1);&lt;br /&gt;
    YSEP1.axis(;off); YSEP2.axis(;off);&lt;br /&gt;
    YSEP1.plot([0,0],[-1,-.25]; width=1); YSEP2.plot([0,0],[-1,-.25]; width=1);&lt;br /&gt;
    YSEP1.plot([0,0], [.25,1]; width=1); YSEP2.plot([0,0], [.25,1]; width=1);&lt;br /&gt;
    YSEP1.plot([-1,1], [-.75,.25]; width=1); YSEP2.plot([-1,1], [-.75,.25]; width=1);&lt;br /&gt;
    YSEP1.plot([-1,1], [-.25,.75]; width=1); YSEP2.plot([-1,1], [-.25,.75]; width=1);&lt;br /&gt;
    YSEP1.scale(ysepsize); YSEP2.scale(ysepsize);&lt;br /&gt;
&lt;br /&gt;
    % Append seperators&lt;br /&gt;
    if (i != NSUBX-1) {&lt;br /&gt;
      if (j == NSUBY-1)&lt;br /&gt;
	P[-1].add_object(XSEP1, 1,0,-.5,0; world0);&lt;br /&gt;
      if (j == 0)&lt;br /&gt;
	P[-1].add_object(XSEP2, 1,1,-.5,0; world0);&lt;br /&gt;
    }&lt;br /&gt;
    if (j != NSUBY-1) {&lt;br /&gt;
      if (i == NSUBX-1)&lt;br /&gt;
	P[-1].add_object(YSEP1, 0,0,0,.5; world0);&lt;br /&gt;
      if (i == 0)&lt;br /&gt;
	P[-1].add_object(YSEP2, 1,0,0,.5; world0);&lt;br /&gt;
    }&lt;br /&gt;
&lt;br /&gt;
    % Shift pannel to negative y values&lt;br /&gt;
    if (i == 0) dy -= P[-1].plot_data.plot_height+ysepsize;&lt;br /&gt;
    ddx = P[-1].plot_data.X;&lt;br /&gt;
    P[-1].translate(vector(dx-ddx.x, dy-ddx.y, -ddx.z));&lt;br /&gt;
    dx += P[-1].plot_data.plot_width+xsepsize;&lt;br /&gt;
  }&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
%% Combine all the panels into one compound. We reverse the list to&lt;br /&gt;
%% keep the order from left-right top-bottom&lt;br /&gt;
&lt;br /&gt;
list_reverse(P); % need to reverse to get the order right&lt;br /&gt;
variable PP = xfig_new_compound( __push_list(P)); % Combine panels&lt;br /&gt;
dy *= -1; % Set origin back to bottom left&lt;br /&gt;
PP.translate(vector(0, dy, 0));&lt;br /&gt;
&lt;br /&gt;
variable xmin, xmax, ymin, ymax;&lt;br /&gt;
(xmin,xmax,ymin,ymax,,) = PP.get_bbox(); % Get total plot dimensions&lt;br /&gt;
&lt;br /&gt;
%% When everything is set, add x- and y-labels and the title.&lt;br /&gt;
&lt;br /&gt;
variable ptxt;&lt;br /&gt;
if (NSUBX == 1) % If only one use existing label&lt;br /&gt;
  P[0].xlabel(xlabel); % Only passed by reference, so we can change label here&lt;br /&gt;
else {&lt;br /&gt;
  ptxt = xfig_new_text(xlabel);&lt;br /&gt;
  xfig_justify_object(ptxt, vector(.5*dx, ymin, 0), vector(0, 1, 0));&lt;br /&gt;
  PP.append(ptxt);&lt;br /&gt;
}&lt;br /&gt;
if (NSUBY == 1)&lt;br /&gt;
  P[-1].ylabel(ylabel); % Same as for xlabel&lt;br /&gt;
else {&lt;br /&gt;
  ptxt = xfig_new_text(ylabel);&lt;br /&gt;
  ptxt.rotate_pict(90);&lt;br /&gt;
  xfig_justify_object(ptxt, vector(xmin, .5*dy, 0), vector(1, 0, 0));&lt;br /&gt;
  PP.append(ptxt);&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
% Set title&lt;br /&gt;
(xmin,xmax,ymin,ymax,,) = PP.get_bbox(); % Update dimensions&lt;br /&gt;
if (NSUBX == 1)&lt;br /&gt;
  P[-1].title(title);&lt;br /&gt;
else {&lt;br /&gt;
  ptxt = xfig_new_text(title);&lt;br /&gt;
  xfig_justify_object(ptxt, vector(.5*dx, ymax, 0), vector(0, -1, 0));&lt;br /&gt;
  PP.append(ptxt);&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
%% Here you! Output the plot and enjoy it!&lt;br /&gt;
%% &lt;br /&gt;
%% One cautious note: as with xfig_multiplot it may happen that tic labels&lt;br /&gt;
%% are overlapping. To circumvent this either give major ticmarks or change&lt;br /&gt;
%% the plotting ranges.&lt;br /&gt;
&lt;br /&gt;
PP.render(&amp;quot;plot_with_gaps.pdf&amp;quot;);&lt;br /&gt;
&lt;br /&gt;
&amp;lt;\pre&amp;gt;&lt;/div&gt;</summary>
		<author><name>Stierhof</name></author>
	</entry>
</feed>