<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Recent changes to OCaml_tutorial</title><link>https://sourceforge.net/p/plplot/wiki/OCaml_tutorial/</link><description>Recent changes to OCaml_tutorial</description><atom:link href="https://sourceforge.net/p/plplot/wiki/OCaml_tutorial/feed" rel="self"/><language>en</language><lastBuildDate>Sat, 03 Nov 2018 08:29:09 -0000</lastBuildDate><atom:link href="https://sourceforge.net/p/plplot/wiki/OCaml_tutorial/feed" rel="self" type="application/rss+xml"/><item><title>OCaml_tutorial modified by Alan W. Irwin</title><link>https://sourceforge.net/p/plplot/wiki/OCaml_tutorial/</link><description>&lt;div class="markdown_content"&gt;&lt;pre&gt;--- v4
+++ v5
@@ -1,3 +1,15 @@
+
+
 Intro
 -----

&lt;/pre&gt;
&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Alan W. Irwin</dc:creator><pubDate>Sat, 03 Nov 2018 08:29:09 -0000</pubDate><guid>https://sourceforge.netd724bf16cc0c868f2d9f8a305fa21d55c8398c3a</guid></item><item><title>OCaml_tutorial modified by Alan W. Irwin</title><link>https://sourceforge.net/p/plplot/wiki/OCaml_tutorial/</link><description>&lt;div class="markdown_content"&gt;&lt;pre&gt;&lt;/pre&gt;
&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Alan W. Irwin</dc:creator><pubDate>Sun, 05 Oct 2014 19:32:46 -0000</pubDate><guid>https://sourceforge.neta8c38966ce217678371a80e64b6c49d72273302c</guid></item><item><title>OCaml_tutorial modified by Alan W. Irwin</title><link>https://sourceforge.net/p/plplot/wiki/OCaml_tutorial/</link><description>&lt;div class="markdown_content"&gt;&lt;pre&gt;--- v2
+++ v3
@@ -16,7 +16,7 @@

 which gives output which looks something like this:

-[[img src=quick_plot_bare.png alt=quick_plot_bare.png]]
+[[img src=Quick_plot_bare.png alt=Quick_plot_bare.png]]

 That's great, but it would be even better if there were labels so that we know what the axes mean and a legend to show which line corresponds with which function. We can do that:

@@ -27,7 +27,7 @@

 with output which looks something like this:

-[[img src=quick_plot_labels.png alt=quick_plot_labels.png]]
+[[img src=Quick_plot_labels.png alt=Quick_plot_labels.png]]

 Much better, and much easier to interpret!
&lt;/pre&gt;
&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Alan W. Irwin</dc:creator><pubDate>Sat, 04 Oct 2014 01:39:22 -0000</pubDate><guid>https://sourceforge.net8a7422dcd4a13250e282fd0ff8c442d02c709914</guid></item><item><title>OCaml_tutorial modified by Alan W. Irwin</title><link>https://sourceforge.net/p/plplot/wiki/OCaml_tutorial/</link><description>&lt;div class="markdown_content"&gt;&lt;pre&gt;--- v1
+++ v2
@@ -16,7 +16,7 @@

 which gives output which looks something like this:

-![](quick_plot_bare.png "quick_plot_bare.png")
+[[img src=quick_plot_bare.png alt=quick_plot_bare.png]]

 That's great, but it would be even better if there were labels so that we know what the axes mean and a legend to show which line corresponds with which function. We can do that:

@@ -27,7 +27,8 @@

 with output which looks something like this:

-![](quick_plot_labels.png "quick_plot_labels.png")
+[[img src=quick_plot_labels.png alt=quick_plot_labels.png]]
+

 Much better, and much easier to interpret!

&lt;/pre&gt;
&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Alan W. Irwin</dc:creator><pubDate>Sat, 04 Oct 2014 01:38:05 -0000</pubDate><guid>https://sourceforge.net608ddc2fe452c1d9cc2f7bf817219c39fd837663</guid></item><item><title>OCaml_tutorial modified by Alan W. Irwin</title><link>https://sourceforge.net/p/plplot/wiki/OCaml_tutorial/</link><description>&lt;div class="markdown_content"&gt;&lt;h2 id="intro"&gt;Intro&lt;/h2&gt;
&lt;p&gt;The &lt;a class="" href="http://caml.inria.fr" rel="nofollow"&gt;OCaml&lt;/a&gt; bindings for PLplot provide three means of accessing PLplot's functionality through three modules, Plplot, Plplot.Plot and Plplot.Quick_plot. In versions 5.9.6 and later the OCaml sections of the &lt;a class="" href="http://plplot.sourceforge.net/documentation.php"&gt;PLplot documentation&lt;/a&gt; includes a tutorial which introduces each of these modules. This tutorial is meant to expand on that material and allow for a simpler process for contributing improvements.&lt;/p&gt;
&lt;h2 id="using-the-quick_plot-module"&gt;Using the Quick_plot module&lt;/h2&gt;
&lt;p&gt;The main OCaml PLplot module is meant to be open'd:&lt;/p&gt;
&lt;p&gt;&lt;code&gt;open Plplot&lt;/code&gt;&lt;/p&gt;
&lt;p&gt;From here, one can try out a quick plot of sin and cos:&lt;/p&gt;
&lt;p&gt;&lt;code&gt;Quick_plot.func [sin; cos] (-3.14, 3.14)&lt;/code&gt;&lt;/p&gt;
&lt;p&gt;which gives output which looks something like this:&lt;/p&gt;
&lt;p&gt;&lt;img alt="" src="../quick_plot_bare.png" title="quick_plot_bare.png" /&gt;&lt;/p&gt;
&lt;p&gt;That's great, but it would be even better if there were labels so that we know what the axes mean and a legend to show which line corresponds with which function. We can do that:&lt;/p&gt;
&lt;p&gt;&lt;code&gt;Quick_plot.func&lt;/code&gt;&lt;br /&gt;
&lt;code&gt;~labels:("Angle (radians)", "f(x)", "A few functions")&lt;/code&gt;&lt;br /&gt;
&lt;code&gt;~names:["sin"; "cos"]&lt;/code&gt;&lt;br /&gt;
&lt;code&gt;[sin; cos] (-3.15, 3.15)&lt;/code&gt;&lt;/p&gt;
&lt;p&gt;with output which looks something like this:&lt;/p&gt;
&lt;p&gt;&lt;img alt="" src="../quick_plot_labels.png" title="quick_plot_labels.png" /&gt;&lt;/p&gt;
&lt;p&gt;Much better, and much easier to interpret!&lt;/p&gt;
&lt;p&gt;The content of this page is available under the &lt;a class="" href="http://www.gnu.org/copyleft/fdl.html" rel="nofollow"&gt;GNU Free Documentation License 1.2&lt;/a&gt;.&lt;/p&gt;&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Alan W. Irwin</dc:creator><pubDate>Sat, 04 Oct 2014 01:25:38 -0000</pubDate><guid>https://sourceforge.net30a16d9768ae9ebcfa516e41e5fec99a0c42e6de</guid></item></channel></rss>