<!DOCTYPE HTML>
<html>
<head>
<title>gnuplot demo script: linkedaxes.dem </title>
<meta charset="UTF-8" />
<link rel="stylesheet" href="gnuplot_demo.css" type="text/css">
<link rel="stylesheet" href="gnuplot_mouse.css" type="text/css">
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
<script src="canvasmath.js"></script>
<script src="gnuplot_common.js"></script>
<script src="gnuplot_dashedlines.js"></script>
<script src="gnuplot_mouse.js"></script>
<script type="text/javascript">
var canvas, ctx;
gnuplot.grid_lines = true;
gnuplot.zoomed = false;
gnuplot.active_plot_name = "gnuplot_canvas";
gnuplot.active_plot = gnuplot.dummyplot;
gnuplot.display_is_uptodate = false;
gnuplot.help_URL = "canvas_help.html";
gnuplot.dummyplot = function() {};
function gnuplot_canvas( plot ) { gnuplot.active_plot(); };
</script>
</head>
<body oncontextmenu="return false;">
<a href=index.html><image src=return.png alt="Back to demo index" class="icon-image"></a>
<h2>gnuplot demo script: <font color=blue>linkedaxes.dem</font> </h2>
<i>autogenerated by webify.pl on Thu Nov 15 13:04:15 2018</i>
<br><i>gnuplot version gnuplot 5.2 patchlevel 5
</i><hr>
<table class="noborder"><tr><td><script src="linkedaxes.1.js"></script>
<canvas id="linkedaxes_1" width=600 height=400 tabindex="0">
    <div id='errorDiv'>Your browser does not support the HTML 5 canvas element</div>
</canvas>
<script>
if (window.attachEvent) {window.attachEvent('onload', linkedaxes_1);}
else if (window.addEventListener) {window.addEventListener('load', linkedaxes_1, false);}
else {document.addEventListener('load', linkedaxes_1, false);}
gnuplot.grid_lines = true;
gnuplot.zoom = false;
</script>
</td><td class="noborder">
<table class="mbright" tabindex=0>
<tr>

 <td class="mb0">x&nbsp;</td> <td class="mb1"><span id="linkedaxes_1_x">&nbsp;&nbsp;&nbsp;&nbsp;</span></td>
 <td class="mb0">y&nbsp;</td> <td class="mb1"><span id="linkedaxes_1_y">&nbsp;&nbsp;&nbsp;&nbsp;</span></td>

  <td class="icon"></td>
  <td class="icon" onclick="gnuplot.toggle_grid();"><img src="grid.png" id="gnuplot_grid_icon" class="icon-image" alt="#" title="toggle grid"></td>
  <td class="icon" onclick="gnuplot.unzoom();"><img src="previouszoom.png" id="gnuplot_unzoom_icon" class="icon-image" alt="unzoom" title="unzoom"></td>
  <td class="icon" onclick="gnuplot.rezoom();"><img src="nextzoom.png" id="gnuplot_rezoom_icon" class="icon-image" alt="rezoom" title="rezoom"></td>
  <td class="icon" onclick="gnuplot.toggle_zoom_text();"><img src="textzoom.png" id="gnuplot_textzoom_icon" class="icon-image" alt="zoom text" title="zoom text with plot"></td>
  <td class="icon" onclick="gnuplot.popup_help();"><img src="help.png" id="gnuplot_help_icon" class="icon-image" alt="?" title="help"></td>

</tr>
<tr>
  <td class="blank">&nbsp;</td>
  <td class="blank">&nbsp;</td>
  <td class="icon">&nbsp;</td>
  <td class="icon" onclick='gnuplot.toggle_plot("linkedaxes_1_plot_1")'>&#9312;</td>
  <td class="icon" onclick='gnuplot.toggle_plot("linkedaxes_1_plot_2")'>&#9313;</td>
  <td class="icon" onclick='gnuplot.toggle_plot("linkedaxes_1_plot_3")'>&#9314;</td>
  <td class="icon" onclick='gnuplot.toggle_plot("linkedaxes_1_plot_4")'>&#9315;</td>
  <td class="icon" onclick='gnuplot.toggle_plot("linkedaxes_1_plot_5")'>&#9316;</td>
  <td class="icon" onclick='gnuplot.toggle_plot("linkedaxes_1_plot_6")'>&#9317;</td>
  <td class="icon" onclick='gnuplot.toggle_plot("linkedaxes_1_plot_7")'>&#9318;</td>
</tr>

</table>
<pre>
#
# Demo for non-linear linked axes. 
# In this example x2 is proportional to 1/x.
# X axis is X-ray energy in eV; x2 axis is wavelength in Angstroms.
#
# The scattering data are pulled from the web using the GET
# command, which is provided by the perl-libwww module.
# You could replace it with wget or some other download tool, or you
# could manually download the data first and then plot from the local copy.
#
# For more information on the plot itself see
#	http://www.bmsc.washington.edu/scatter
#
# Ethan A Merritt - August 2012
#
set encoding utf8
set key outside Left
set bmargin 5
set tmargin 6
set style data lines
set tics in
set ticslevel 0.5
set xlabel  &quot;X-ray energy in eV&quot;
set format y  &#39;%5.1fe&#39;
set title &quot; Anomalous scattering factors &quot;
set xrange  [9000:14400]
set offset 0,0,1.0,0
set xtics nomirror
set link x via 12398./x inverse 12398./x

set x2label  &quot;X-ray wavelength in &Aring;&quot;
set x2tics 0.1  format &quot;%.1f &Aring;&quot; nomirror

Brdata = &quot;&lt; GET http://www.bmsc.washington.edu/scatter/data/Br.dat&quot;
Tadata = &quot;&lt; GET http://www.bmsc.washington.edu/scatter/data/Ta.dat&quot;

plot Brdata volatile using 1:3 title &#39;Br f&quot;&#39;  lt 1 lw 3, \
&#39;&#39; volatile using 1:2 title &quot;Br f&#39;&quot;  lt 1 lw 1, \
Tadata volatile using 1:3 title &#39;Ta f&quot;&#39; lt 2 lw 3, \
&#39;&#39; volatile using 1:2 title &quot;Ta f&#39;&quot;  lt 2 lw 1

<br>Click <a href=linkedaxes.1.gnu>here</a> for minimal script to generate this plot
</pre></td></tr></table>
<br clear=all>
<hr>
<canvas id="Tile" width="32" height="32" hidden></canvas>
</body>
</html>
