1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119
|
<!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 </td> <td class="mb1"><span id="linkedaxes_1_x"> </span></td>
<td class="mb0">y </td> <td class="mb1"><span id="linkedaxes_1_y"> </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"> </td>
<td class="blank"> </td>
<td class="icon"> </td>
<td class="icon" onclick='gnuplot.toggle_plot("linkedaxes_1_plot_1")'>①</td>
<td class="icon" onclick='gnuplot.toggle_plot("linkedaxes_1_plot_2")'>②</td>
<td class="icon" onclick='gnuplot.toggle_plot("linkedaxes_1_plot_3")'>③</td>
<td class="icon" onclick='gnuplot.toggle_plot("linkedaxes_1_plot_4")'>④</td>
<td class="icon" onclick='gnuplot.toggle_plot("linkedaxes_1_plot_5")'>⑤</td>
<td class="icon" onclick='gnuplot.toggle_plot("linkedaxes_1_plot_6")'>⑥</td>
<td class="icon" onclick='gnuplot.toggle_plot("linkedaxes_1_plot_7")'>⑦</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 "X-ray energy in eV"
set format y '%5.1fe'
set title " Anomalous scattering factors "
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 "X-ray wavelength in Å"
set x2tics 0.1 format "%.1f Å" nomirror
Brdata = "< GET http://www.bmsc.washington.edu/scatter/data/Br.dat"
Tadata = "< GET http://www.bmsc.washington.edu/scatter/data/Ta.dat"
plot Brdata volatile using 1:3 title 'Br f"' lt 1 lw 3, \
'' volatile using 1:2 title "Br f'" lt 1 lw 1, \
Tadata volatile using 1:3 title 'Ta f"' lt 2 lw 3, \
'' volatile using 1:2 title "Ta f'" 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>
|