/usr/share/doc/libghc-chart-doc/html/src/Graphics-Rendering-Chart-Simple.html is in libghc-chart-doc 0.16-3.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
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 | <?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html>
<head>
<!-- Generated by HsColour, http://code.haskell.org/~malcolm/hscolour/ -->
<title>Graphics/Rendering/Chart/Simple.hs</title>
<link type='text/css' rel='stylesheet' href='hscolour.css' />
</head>
<body>
<pre><a name="line-1"></a><span class='hs-comment'>-----------------------------------------------------------------------------</span>
<a name="line-2"></a><span class='hs-comment'>-- |</span>
<a name="line-3"></a><span class='hs-comment'>-- Module : Graphics.Rendering.Chart.Simple</span>
<a name="line-4"></a><span class='hs-comment'>-- Copyright : (c) David Roundy 2007</span>
<a name="line-5"></a><span class='hs-comment'>-- License : BSD-style (see chart/COPYRIGHT)</span>
<a name="line-6"></a><span class='hs-comment'>--</span>
<a name="line-7"></a><span class='hs-comment'>-- An even simpler framework for creating 2D charts in Haskell.</span>
<a name="line-8"></a><span class='hs-comment'>--</span>
<a name="line-9"></a><span class='hs-comment'>-- The basic idea is to make it as easy to plot as octave, which means that</span>
<a name="line-10"></a><span class='hs-comment'>-- you provide no more information than you wish to provide. We provide</span>
<a name="line-11"></a><span class='hs-comment'>-- four plotting functions, which differ only in their output. One</span>
<a name="line-12"></a><span class='hs-comment'>-- produces a "Layout1" that you can customize using other</span>
<a name="line-13"></a><span class='hs-comment'>-- Graphics.Rendering.Chart functions. The other three produce their</span>
<a name="line-14"></a><span class='hs-comment'>-- output directly. All three accept the same input and produce the same plots.</span>
<a name="line-15"></a><span class='hs-comment'>--</span>
<a name="line-16"></a><span class='hs-comment'>-- The plot functions accept a variable number of arguments. You must</span>
<a name="line-17"></a><span class='hs-comment'>-- provide a [Double] which defines the points on the x axis, which must</span>
<a name="line-18"></a><span class='hs-comment'>-- precede any of the "y" values. The y values may either be [Double] or</span>
<a name="line-19"></a><span class='hs-comment'>-- functions. After any given y value, you can give either Strings or</span>
<a name="line-20"></a><span class='hs-comment'>-- PlotKinds describing how you'd like that y printed.</span>
<a name="line-21"></a><span class='hs-comment'>--</span>
<a name="line-22"></a><span class='hs-comment'>-- Examples:</span>
<a name="line-23"></a><span class='hs-comment'>--</span>
<a name="line-24"></a><span class='hs-comment'>-- > plotPDF "foo.pdf" [0,0.1..10] sin "- " cos ". " cos "o"</span>
<a name="line-25"></a><span class='hs-comment'>--</span>
<a name="line-26"></a><span class='hs-comment'>-- > plotPS "foo.ps" [0,0.1..10] (sin . exp) "- " (sin . exp) "o-"</span>
<a name="line-27"></a><span class='hs-comment'>-----------------------------------------------------------------------------</span>
<a name="line-28"></a><span class='hs-keyword'>module</span> <span class='hs-conid'>Graphics</span><span class='hs-varop'>.</span><span class='hs-conid'>Rendering</span><span class='hs-varop'>.</span><span class='hs-conid'>Chart</span><span class='hs-varop'>.</span><span class='hs-conid'>Simple</span><span class='hs-layout'>(</span> <span class='hs-varid'>plot</span><span class='hs-layout'>,</span> <span class='hs-conid'>PlotKind</span><span class='hs-layout'>(</span><span class='hs-keyglyph'>..</span><span class='hs-layout'>)</span><span class='hs-layout'>,</span> <span class='hs-varid'>xcoords</span><span class='hs-layout'>,</span>
<a name="line-29"></a> <span class='hs-varid'>plotPDF</span><span class='hs-layout'>,</span> <span class='hs-varid'>plotPS</span><span class='hs-layout'>,</span>
<a name="line-30"></a> <span class='hs-varid'>plotLayout</span><span class='hs-layout'>,</span> <span class='hs-varid'>plotPNG</span><span class='hs-layout'>,</span> <span class='hs-conid'>Layout1DDD</span>
<a name="line-31"></a> <span class='hs-layout'>)</span> <span class='hs-keyword'>where</span>
<a name="line-32"></a>
<a name="line-33"></a><span class='hs-keyword'>import</span> <span class='hs-conid'>Graphics</span><span class='hs-varop'>.</span><span class='hs-conid'>Rendering</span><span class='hs-varop'>.</span><span class='hs-conid'>Chart</span><span class='hs-varop'>.</span><span class='hs-conid'>Simple</span><span class='hs-varop'>.</span><span class='hs-conid'>Internal</span>
</pre></body>
</html>
|