/usr/share/doc/racket/plot/contracts.html is in racket-doc 6.1-4.
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 | <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html><head><meta http-equiv="content-type" content="text/html; charset=utf-8"/><title>9 Plot Contracts</title><link rel="stylesheet" type="text/css" href="../scribble.css" title="default"/><link rel="stylesheet" type="text/css" href="../racket.css" title="default"/><link rel="stylesheet" type="text/css" href="../manual-style.css" title="default"/><link rel="stylesheet" type="text/css" href="../manual-racket.css" title="default"/><link rel="stylesheet" type="text/css" href="../manual-racket.css" title="default"/><link rel="stylesheet" type="text/css" href="../doc-site.css" title="default"/><script type="text/javascript" src="../scribble-common.js"></script><script type="text/javascript" src="../manual-racket.js"></script><script type="text/javascript" src="../manual-racket.js"></script><script type="text/javascript" src="../doc-site.js"></script><script type="text/javascript" src="../local-redirect/local-redirect.js"></script><script type="text/javascript" src="../local-redirect/local-user-redirect.js"></script><!--[if IE 6]><style type="text/css">.SIEHidden { overflow: hidden; }</style><![endif]--></head><body id="doc-racket-lang-org"><div class="tocset"><div class="tocview"><div class="tocviewlist tocviewlisttopspace"><div class="tocviewtitle"><table cellspacing="0" cellpadding="0"><tr><td style="width: 1em;"><a href="javascript:void(0);" title="Expand/Collapse" class="tocviewtoggle" onclick="TocviewToggle(this,"tocview_0");">▼</a></td><td></td><td><a href="index.html" class="tocviewlink" data-pltdoc="x">Plot:<span class="mywbr"> </span> Graph Plotting</a></td></tr></table></div><div class="tocviewsublisttop" style="display: block;" id="tocview_0"><table cellspacing="0" cellpadding="0"><tr><td align="right">1 </td><td><a href="intro.html" class="tocviewlink" data-pltdoc="x">Introduction</a></td></tr><tr><td align="right">2 </td><td><a href="plotting.html" class="tocviewlink" data-pltdoc="x">2D and 3D Plotting Procedures</a></td></tr><tr><td align="right">3 </td><td><a href="renderer2d.html" class="tocviewlink" data-pltdoc="x">2D Renderers</a></td></tr><tr><td align="right">4 </td><td><a href="renderer3d.html" class="tocviewlink" data-pltdoc="x">3D Renderers</a></td></tr><tr><td align="right">5 </td><td><a href="nonrenderer.html" class="tocviewlink" data-pltdoc="x">Nonrenderers</a></td></tr><tr><td align="right">6 </td><td><a href="ticks_and_transforms.html" class="tocviewlink" data-pltdoc="x">Axis Transforms and Ticks</a></td></tr><tr><td align="right">7 </td><td><a href="utils.html" class="tocviewlink" data-pltdoc="x">Plot Utilities</a></td></tr><tr><td align="right">8 </td><td><a href="params.html" class="tocviewlink" data-pltdoc="x">Plot and Renderer Parameters</a></td></tr><tr><td align="right">9 </td><td><a href="" class="tocviewselflink" data-pltdoc="x">Plot Contracts</a></td></tr><tr><td align="right">10 </td><td><a href="porting.html" class="tocviewlink" data-pltdoc="x">Porting From Plot <= 5.1.3</a></td></tr><tr><td align="right">11 </td><td><a href="compat.html" class="tocviewlink" data-pltdoc="x">Compatibility Module</a></td></tr></table></div></div><div class="tocviewlist"><table cellspacing="0" cellpadding="0"><tr><td style="width: 1em;"><a href="javascript:void(0);" title="Expand/Collapse" class="tocviewtoggle" onclick="TocviewToggle(this,"tocview_1");">►</a></td><td>9 </td><td><a href="" class="tocviewselflink" data-pltdoc="x">Plot Contracts</a></td></tr></table><div class="tocviewsublistbottom" style="display: none;" id="tocview_1"><table cellspacing="0" cellpadding="0"><tr><td align="right">9.1 </td><td><a href="#%28part._.Plot_.Element_.Contracts%29" class="tocviewlink" data-pltdoc="x">Plot Element Contracts</a></td></tr><tr><td align="right">9.2 </td><td><a href="#%28part._.Appearance_.Argument_.Contracts%29" class="tocviewlink" data-pltdoc="x">Appearance Argument Contracts</a></td></tr><tr><td align="right">9.3 </td><td><a href="#%28part._.Appearance_.Argument_.List_.Contracts%29" class="tocviewlink" data-pltdoc="x">Appearance Argument List Contracts</a></td></tr></table></div></div></div><div class="tocsub"><div class="tocsubtitle">On this page:</div><table class="tocsublist" cellspacing="0"><tr><td><span class="tocsublinknumber">9.1<tt> </tt></span><a href="#%28part._.Plot_.Element_.Contracts%29" class="tocsubseclink" data-pltdoc="x">Plot Element Contracts</a></td></tr><tr><td><a href="#%28def._%28%28lib._plot%2Futils..rkt%29._renderer2d~3f%29%29" class="tocsubnonseclink" data-pltdoc="x"><span class="RktSym"><span class="RktValLink">renderer2d?</span></span></a></td></tr><tr><td><a href="#%28def._%28%28lib._plot%2Futils..rkt%29._renderer3d~3f%29%29" class="tocsubnonseclink" data-pltdoc="x"><span class="RktSym"><span class="RktValLink">renderer3d?</span></span></a></td></tr><tr><td><a href="#%28def._%28%28lib._plot%2Futils..rkt%29._nonrenderer~3f%29%29" class="tocsubnonseclink" data-pltdoc="x"><span class="RktSym"><span class="RktValLink">nonrenderer?</span></span></a></td></tr><tr><td><span class="tocsublinknumber">9.2<tt> </tt></span><a href="#%28part._.Appearance_.Argument_.Contracts%29" class="tocsubseclink" data-pltdoc="x">Appearance Argument Contracts</a></td></tr><tr><td><a href="#%28def._%28%28lib._plot%2Futils..rkt%29._anchor%2Fc%29%29" class="tocsubnonseclink" data-pltdoc="x"><span class="RktSym"><span class="RktValLink">anchor/<span class="mywbr"> </span>c</span></span></a></td></tr><tr><td><a href="#%28def._%28%28lib._plot%2Futils..rkt%29._color%2Fc%29%29" class="tocsubnonseclink" data-pltdoc="x"><span class="RktSym"><span class="RktValLink">color/<span class="mywbr"> </span>c</span></span></a></td></tr><tr><td><a href="#%28def._%28%28lib._plot%2Futils..rkt%29._plot-color%2Fc%29%29" class="tocsubnonseclink" data-pltdoc="x"><span class="RktSym"><span class="RktValLink">plot-<wbr></wbr>color/<span class="mywbr"> </span>c</span></span></a></td></tr><tr><td><a href="#%28def._%28%28lib._plot%2Futils..rkt%29._plot-pen-style%2Fc%29%29" class="tocsubnonseclink" data-pltdoc="x"><span class="RktSym"><span class="RktValLink">plot-<wbr></wbr>pen-<wbr></wbr>style/<span class="mywbr"> </span>c</span></span></a></td></tr><tr><td><a href="#%28def._%28%28lib._plot%2Futils..rkt%29._plot-brush-style%2Fc%29%29" class="tocsubnonseclink" data-pltdoc="x"><span class="RktSym"><span class="RktValLink">plot-<wbr></wbr>brush-<wbr></wbr>style/<span class="mywbr"> </span>c</span></span></a></td></tr><tr><td><a href="#%28def._%28%28lib._plot%2Futils..rkt%29._font-family%2Fc%29%29" class="tocsubnonseclink" data-pltdoc="x"><span class="RktSym"><span class="RktValLink">font-<wbr></wbr>family/<span class="mywbr"> </span>c</span></span></a></td></tr><tr><td><a href="#%28def._%28%28lib._plot%2Futils..rkt%29._point-sym%2Fc%29%29" class="tocsubnonseclink" data-pltdoc="x"><span class="RktSym"><span class="RktValLink">point-<wbr></wbr>sym/<span class="mywbr"> </span>c</span></span></a></td></tr><tr><td><a href="#%28def._%28%28lib._plot%2Futils..rkt%29._known-point-symbols%29%29" class="tocsubnonseclink" data-pltdoc="x"><span class="RktSym"><span class="RktValLink">known-<wbr></wbr>point-<wbr></wbr>symbols</span></span></a></td></tr><tr><td><span class="tocsublinknumber">9.3<tt> </tt></span><a href="#%28part._.Appearance_.Argument_.List_.Contracts%29" class="tocsubseclink" data-pltdoc="x">Appearance Argument List Contracts</a></td></tr><tr><td><a href="#%28def._%28%28lib._plot%2Futils..rkt%29._maybe-function%2Fc%29%29" class="tocsubnonseclink" data-pltdoc="x"><span class="RktSym"><span class="RktValLink">maybe-<wbr></wbr>function/<span class="mywbr"> </span>c</span></span></a></td></tr><tr><td><a href="#%28def._%28%28lib._plot%2Futils..rkt%29._maybe-apply%29%29" class="tocsubnonseclink" data-pltdoc="x"><span class="RktSym"><span class="RktValLink">maybe-<wbr></wbr>apply</span></span></a></td></tr><tr><td><a href="#%28def._%28%28lib._plot%2Futils..rkt%29._plot-colors%2Fc%29%29" class="tocsubnonseclink" data-pltdoc="x"><span class="RktSym"><span class="RktValLink">plot-<wbr></wbr>colors/<span class="mywbr"> </span>c</span></span></a></td></tr><tr><td><a href="#%28def._%28%28lib._plot%2Futils..rkt%29._plot-pen-styles%2Fc%29%29" class="tocsubnonseclink" data-pltdoc="x"><span class="RktSym"><span class="RktValLink">plot-<wbr></wbr>pen-<wbr></wbr>styles/<span class="mywbr"> </span>c</span></span></a></td></tr><tr><td><a href="#%28def._%28%28lib._plot%2Futils..rkt%29._pen-widths%2Fc%29%29" class="tocsubnonseclink" data-pltdoc="x"><span class="RktSym"><span class="RktValLink">pen-<wbr></wbr>widths/<span class="mywbr"> </span>c</span></span></a></td></tr><tr><td><a href="#%28def._%28%28lib._plot%2Futils..rkt%29._plot-brush-styles%2Fc%29%29" class="tocsubnonseclink" data-pltdoc="x"><span class="RktSym"><span class="RktValLink">plot-<wbr></wbr>brush-<wbr></wbr>styles/<span class="mywbr"> </span>c</span></span></a></td></tr><tr><td><a href="#%28def._%28%28lib._plot%2Futils..rkt%29._alphas%2Fc%29%29" class="tocsubnonseclink" data-pltdoc="x"><span class="RktSym"><span class="RktValLink">alphas/<span class="mywbr"> </span>c</span></span></a></td></tr><tr><td><a href="#%28def._%28%28lib._plot%2Futils..rkt%29._labels%2Fc%29%29" class="tocsubnonseclink" data-pltdoc="x"><span class="RktSym"><span class="RktValLink">labels/<span class="mywbr"> </span>c</span></span></a></td></tr></table></div></div><div class="maincolumn"><div class="main"><div class="versionbox"><span class="version">6.1</span></div><div class="navsettop"><span class="navleft"><form class="searchform"><input class="searchbox" style="color: #888;" type="text" value="...search manuals..." title="Enter a search string to search the manuals" onkeypress="return DoSearchKey(event, this, "6.1", "../");" onfocus="this.style.color="black"; this.style.textAlign="left"; if (this.value == "...search manuals...") this.value="";" onblur="if (this.value.match(/^ *$/)) { this.style.color="#888"; this.style.textAlign="center"; this.value="...search manuals..."; }"/></form> <a href="../index.html" title="up to the documentation top" data-pltdoc="x" onclick="return GotoPLTRoot("6.1");">top</a></span><span class="navright"> <a href="params.html" title="backward to "8 Plot and Renderer Parameters"" data-pltdoc="x">← prev</a> <a href="index.html" title="up to "Plot: Graph Plotting"" data-pltdoc="x">up</a> <a href="porting.html" title="forward to "10 Porting From Plot <= 5.1.3"" data-pltdoc="x">next →</a></span> </div><h3 x-source-module="(lib "plot/scribblings/plot.scrbl")" x-part-tag=""contracts"">9<tt> </tt><a name="(part._contracts)"></a>Plot Contracts</h3><p><table cellspacing="0" cellpadding="0" class="defmodule"><tr><td align="left"><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym"><a href="http://download.racket-lang.org/docs/6.1/html/local-redirect/index.html?doc=reference&rel=require.html%23%2528form._%2528%2528lib._racket%252Fprivate%252Fbase..rkt%2529._require%2529%2529&version=6.1" class="RktStxLink Sq" data-pltdoc="x">require</a></span><span class="stt"> </span><a href="utils.html" class="RktModLink" data-pltdoc="x"><span class="RktSym">plot/utils</span></a><span class="RktPn">)</span></td><td align="right"><span class="RpackageSpec"><span class="Smaller"> package:</span> <span class="stt">plot-lib</span></span></td></tr></table></p><h4 x-source-module="(lib "plot/scribblings/plot.scrbl")" x-part-tag=""Plot_Element_Contracts"">9.1<tt> </tt><a name="(part._.Plot_.Element_.Contracts)"></a>Plot Element Contracts</h4><p><div class="SIntrapara"><blockquote class="SVInsetFlow"><table cellspacing="0" cellpadding="0" class="boxed RBoxed"><tr><td><blockquote class="SubFlow"><div class="RBackgroundLabel SIEHidden"><div class="RBackgroundLabelInner"><p>procedure</p></div></div><p class="RForeground"><span class="RktPn">(</span><a name="(def._((lib._plot/utils..rkt)._renderer2d~3f))"></a><span title="Provided from: plot/utils | Package: plot-lib"><span class="RktSym"><a href="#%28def._%28%28lib._plot%2Futils..rkt%29._renderer2d~3f%29%29" class="RktValDef RktValLink" data-pltdoc="x">renderer2d?</a></span></span><span class="hspace"> </span><span class="RktVar">value</span><span class="RktPn">)</span><span class="hspace"> </span>→<span class="hspace"> </span><span class="RktSym"><a href="http://download.racket-lang.org/docs/6.1/html/local-redirect/index.html?doc=reference&rel=booleans.html%23%2528def._%2528%2528quote._%7E23%7E25kernel%2529._boolean%7E3f%2529%2529&version=6.1" class="RktValLink Sq" data-pltdoc="x">boolean?</a></span></p></blockquote></td></tr><tr><td><span class="hspace"> </span><span class="RktVar">value</span><span class="hspace"> </span>:<span class="hspace"> </span><span class="RktSym"><a href="http://download.racket-lang.org/docs/6.1/html/local-redirect/index.html?doc=reference&rel=data-structure-contracts.html%23%2528def._%2528%2528lib._racket%252Fcontract%252Fprivate%252Fmisc..rkt%2529._any%252Fc%2529%2529&version=6.1" class="RktValLink Sq" data-pltdoc="x">any/c</a></span></td></tr></table></blockquote></div><div class="SIntrapara">Returns <span class="RktVal">#t</span> if <span class="RktVar">value</span> is a 2D <a href="intro.html#%28tech._renderer%29" class="techoutside" data-pltdoc="x"><span class="techinside">renderer</span></a>; that is, if <span class="RktSym"><a href="plotting.html#%28def._%28%28lib._plot%2Fmain..rkt%29._plot%29%29" class="RktValLink" data-pltdoc="x">plot</a></span> can plot <span class="RktVar">value</span>.
See <a href="renderer2d.html" data-pltdoc="x">2D Renderers</a> for functions that construct them.</div></p><p><div class="SIntrapara"><blockquote class="SVInsetFlow"><table cellspacing="0" cellpadding="0" class="boxed RBoxed"><tr><td><blockquote class="SubFlow"><div class="RBackgroundLabel SIEHidden"><div class="RBackgroundLabelInner"><p>procedure</p></div></div><p class="RForeground"><span class="RktPn">(</span><a name="(def._((lib._plot/utils..rkt)._renderer3d~3f))"></a><span title="Provided from: plot/utils | Package: plot-lib"><span class="RktSym"><a href="#%28def._%28%28lib._plot%2Futils..rkt%29._renderer3d~3f%29%29" class="RktValDef RktValLink" data-pltdoc="x">renderer3d?</a></span></span><span class="hspace"> </span><span class="RktVar">value</span><span class="RktPn">)</span><span class="hspace"> </span>→<span class="hspace"> </span><span class="RktSym"><a href="http://download.racket-lang.org/docs/6.1/html/local-redirect/index.html?doc=reference&rel=booleans.html%23%2528def._%2528%2528quote._%7E23%7E25kernel%2529._boolean%7E3f%2529%2529&version=6.1" class="RktValLink Sq" data-pltdoc="x">boolean?</a></span></p></blockquote></td></tr><tr><td><span class="hspace"> </span><span class="RktVar">value</span><span class="hspace"> </span>:<span class="hspace"> </span><span class="RktSym"><a href="http://download.racket-lang.org/docs/6.1/html/local-redirect/index.html?doc=reference&rel=data-structure-contracts.html%23%2528def._%2528%2528lib._racket%252Fcontract%252Fprivate%252Fmisc..rkt%2529._any%252Fc%2529%2529&version=6.1" class="RktValLink Sq" data-pltdoc="x">any/c</a></span></td></tr></table></blockquote></div><div class="SIntrapara">Returns <span class="RktVal">#t</span> if <span class="RktVar">value</span> is a 3D <a href="intro.html#%28tech._renderer%29" class="techoutside" data-pltdoc="x"><span class="techinside">renderer</span></a>; that is, if <span class="RktSym"><a href="plotting.html#%28def._%28%28lib._plot%2Fmain..rkt%29._plot3d%29%29" class="RktValLink" data-pltdoc="x">plot3d</a></span> can plot <span class="RktVar">value</span>.
See <a href="renderer3d.html" data-pltdoc="x">3D Renderers</a> for functions that construct them.</div></p><p><div class="SIntrapara"><blockquote class="SVInsetFlow"><table cellspacing="0" cellpadding="0" class="boxed RBoxed"><tr><td><blockquote class="SubFlow"><div class="RBackgroundLabel SIEHidden"><div class="RBackgroundLabelInner"><p>procedure</p></div></div><p class="RForeground"><span class="RktPn">(</span><a name="(def._((lib._plot/utils..rkt)._nonrenderer~3f))"></a><span title="Provided from: plot/utils | Package: plot-lib"><span class="RktSym"><a href="#%28def._%28%28lib._plot%2Futils..rkt%29._nonrenderer~3f%29%29" class="RktValDef RktValLink" data-pltdoc="x">nonrenderer?</a></span></span><span class="hspace"> </span><span class="RktVar">value</span><span class="RktPn">)</span><span class="hspace"> </span>→<span class="hspace"> </span><span class="RktSym"><a href="http://download.racket-lang.org/docs/6.1/html/local-redirect/index.html?doc=reference&rel=booleans.html%23%2528def._%2528%2528quote._%7E23%7E25kernel%2529._boolean%7E3f%2529%2529&version=6.1" class="RktValLink Sq" data-pltdoc="x">boolean?</a></span></p></blockquote></td></tr><tr><td><span class="hspace"> </span><span class="RktVar">value</span><span class="hspace"> </span>:<span class="hspace"> </span><span class="RktSym"><a href="http://download.racket-lang.org/docs/6.1/html/local-redirect/index.html?doc=reference&rel=data-structure-contracts.html%23%2528def._%2528%2528lib._racket%252Fcontract%252Fprivate%252Fmisc..rkt%2529._any%252Fc%2529%2529&version=6.1" class="RktValLink Sq" data-pltdoc="x">any/c</a></span></td></tr></table></blockquote></div><div class="SIntrapara">Returns <span class="RktVal">#t</span> if <span class="RktVar">value</span> is a <a href="nonrenderer.html#%28tech._nonrenderer%29" class="techoutside" data-pltdoc="x"><span class="techinside">nonrenderer</span></a>. See <a href="nonrenderer.html" data-pltdoc="x">Nonrenderers</a> for functions that construct them.</div></p><h4 x-source-module="(lib "plot/scribblings/plot.scrbl")" x-part-tag=""Appearance_Argument_Contracts"">9.2<tt> </tt><a name="(part._.Appearance_.Argument_.Contracts)"></a>Appearance Argument Contracts</h4><p><div class="SIntrapara"><blockquote class="SVInsetFlow"><table cellspacing="0" cellpadding="0" class="boxed RBoxed"><tr><td><blockquote class="SubFlow"><div class="RBackgroundLabel SIEHidden"><div class="RBackgroundLabelInner"><p>value</p></div></div><p class="RForeground"><a name="(def._((lib._plot/utils..rkt)._anchor/c))"></a><span title="Provided from: plot/utils | Package: plot-lib"><span class="RktSym"><a href="#%28def._%28%28lib._plot%2Futils..rkt%29._anchor%2Fc%29%29" class="RktValDef RktValLink" data-pltdoc="x">anchor/c</a></span></span><span class="hspace"> </span>:<span class="hspace"> </span><span class="RktSym"><a href="http://download.racket-lang.org/docs/6.1/html/local-redirect/index.html?doc=reference&rel=contract-utilities.html%23%2528def._%2528%2528lib._racket%252Fcontract%252Fprivate%252Fmisc..rkt%2529._contract%7E3f%2529%2529&version=6.1" class="RktValLink Sq" data-pltdoc="x">contract?</a></span></p></blockquote></td></tr><tr><td><table cellspacing="0" cellpadding="0" class="argcontract"><tr><td><span class="hspace"> </span>=<span class="hspace"> </span></td><td><table cellspacing="0" cellpadding="0" class="RktBlk"><tr><td><span class="RktPn">(</span><span class="RktSym"><a href="http://download.racket-lang.org/docs/6.1/html/local-redirect/index.html?doc=reference&rel=data-structure-contracts.html%23%2528def._%2528%2528lib._racket%252Fcontract%252Fbase..rkt%2529._one-of%252Fc%2529%2529&version=6.1" class="RktValLink Sq" data-pltdoc="x">one-of/c</a></span><span class="hspace"> </span><span class="RktVal">'</span><span class="RktVal">top-left</span><span class="hspace"> </span><span class="RktVal">'</span><span class="RktVal">top</span><span class="hspace"> </span><span class="RktVal">'</span><span class="RktVal">top-right</span></td></tr><tr><td><span class="hspace"> </span><span class="RktVal">'</span><span class="RktVal">left</span><span class="hspace"> </span><span class="RktVal">'</span><span class="RktVal">center</span><span class="hspace"> </span><span class="RktVal">'</span><span class="RktVal">right</span></td></tr><tr><td><span class="hspace"> </span><span class="RktVal">'</span><span class="RktVal">bottom-left</span><span class="hspace"> </span><span class="RktVal">'</span><span class="RktVal">bottom</span><span class="hspace"> </span><span class="RktVal">'</span><span class="RktVal">bottom-right</span><span class="RktPn">)</span></td></tr></table></td></tr></table></td></tr></table></blockquote></div><div class="SIntrapara">The contract for <span class="RktSym">anchor</span> arguments and parameters, such as <span class="RktSym"><a href="params.html#%28def._%28%28lib._plot%2Fmain..rkt%29._plot-legend-anchor%29%29" class="RktValLink" data-pltdoc="x">plot-legend-anchor</a></span>.</div></p><p><div class="SIntrapara"><blockquote class="SVInsetFlow"><table cellspacing="0" cellpadding="0" class="boxed RBoxed"><tr><td><blockquote class="SubFlow"><div class="RBackgroundLabel SIEHidden"><div class="RBackgroundLabelInner"><p>value</p></div></div><p class="RForeground"><a name="(def._((lib._plot/utils..rkt)._color/c))"></a><span title="Provided from: plot/utils | Package: plot-lib"><span class="RktSym"><a href="#%28def._%28%28lib._plot%2Futils..rkt%29._color%2Fc%29%29" class="RktValDef RktValLink" data-pltdoc="x">color/c</a></span></span><span class="hspace"> </span>:<span class="hspace"> </span><span class="RktSym"><a href="http://download.racket-lang.org/docs/6.1/html/local-redirect/index.html?doc=reference&rel=contract-utilities.html%23%2528def._%2528%2528lib._racket%252Fcontract%252Fprivate%252Fmisc..rkt%2529._contract%7E3f%2529%2529&version=6.1" class="RktValLink Sq" data-pltdoc="x">contract?</a></span></p></blockquote></td></tr><tr><td><table cellspacing="0" cellpadding="0" class="argcontract"><tr><td><span class="hspace"> </span>=<span class="hspace"> </span></td><td><table cellspacing="0" cellpadding="0" class="RktBlk"><tr><td><span class="RktPn">(</span><span class="RktSym"><a href="http://download.racket-lang.org/docs/6.1/html/local-redirect/index.html?doc=reference&rel=data-structure-contracts.html%23%2528def._%2528%2528lib._racket%252Fcontract%252Fbase..rkt%2529._or%252Fc%2529%2529&version=6.1" class="RktValLink Sq" data-pltdoc="x">or/c</a></span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym"><a href="http://download.racket-lang.org/docs/6.1/html/local-redirect/index.html?doc=reference&rel=data-structure-contracts.html%23%2528def._%2528%2528lib._racket%252Fcontract%252Fprivate%252Fmisc..rkt%2529._list%252Fc%2529%2529&version=6.1" class="RktValLink Sq" data-pltdoc="x">list/c</a></span><span class="hspace"> </span><span class="RktSym"><a href="http://download.racket-lang.org/docs/6.1/html/local-redirect/index.html?doc=reference&rel=number-types.html%23%2528def._%2528%2528quote._%7E23%7E25kernel%2529._real%7E3f%2529%2529&version=6.1" class="RktValLink Sq" data-pltdoc="x">real?</a></span><span class="hspace"> </span><span class="RktSym"><a href="http://download.racket-lang.org/docs/6.1/html/local-redirect/index.html?doc=reference&rel=number-types.html%23%2528def._%2528%2528quote._%7E23%7E25kernel%2529._real%7E3f%2529%2529&version=6.1" class="RktValLink Sq" data-pltdoc="x">real?</a></span><span class="hspace"> </span><span class="RktSym"><a href="http://download.racket-lang.org/docs/6.1/html/local-redirect/index.html?doc=reference&rel=number-types.html%23%2528def._%2528%2528quote._%7E23%7E25kernel%2529._real%7E3f%2529%2529&version=6.1" class="RktValLink Sq" data-pltdoc="x">real?</a></span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktSym"><a href="http://download.racket-lang.org/docs/6.1/html/local-redirect/index.html?doc=reference&rel=strings.html%23%2528def._%2528%2528quote._%7E23%7E25kernel%2529._string%7E3f%2529%2529&version=6.1" class="RktValLink Sq" data-pltdoc="x">string?</a></span><span class="hspace"> </span><span class="RktSym"><a href="http://download.racket-lang.org/docs/6.1/html/local-redirect/index.html?doc=reference&rel=symbols.html%23%2528def._%2528%2528quote._%7E23%7E25kernel%2529._symbol%7E3f%2529%2529&version=6.1" class="RktValLink Sq" data-pltdoc="x">symbol?</a></span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym"><a href="http://download.racket-lang.org/docs/6.1/html/local-redirect/index.html?doc=reference&rel=Object_and_Class_Contracts.html%23%2528def._%2528%2528lib._racket%252Fclass..rkt%2529._is-a%7E3f%252Fc%2529%2529&version=6.1" class="RktValLink Sq" data-pltdoc="x">is-a?/c</a></span><span class="hspace"> </span><span class="RktSym"><a href="http://download.racket-lang.org/docs/6.1/html/local-redirect/index.html?doc=draw&rel=color_.html&version=6.1" class="RktValLink Sq" data-pltdoc="x">color%</a></span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr></table></td></tr></table></td></tr></table></blockquote></div><div class="SIntrapara">A contract for very flexible color arguments.
Functions that accept a <span class="RktSym"><a href="#%28def._%28%28lib._plot%2Futils..rkt%29._color%2Fc%29%29" class="RktValLink" data-pltdoc="x">color/c</a></span> almost always convert it to an RGB triplet using <span class="RktSym"><a href="utils.html#%28def._%28%28lib._plot%2Futils..rkt%29._-~3ecolor%29%29" class="RktValLink" data-pltdoc="x"><span class="nobreak">-></span>color</a></span>.</div></p><p><div class="SIntrapara"><blockquote class="SVInsetFlow"><table cellspacing="0" cellpadding="0" class="boxed RBoxed"><tr><td><blockquote class="SubFlow"><div class="RBackgroundLabel SIEHidden"><div class="RBackgroundLabelInner"><p>value</p></div></div><p class="RForeground"><a name="(def._((lib._plot/utils..rkt)._plot-color/c))"></a><span title="Provided from: plot/utils | Package: plot-lib"><span class="RktSym"><a href="#%28def._%28%28lib._plot%2Futils..rkt%29._plot-color%2Fc%29%29" class="RktValDef RktValLink" data-pltdoc="x">plot-color/c</a></span></span><span class="hspace"> </span>:<span class="hspace"> </span><span class="RktSym"><a href="http://download.racket-lang.org/docs/6.1/html/local-redirect/index.html?doc=reference&rel=contract-utilities.html%23%2528def._%2528%2528lib._racket%252Fcontract%252Fprivate%252Fmisc..rkt%2529._contract%7E3f%2529%2529&version=6.1" class="RktValLink Sq" data-pltdoc="x">contract?</a></span><span class="hspace"> </span>=<span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym"><a href="http://download.racket-lang.org/docs/6.1/html/local-redirect/index.html?doc=reference&rel=data-structure-contracts.html%23%2528def._%2528%2528lib._racket%252Fcontract%252Fbase..rkt%2529._or%252Fc%2529%2529&version=6.1" class="RktValLink Sq" data-pltdoc="x">or/c</a></span><span class="hspace"> </span><span class="RktSym"><a href="http://download.racket-lang.org/docs/6.1/html/local-redirect/index.html?doc=reference&rel=number-types.html%23%2528def._%2528%2528quote._%7E23%7E25kernel%2529._exact-integer%7E3f%2529%2529&version=6.1" class="RktValLink Sq" data-pltdoc="x">exact-integer?</a></span><span class="hspace"> </span><span class="RktSym"><a href="#%28def._%28%28lib._plot%2Futils..rkt%29._color%2Fc%29%29" class="RktValLink" data-pltdoc="x">color/c</a></span><span class="RktPn">)</span></p></blockquote></td></tr></table></blockquote></div><div class="SIntrapara">The contract for <span class="RktPn">#:color</span> arguments, and parameters such as <span class="RktSym"><a href="params.html#%28def._%28%28lib._plot%2Fmain..rkt%29._line-color%29%29" class="RktValLink" data-pltdoc="x">line-color</a></span> and <span class="RktSym"><a href="params.html#%28def._%28%28lib._plot%2Fmain..rkt%29._surface-color%29%29" class="RktValLink" data-pltdoc="x">surface-color</a></span>.
For the meaning of integer colors, see <span class="RktSym"><a href="utils.html#%28def._%28%28lib._plot%2Futils..rkt%29._-~3epen-color%29%29" class="RktValLink" data-pltdoc="x"><span class="nobreak">-></span>pen-color</a></span> and <span class="RktSym"><a href="utils.html#%28def._%28%28lib._plot%2Futils..rkt%29._-~3ebrush-color%29%29" class="RktValLink" data-pltdoc="x"><span class="nobreak">-></span>brush-color</a></span>.</div></p><p><div class="SIntrapara"><blockquote class="SVInsetFlow"><table cellspacing="0" cellpadding="0" class="boxed RBoxed"><tr><td><blockquote class="SubFlow"><div class="RBackgroundLabel SIEHidden"><div class="RBackgroundLabelInner"><p>value</p></div></div><p class="RForeground"><a name="(def._((lib._plot/utils..rkt)._plot-pen-style/c))"></a><span title="Provided from: plot/utils | Package: plot-lib"><span class="RktSym"><a href="#%28def._%28%28lib._plot%2Futils..rkt%29._plot-pen-style%2Fc%29%29" class="RktValDef RktValLink" data-pltdoc="x">plot-pen-style/c</a></span></span><span class="hspace"> </span>:<span class="hspace"> </span><span class="RktSym"><a href="http://download.racket-lang.org/docs/6.1/html/local-redirect/index.html?doc=reference&rel=contract-utilities.html%23%2528def._%2528%2528lib._racket%252Fcontract%252Fprivate%252Fmisc..rkt%2529._contract%7E3f%2529%2529&version=6.1" class="RktValLink Sq" data-pltdoc="x">contract?</a></span></p></blockquote></td></tr><tr><td><table cellspacing="0" cellpadding="0" class="argcontract"><tr><td><span class="hspace"> </span>=<span class="hspace"> </span></td><td><table cellspacing="0" cellpadding="0" class="RktBlk"><tr><td><span class="RktPn">(</span><span class="RktSym"><a href="http://download.racket-lang.org/docs/6.1/html/local-redirect/index.html?doc=reference&rel=data-structure-contracts.html%23%2528def._%2528%2528lib._racket%252Fcontract%252Fbase..rkt%2529._or%252Fc%2529%2529&version=6.1" class="RktValLink Sq" data-pltdoc="x">or/c</a></span><span class="hspace"> </span><span class="RktSym"><a href="http://download.racket-lang.org/docs/6.1/html/local-redirect/index.html?doc=reference&rel=number-types.html%23%2528def._%2528%2528quote._%7E23%7E25kernel%2529._exact-integer%7E3f%2529%2529&version=6.1" class="RktValLink Sq" data-pltdoc="x">exact-integer?</a></span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym"><a href="http://download.racket-lang.org/docs/6.1/html/local-redirect/index.html?doc=reference&rel=data-structure-contracts.html%23%2528def._%2528%2528lib._racket%252Fcontract%252Fbase..rkt%2529._one-of%252Fc%2529%2529&version=6.1" class="RktValLink Sq" data-pltdoc="x">one-of/c</a></span><span class="hspace"> </span><span class="RktVal">'</span><span class="RktVal">transparent</span><span class="hspace"> </span><span class="RktVal">'</span><span class="RktVal">solid</span><span class="hspace"> </span><span class="RktVal">'</span><span class="RktVal">dot</span><span class="hspace"> </span><span class="RktVal">'</span><span class="RktVal">long-dash</span></td></tr><tr><td><span class="hspace"> </span><span class="RktVal">'</span><span class="RktVal">short-dash</span><span class="hspace"> </span><span class="RktVal">'</span><span class="RktVal">dot-dash</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr></table></td></tr></table></td></tr></table></blockquote></div><div class="SIntrapara">The contract for <span class="RktPn">#:style</span> arguments (when they refer to lines), and paramters such as <span class="RktSym"><a href="params.html#%28def._%28%28lib._plot%2Fmain..rkt%29._line-style%29%29" class="RktValLink" data-pltdoc="x">line-style</a></span>.
For the meaning of integer pen styles, see <span class="RktSym"><a href="utils.html#%28def._%28%28lib._plot%2Futils..rkt%29._-~3epen-style%29%29" class="RktValLink" data-pltdoc="x"><span class="nobreak">-></span>pen-style</a></span>.</div></p><p><div class="SIntrapara"><blockquote class="SVInsetFlow"><table cellspacing="0" cellpadding="0" class="boxed RBoxed"><tr><td><blockquote class="SubFlow"><div class="RBackgroundLabel SIEHidden"><div class="RBackgroundLabelInner"><p>value</p></div></div><p class="RForeground"><a name="(def._((lib._plot/utils..rkt)._plot-brush-style/c))"></a><span title="Provided from: plot/utils | Package: plot-lib"><span class="RktSym"><a href="#%28def._%28%28lib._plot%2Futils..rkt%29._plot-brush-style%2Fc%29%29" class="RktValDef RktValLink" data-pltdoc="x">plot-brush-style/c</a></span></span><span class="hspace"> </span>:<span class="hspace"> </span><span class="RktSym"><a href="http://download.racket-lang.org/docs/6.1/html/local-redirect/index.html?doc=reference&rel=contract-utilities.html%23%2528def._%2528%2528lib._racket%252Fcontract%252Fprivate%252Fmisc..rkt%2529._contract%7E3f%2529%2529&version=6.1" class="RktValLink Sq" data-pltdoc="x">contract?</a></span></p></blockquote></td></tr><tr><td><table cellspacing="0" cellpadding="0" class="argcontract"><tr><td><span class="hspace"> </span>=<span class="hspace"> </span></td><td><table cellspacing="0" cellpadding="0" class="RktBlk"><tr><td><span class="RktPn">(</span><span class="RktSym"><a href="http://download.racket-lang.org/docs/6.1/html/local-redirect/index.html?doc=reference&rel=data-structure-contracts.html%23%2528def._%2528%2528lib._racket%252Fcontract%252Fbase..rkt%2529._or%252Fc%2529%2529&version=6.1" class="RktValLink Sq" data-pltdoc="x">or/c</a></span><span class="hspace"> </span><span class="RktSym"><a href="http://download.racket-lang.org/docs/6.1/html/local-redirect/index.html?doc=reference&rel=number-types.html%23%2528def._%2528%2528quote._%7E23%7E25kernel%2529._exact-integer%7E3f%2529%2529&version=6.1" class="RktValLink Sq" data-pltdoc="x">exact-integer?</a></span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym"><a href="http://download.racket-lang.org/docs/6.1/html/local-redirect/index.html?doc=reference&rel=data-structure-contracts.html%23%2528def._%2528%2528lib._racket%252Fcontract%252Fbase..rkt%2529._one-of%252Fc%2529%2529&version=6.1" class="RktValLink Sq" data-pltdoc="x">one-of/c</a></span><span class="hspace"> </span><span class="RktVal">'</span><span class="RktVal">transparent</span><span class="hspace"> </span><span class="RktVal">'</span><span class="RktVal">solid</span></td></tr><tr><td><span class="hspace"> </span><span class="RktVal">'</span><span class="RktVal">bdiagonal-hatch</span><span class="hspace"> </span><span class="RktVal">'</span><span class="RktVal">fdiagonal-hatch</span><span class="hspace"> </span><span class="RktVal">'</span><span class="RktVal">crossdiag-hatch</span></td></tr><tr><td><span class="hspace"> </span><span class="RktVal">'</span><span class="RktVal">horizontal-hatch</span><span class="hspace"> </span><span class="RktVal">'</span><span class="RktVal">vertical-hatch</span><span class="hspace"> </span><span class="RktVal">'</span><span class="RktVal">cross-hatch</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr></table></td></tr></table></td></tr></table></blockquote></div><div class="SIntrapara">The contract for <span class="RktPn">#:style</span> arguments (when they refer to fills), and parameters such as <span class="RktSym"><a href="params.html#%28def._%28%28lib._plot%2Fmain..rkt%29._interval-style%29%29" class="RktValLink" data-pltdoc="x">interval-style</a></span>.
For the meaning of integer brush styles, see <span class="RktSym"><a href="utils.html#%28def._%28%28lib._plot%2Futils..rkt%29._-~3ebrush-style%29%29" class="RktValLink" data-pltdoc="x"><span class="nobreak">-></span>brush-style</a></span>.</div></p><p><div class="SIntrapara"><blockquote class="SVInsetFlow"><table cellspacing="0" cellpadding="0" class="boxed RBoxed"><tr><td><blockquote class="SubFlow"><div class="RBackgroundLabel SIEHidden"><div class="RBackgroundLabelInner"><p>value</p></div></div><p class="RForeground"><a name="(def._((lib._plot/utils..rkt)._font-family/c))"></a><span title="Provided from: plot/utils | Package: plot-lib"><span class="RktSym"><a href="#%28def._%28%28lib._plot%2Futils..rkt%29._font-family%2Fc%29%29" class="RktValDef RktValLink" data-pltdoc="x">font-family/c</a></span></span><span class="hspace"> </span>:<span class="hspace"> </span><span class="RktSym"><a href="http://download.racket-lang.org/docs/6.1/html/local-redirect/index.html?doc=reference&rel=contract-utilities.html%23%2528def._%2528%2528lib._racket%252Fcontract%252Fprivate%252Fmisc..rkt%2529._flat-contract%7E3f%2529%2529&version=6.1" class="RktValLink Sq" data-pltdoc="x">flat-contract?</a></span></p></blockquote></td></tr></table></blockquote></div><div class="SIntrapara">Identifies legal font family values. The same as <span class="RktSym"><a href="http://download.racket-lang.org/docs/6.1/html/local-redirect/index.html?doc=draw&rel=Drawing_Contracts.html%23%2528def._%2528%2528lib._racket%252Fdraw..rkt%2529._font-family%252Fc%2529%2529&version=6.1" class="RktValLink Sq" data-pltdoc="x">font-family/c</a></span>
from <a href="http://download.racket-lang.org/docs/6.1/html/local-redirect/index.html?doc=draw&rel=index.html&version=6.1" class="RktModLink Sq" data-pltdoc="x"><span class="RktSym">racket/draw</span></a>.</div></p><p><div class="SIntrapara"><blockquote class="SVInsetFlow"><table cellspacing="0" cellpadding="0" class="boxed RBoxed"><tr><td><blockquote class="SubFlow"><div class="RBackgroundLabel SIEHidden"><div class="RBackgroundLabelInner"><p>value</p></div></div><p class="RForeground"><a name="(def._((lib._plot/utils..rkt)._point-sym/c))"></a><span title="Provided from: plot/utils | Package: plot-lib"><span class="RktSym"><a href="#%28def._%28%28lib._plot%2Futils..rkt%29._point-sym%2Fc%29%29" class="RktValDef RktValLink" data-pltdoc="x">point-sym/c</a></span></span><span class="hspace"> </span>:<span class="hspace"> </span><span class="RktSym"><a href="http://download.racket-lang.org/docs/6.1/html/local-redirect/index.html?doc=reference&rel=contract-utilities.html%23%2528def._%2528%2528lib._racket%252Fcontract%252Fprivate%252Fmisc..rkt%2529._contract%7E3f%2529%2529&version=6.1" class="RktValLink Sq" data-pltdoc="x">contract?</a></span></p></blockquote></td></tr><tr><td><span class="hspace"> </span>=<span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym"><a href="http://download.racket-lang.org/docs/6.1/html/local-redirect/index.html?doc=reference&rel=data-structure-contracts.html%23%2528def._%2528%2528lib._racket%252Fcontract%252Fbase..rkt%2529._or%252Fc%2529%2529&version=6.1" class="RktValLink Sq" data-pltdoc="x">or/c</a></span><span class="hspace"> </span><span class="RktSym"><a href="http://download.racket-lang.org/docs/6.1/html/local-redirect/index.html?doc=reference&rel=characters.html%23%2528def._%2528%2528quote._%7E23%7E25kernel%2529._char%7E3f%2529%2529&version=6.1" class="RktValLink Sq" data-pltdoc="x">char?</a></span><span class="hspace"> </span><span class="RktSym"><a href="http://download.racket-lang.org/docs/6.1/html/local-redirect/index.html?doc=reference&rel=strings.html%23%2528def._%2528%2528quote._%7E23%7E25kernel%2529._string%7E3f%2529%2529&version=6.1" class="RktValLink Sq" data-pltdoc="x">string?</a></span><span class="hspace"> </span><span class="RktSym"><a href="http://download.racket-lang.org/docs/6.1/html/local-redirect/index.html?doc=reference&rel=number-types.html%23%2528def._%2528%2528quote._%7E23%7E25kernel%2529._integer%7E3f%2529%2529&version=6.1" class="RktValLink Sq" data-pltdoc="x">integer?</a></span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym"><a href="http://download.racket-lang.org/docs/6.1/html/local-redirect/index.html?doc=reference&rel=procedures.html%23%2528def._%2528%2528lib._racket%252Fprivate%252Fbase..rkt%2529._apply%2529%2529&version=6.1" class="RktValLink Sq" data-pltdoc="x">apply</a></span><span class="hspace"> </span><span class="RktSym"><a href="http://download.racket-lang.org/docs/6.1/html/local-redirect/index.html?doc=reference&rel=data-structure-contracts.html%23%2528def._%2528%2528lib._racket%252Fcontract%252Fbase..rkt%2529._one-of%252Fc%2529%2529&version=6.1" class="RktValLink Sq" data-pltdoc="x">one-of/c</a></span><span class="hspace"> </span><span class="RktSym"><a href="#%28def._%28%28lib._plot%2Futils..rkt%29._known-point-symbols%29%29" class="RktValLink" data-pltdoc="x">known-point-symbols</a></span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr></table></blockquote></div><div class="SIntrapara">The contract for the <span class="RktPn">#:sym</span> arguments in <span class="RktSym"><a href="renderer2d.html#%28def._%28%28lib._plot%2Fmain..rkt%29._points%29%29" class="RktValLink" data-pltdoc="x">points</a></span> and <span class="RktSym"><a href="renderer3d.html#%28def._%28%28lib._plot%2Fmain..rkt%29._points3d%29%29" class="RktValLink" data-pltdoc="x">points3d</a></span>, and the parameter <span class="RktSym"><a href="params.html#%28def._%28%28lib._plot%2Fmain..rkt%29._point-sym%29%29" class="RktValLink" data-pltdoc="x">point-sym</a></span>.</div></p><p><div class="SIntrapara"><blockquote class="SVInsetFlow"><table cellspacing="0" cellpadding="0" class="boxed RBoxed"><tr><td><blockquote class="SubFlow"><div class="RBackgroundLabel SIEHidden"><div class="RBackgroundLabelInner"><p>value</p></div></div><p class="RForeground"><a name="(def._((lib._plot/utils..rkt)._known-point-symbols))"></a><span title="Provided from: plot/utils | Package: plot-lib"><span class="RktSym"><a href="#%28def._%28%28lib._plot%2Futils..rkt%29._known-point-symbols%29%29" class="RktValDef RktValLink" data-pltdoc="x">known-point-symbols</a></span></span><span class="hspace"> </span>:<span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym"><a href="http://download.racket-lang.org/docs/6.1/html/local-redirect/index.html?doc=reference&rel=data-structure-contracts.html%23%2528def._%2528%2528lib._racket%252Fcontract%252Fprivate%252Fmisc..rkt%2529._listof%2529%2529&version=6.1" class="RktValLink Sq" data-pltdoc="x">listof</a></span><span class="hspace"> </span><span class="RktSym"><a href="http://download.racket-lang.org/docs/6.1/html/local-redirect/index.html?doc=reference&rel=symbols.html%23%2528def._%2528%2528quote._%7E23%7E25kernel%2529._symbol%7E3f%2529%2529&version=6.1" class="RktValLink Sq" data-pltdoc="x">symbol?</a></span><span class="RktPn">)</span></p></blockquote></td></tr><tr><td><table cellspacing="0" cellpadding="0" class="argcontract"><tr><td><span class="hspace"> </span>=<span class="hspace"> </span></td><td><table cellspacing="0" cellpadding="0" class="RktBlk"><tr><td><span class="RktPn">(</span><span class="RktSym"><a href="http://download.racket-lang.org/docs/6.1/html/local-redirect/index.html?doc=reference&rel=pairs.html%23%2528def._%2528%2528quote._%7E23%7E25kernel%2529._list%2529%2529&version=6.1" class="RktValLink Sq" data-pltdoc="x">list</a></span><span class="hspace"> </span><span class="RktVal">'</span><span class="RktVal">dot</span><span class="hspace"> </span><span class="RktVal">'</span><span class="RktVal">point</span><span class="hspace"> </span><span class="RktVal">'</span><span class="RktVal">pixel</span></td></tr><tr><td><span class="hspace"> </span><span class="RktVal">'</span><span class="RktVal">plus</span><span class="hspace"> </span><span class="RktVal">'</span><span class="RktVal">times</span><span class="hspace"> </span><span class="RktVal">'</span><span class="RktVal">asterisk</span></td></tr><tr><td><span class="hspace"> </span><span class="RktVal">'</span><span class="RktVal">5asterisk</span><span class="hspace"> </span><span class="RktVal">'</span><span class="RktVal">odot</span><span class="hspace"> </span><span class="RktVal">'</span><span class="RktVal">oplus</span></td></tr><tr><td><span class="hspace"> </span><span class="RktVal">'</span><span class="RktVal">otimes</span><span class="hspace"> </span><span class="RktVal">'</span><span class="RktVal">oasterisk</span><span class="hspace"> </span><span class="RktVal">'</span><span class="RktVal">o5asterisk</span></td></tr><tr><td><span class="hspace"> </span><span class="RktVal">'</span><span class="RktVal">circle</span><span class="hspace"> </span><span class="RktVal">'</span><span class="RktVal">square</span><span class="hspace"> </span><span class="RktVal">'</span><span class="RktVal">diamond</span></td></tr><tr><td><span class="hspace"> </span><span class="RktVal">'</span><span class="RktVal">triangle</span><span class="hspace"> </span><span class="RktVal">'</span><span class="RktVal">fullcircle</span><span class="hspace"> </span><span class="RktVal">'</span><span class="RktVal">fullsquare</span></td></tr><tr><td><span class="hspace"> </span><span class="RktVal">'</span><span class="RktVal">fulldiamond</span><span class="hspace"> </span><span class="RktVal">'</span><span class="RktVal">fulltriangle</span><span class="hspace"> </span><span class="RktVal">'</span><span class="RktVal">triangleup</span></td></tr><tr><td><span class="hspace"> </span><span class="RktVal">'</span><span class="RktVal">triangledown</span><span class="hspace"> </span><span class="RktVal">'</span><span class="RktVal">triangleleft</span><span class="hspace"> </span><span class="RktVal">'</span><span class="RktVal">triangleright</span></td></tr><tr><td><span class="hspace"> </span><span class="RktVal">'</span><span class="RktVal">fulltriangleup</span><span class="hspace"> </span><span class="RktVal">'</span><span class="RktVal">fulltriangledown</span><span class="hspace"> </span><span class="RktVal">'</span><span class="RktVal">fulltriangleleft</span></td></tr><tr><td><span class="hspace"> </span><span class="RktVal">'</span><span class="RktVal">fulltriangleright</span><span class="hspace"> </span><span class="RktVal">'</span><span class="RktVal">rightarrow</span><span class="hspace"> </span><span class="RktVal">'</span><span class="RktVal">leftarrow</span></td></tr><tr><td><span class="hspace"> </span><span class="RktVal">'</span><span class="RktVal">uparrow</span><span class="hspace"> </span><span class="RktVal">'</span><span class="RktVal">downarrow</span><span class="hspace"> </span><span class="RktVal">'</span><span class="RktVal">4star</span></td></tr><tr><td><span class="hspace"> </span><span class="RktVal">'</span><span class="RktVal">5star</span><span class="hspace"> </span><span class="RktVal">'</span><span class="RktVal">6star</span><span class="hspace"> </span><span class="RktVal">'</span><span class="RktVal">7star</span></td></tr><tr><td><span class="hspace"> </span><span class="RktVal">'</span><span class="RktVal">8star</span><span class="hspace"> </span><span class="RktVal">'</span><span class="RktVal">full4star</span><span class="hspace"> </span><span class="RktVal">'</span><span class="RktVal">full5star</span></td></tr><tr><td><span class="hspace"> </span><span class="RktVal">'</span><span class="RktVal">full6star</span><span class="hspace"> </span><span class="RktVal">'</span><span class="RktVal">full7star</span><span class="hspace"> </span><span class="RktVal">'</span><span class="RktVal">full8star</span></td></tr><tr><td><span class="hspace"> </span><span class="RktVal">'</span><span class="RktVal">circle1</span><span class="hspace"> </span><span class="RktVal">'</span><span class="RktVal">circle2</span><span class="hspace"> </span><span class="RktVal">'</span><span class="RktVal">circle3</span></td></tr><tr><td><span class="hspace"> </span><span class="RktVal">'</span><span class="RktVal">circle4</span><span class="hspace"> </span><span class="RktVal">'</span><span class="RktVal">circle5</span><span class="hspace"> </span><span class="RktVal">'</span><span class="RktVal">circle6</span></td></tr><tr><td><span class="hspace"> </span><span class="RktVal">'</span><span class="RktVal">circle7</span><span class="hspace"> </span><span class="RktVal">'</span><span class="RktVal">circle8</span><span class="hspace"> </span><span class="RktVal">'</span><span class="RktVal">bullet</span></td></tr><tr><td><span class="hspace"> </span><span class="RktVal">'</span><span class="RktVal">fullcircle1</span><span class="hspace"> </span><span class="RktVal">'</span><span class="RktVal">fullcircle2</span><span class="hspace"> </span><span class="RktVal">'</span><span class="RktVal">fullcircle3</span></td></tr><tr><td><span class="hspace"> </span><span class="RktVal">'</span><span class="RktVal">fullcircle4</span><span class="hspace"> </span><span class="RktVal">'</span><span class="RktVal">fullcircle5</span><span class="hspace"> </span><span class="RktVal">'</span><span class="RktVal">fullcircle6</span></td></tr><tr><td><span class="hspace"> </span><span class="RktVal">'</span><span class="RktVal">fullcircle7</span><span class="hspace"> </span><span class="RktVal">'</span><span class="RktVal">fullcircle8</span><span class="RktPn">)</span></td></tr></table></td></tr></table></td></tr></table></blockquote></div><div class="SIntrapara">A list containing the symbols that are valid <span class="RktSym"><a href="renderer2d.html#%28def._%28%28lib._plot%2Fmain..rkt%29._points%29%29" class="RktValLink" data-pltdoc="x">points</a></span> symbols.</div></p><h4 x-source-module="(lib "plot/scribblings/plot.scrbl")" x-part-tag=""Appearance_Argument_List_Contracts"">9.3<tt> </tt><a name="(part._.Appearance_.Argument_.List_.Contracts)"></a>Appearance Argument List Contracts</h4><p><div class="SIntrapara"><blockquote class="SVInsetFlow"><table cellspacing="0" cellpadding="0" class="boxed RBoxed"><tr><td><blockquote class="SubFlow"><div class="RBackgroundLabel SIEHidden"><div class="RBackgroundLabelInner"><p>procedure</p></div></div><p class="RForeground"><span class="RktPn">(</span><a name="(def._((lib._plot/utils..rkt)._maybe-function/c))"></a><span title="Provided from: plot/utils | Package: plot-lib"><span class="RktSym"><a href="#%28def._%28%28lib._plot%2Futils..rkt%29._maybe-function%2Fc%29%29" class="RktValDef RktValLink" data-pltdoc="x">maybe-function/c</a></span></span><span class="hspace"> </span><span class="RktVar">in-contract</span><span class="hspace"> </span><span class="RktVar">out-contract</span><span class="RktPn">)</span><span class="hspace"> </span>→<span class="hspace"> </span><span class="RktSym"><a href="http://download.racket-lang.org/docs/6.1/html/local-redirect/index.html?doc=reference&rel=contract-utilities.html%23%2528def._%2528%2528lib._racket%252Fcontract%252Fprivate%252Fmisc..rkt%2529._contract%7E3f%2529%2529&version=6.1" class="RktValLink Sq" data-pltdoc="x">contract?</a></span></p></blockquote></td></tr><tr><td><span class="hspace"> </span><span class="RktVar">in-contract</span><span class="hspace"> </span>:<span class="hspace"> </span><span class="RktSym"><a href="http://download.racket-lang.org/docs/6.1/html/local-redirect/index.html?doc=reference&rel=contract-utilities.html%23%2528def._%2528%2528lib._racket%252Fcontract%252Fprivate%252Fmisc..rkt%2529._contract%7E3f%2529%2529&version=6.1" class="RktValLink Sq" data-pltdoc="x">contract?</a></span></td></tr><tr><td><span class="hspace"> </span><span class="RktVar">out-contract</span><span class="hspace"> </span>:<span class="hspace"> </span><span class="RktSym"><a href="http://download.racket-lang.org/docs/6.1/html/local-redirect/index.html?doc=reference&rel=contract-utilities.html%23%2528def._%2528%2528lib._racket%252Fcontract%252Fprivate%252Fmisc..rkt%2529._contract%7E3f%2529%2529&version=6.1" class="RktValLink Sq" data-pltdoc="x">contract?</a></span></td></tr><tr><td><table cellspacing="0" cellpadding="0" class="argcontract"><tr><td><span class="hspace"> </span>=<span class="hspace"> </span></td><td><span class="RktPn">(</span><span class="RktSym"><a href="http://download.racket-lang.org/docs/6.1/html/local-redirect/index.html?doc=reference&rel=data-structure-contracts.html%23%2528def._%2528%2528lib._racket%252Fcontract%252Fbase..rkt%2529._or%252Fc%2529%2529&version=6.1" class="RktValLink Sq" data-pltdoc="x">or/c</a></span><span class="hspace"> </span><span class="RktVar">out-contract</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktVar">in-contract</span><span class="hspace"> </span><span class="RktPn">. </span><span class="RktSym"><a href="http://download.racket-lang.org/docs/6.1/html/local-redirect/index.html?doc=reference&rel=function-contracts.html%23%2528form._%2528%2528lib._racket%252Fcontract%252Fbase..rkt%2529._-%7E3e%2529%2529&version=6.1" class="RktStxLink Sq" data-pltdoc="x"><span class="nobreak">-></span></a></span><span class="RktPn"> .</span><span class="hspace"> </span><span class="RktVar">out-contract</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr></table></td></tr></table></blockquote></div><div class="SIntrapara">Returns a contract that accepts either a function from <span class="RktVar">in-contract</span> to <span class="RktVar">out-contract</span>, or a plain <span class="RktVar">out-contract</span> value.</div></p><blockquote class="SCodeFlow"><table cellspacing="0" cellpadding="0" class="RktBlk"><tr><td><span class="stt">> </span><span class="RktPn">(</span><span class="RktSym"><a href="http://download.racket-lang.org/docs/6.1/html/local-redirect/index.html?doc=reference&rel=require.html%23%2528form._%2528%2528lib._racket%252Fprivate%252Fbase..rkt%2529._require%2529%2529&version=6.1" class="RktStxLink Sq" data-pltdoc="x">require</a></span><span class="hspace"> </span><span class="RktSym">racket/contract</span><span class="RktPn">)</span></td></tr><tr><td><table cellspacing="0" cellpadding="0"><tr><td></td></tr></table></td></tr><tr><td><table cellspacing="0" cellpadding="0" class="RktBlk"><tr><td><span class="stt">> </span><span class="RktPn">(</span><span class="RktSym"><a href="http://download.racket-lang.org/docs/6.1/html/local-redirect/index.html?doc=reference&rel=attaching-contracts-to-values.html%23%2528form._%2528%2528lib._racket%252Fcontract%252Fregion..rkt%2529._define%252Fcontract%2529%2529&version=6.1" class="RktStxLink Sq" data-pltdoc="x">define/contract</a></span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">maybe-function-of-real-consumer</span><span class="hspace"> </span><span class="RktSym">x</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktPn">(</span><span class="RktSym"><a href="#%28def._%28%28lib._plot%2Futils..rkt%29._maybe-function%2Fc%29%29" class="RktValLink" data-pltdoc="x">maybe-function/c</a></span><span class="hspace"> </span><span class="RktSym"><a href="http://download.racket-lang.org/docs/6.1/html/local-redirect/index.html?doc=reference&rel=number-types.html%23%2528def._%2528%2528quote._%7E23%7E25kernel%2529._real%7E3f%2529%2529&version=6.1" class="RktValLink Sq" data-pltdoc="x">real?</a></span><span class="hspace"> </span><span class="RktSym"><a href="http://download.racket-lang.org/docs/6.1/html/local-redirect/index.html?doc=reference&rel=number-types.html%23%2528def._%2528%2528quote._%7E23%7E25kernel%2529._real%7E3f%2529%2529&version=6.1" class="RktValLink Sq" data-pltdoc="x">real?</a></span><span class="RktPn">)</span><span class="hspace"> </span><span class="RktPn">. </span><span class="RktSym"><a href="http://download.racket-lang.org/docs/6.1/html/local-redirect/index.html?doc=reference&rel=function-contracts.html%23%2528form._%2528%2528lib._racket%252Fcontract%252Fbase..rkt%2529._-%7E3e%2529%2529&version=6.1" class="RktStxLink Sq" data-pltdoc="x"><span class="nobreak">-></span></a></span><span class="RktPn"> .</span><span class="hspace"> </span><span class="RktSym"><a href="http://download.racket-lang.org/docs/6.1/html/local-redirect/index.html?doc=reference&rel=number-types.html%23%2528def._%2528%2528quote._%7E23%7E25kernel%2529._real%7E3f%2529%2529&version=6.1" class="RktValLink Sq" data-pltdoc="x">real?</a></span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym"><a href="#%28def._%28%28lib._plot%2Futils..rkt%29._maybe-apply%29%29" class="RktValLink" data-pltdoc="x">maybe-apply</a></span><span class="hspace"> </span><span class="RktSym">x</span><span class="hspace"> </span><span class="RktVal">10</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr></table></td></tr><tr><td><table cellspacing="0" cellpadding="0"><tr><td></td></tr></table></td></tr><tr><td><span class="stt">> </span><span class="RktPn">(</span><span class="RktSym">maybe-function-of-real-consumer</span><span class="hspace"> </span><span class="RktVal">4</span><span class="RktPn">)</span></td></tr><tr><td><p><span class="RktRes">4</span></p></td></tr><tr><td><span class="stt">> </span><span class="RktPn">(</span><span class="RktSym">maybe-function-of-real-consumer</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym"><a href="http://download.racket-lang.org/docs/6.1/html/local-redirect/index.html?doc=reference&rel=lambda.html%23%2528form._%2528%2528lib._racket%252Fprivate%252Fbase..rkt%2529._%7Ece%7Ebb%2529%2529&version=6.1" class="RktStxLink Sq" data-pltdoc="x">λ</a></span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">x</span><span class="RktPn">)</span><span class="hspace"> </span><span class="RktSym">x</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr><tr><td><p><span class="RktRes">10</span></p></td></tr></table></blockquote><p>Many <a href="index.html" class="RktModLink" data-pltdoc="x"><span class="RktSym">plot</span></a> functions, such as <span class="RktSym"><a href="renderer2d.html#%28def._%28%28lib._plot%2Fmain..rkt%29._contours%29%29" class="RktValLink" data-pltdoc="x">contours</a></span> and <span class="RktSym"><a href="renderer3d.html#%28def._%28%28lib._plot%2Fmain..rkt%29._isosurfaces3d%29%29" class="RktValLink" data-pltdoc="x">isosurfaces3d</a></span>, optionally take lists of appearance values (such as <span class="RktPn">(</span><span class="RktSym"><a href="http://download.racket-lang.org/docs/6.1/html/local-redirect/index.html?doc=reference&rel=data-structure-contracts.html%23%2528def._%2528%2528lib._racket%252Fcontract%252Fprivate%252Fmisc..rkt%2529._listof%2529%2529&version=6.1" class="RktValLink Sq" data-pltdoc="x">listof</a></span><span class="stt"> </span><span class="RktSym"><a href="#%28def._%28%28lib._plot%2Futils..rkt%29._plot-color%2Fc%29%29" class="RktValLink" data-pltdoc="x">plot-color/c</a></span><span class="RktPn">)</span>) as arguments.
A very flexible argument contract would accept <span style="font-style: italic">functions</span> that produce lists of appearance values.
For example, <span class="RktSym"><a href="renderer2d.html#%28def._%28%28lib._plot%2Fmain..rkt%29._contours%29%29" class="RktValLink" data-pltdoc="x">contours</a></span> would accept any <span class="RktSym">f</span> with contract <span class="RktPn">(</span><span class="RktSym"><a href="http://download.racket-lang.org/docs/6.1/html/local-redirect/index.html?doc=reference&rel=function-contracts.html%23%2528form._%2528%2528lib._racket%252Fcontract%252Fbase..rkt%2529._-%7E3e%2529%2529&version=6.1" class="RktStxLink Sq" data-pltdoc="x"><span class="nobreak">-></span></a></span><span class="stt"> </span><span class="RktPn">(</span><span class="RktSym"><a href="http://download.racket-lang.org/docs/6.1/html/local-redirect/index.html?doc=reference&rel=data-structure-contracts.html%23%2528def._%2528%2528lib._racket%252Fcontract%252Fprivate%252Fmisc..rkt%2529._listof%2529%2529&version=6.1" class="RktValLink Sq" data-pltdoc="x">listof</a></span><span class="stt"> </span><span class="RktSym"><a href="http://download.racket-lang.org/docs/6.1/html/local-redirect/index.html?doc=reference&rel=number-types.html%23%2528def._%2528%2528quote._%7E23%7E25kernel%2529._real%7E3f%2529%2529&version=6.1" class="RktValLink Sq" data-pltdoc="x">real?</a></span><span class="RktPn">)</span><span class="stt"> </span><span class="RktPn">(</span><span class="RktSym"><a href="http://download.racket-lang.org/docs/6.1/html/local-redirect/index.html?doc=reference&rel=data-structure-contracts.html%23%2528def._%2528%2528lib._racket%252Fcontract%252Fprivate%252Fmisc..rkt%2529._listof%2529%2529&version=6.1" class="RktValLink Sq" data-pltdoc="x">listof</a></span><span class="stt"> </span><span class="RktSym"><a href="#%28def._%28%28lib._plot%2Futils..rkt%29._plot-color%2Fc%29%29" class="RktValLink" data-pltdoc="x">plot-color/c</a></span><span class="RktPn">)</span><span class="RktPn">)</span> for its <span class="RktPn">#:colors</span> argument.
When rendering a contour plot, <span class="RktSym"><a href="renderer2d.html#%28def._%28%28lib._plot%2Fmain..rkt%29._contours%29%29" class="RktValLink" data-pltdoc="x">contours</a></span> would apply <span class="RktSym">f</span> to a list of the contour <span style="font-style: italic">z</span> values to get the contour colors.</p><p>However, most uses do not need this flexibility.
Therefore, <a href="index.html" class="RktModLink" data-pltdoc="x"><span class="RktSym">plot</span></a>’s functions accept <span style="font-style: italic">either</span> a list of appearance values <span style="font-style: italic">or</span> a function from a list of appropriate values to a list of appearance values.
The <span class="RktSym"><a href="#%28def._%28%28lib._plot%2Futils..rkt%29._maybe-function%2Fc%29%29" class="RktValLink" data-pltdoc="x">maybe-function/c</a></span> function constructs contracts for such arguments.</p><p>In <a href="index.html" class="RktModLink" data-pltdoc="x"><span class="RktSym">plot</span></a> functions, if <span class="RktVar">in-contract</span> is a <span class="RktSym"><a href="http://download.racket-lang.org/docs/6.1/html/local-redirect/index.html?doc=reference&rel=data-structure-contracts.html%23%2528def._%2528%2528lib._racket%252Fcontract%252Fprivate%252Fmisc..rkt%2529._listof%2529%2529&version=6.1" class="RktValLink Sq" data-pltdoc="x">listof</a></span> contract, the output list’s length need not be the same as the input list’s length.
If it is shorter, the appearance values will cycle; if longer, the tail will not be used.</p><p><div class="SIntrapara"><blockquote class="SVInsetFlow"><table cellspacing="0" cellpadding="0" class="boxed RBoxed"><tr><td><blockquote class="SubFlow"><div class="RBackgroundLabel SIEHidden"><div class="RBackgroundLabelInner"><p>procedure</p></div></div><p class="RForeground"><span class="RktPn">(</span><a name="(def._((lib._plot/utils..rkt)._maybe-apply))"></a><span title="Provided from: plot/utils | Package: plot-lib"><span class="RktSym"><a href="#%28def._%28%28lib._plot%2Futils..rkt%29._maybe-apply%29%29" class="RktValDef RktValLink" data-pltdoc="x">maybe-apply</a></span></span><span class="hspace"> </span><span class="RktVar">f</span><span class="hspace"> </span><span class="RktVar">arg</span><span class="RktPn">)</span><span class="hspace"> </span>→<span class="hspace"> </span><span class="RktSym"><a href="http://download.racket-lang.org/docs/6.1/html/local-redirect/index.html?doc=reference&rel=data-structure-contracts.html%23%2528def._%2528%2528lib._racket%252Fcontract%252Fprivate%252Fmisc..rkt%2529._any%252Fc%2529%2529&version=6.1" class="RktValLink Sq" data-pltdoc="x">any/c</a></span></p></blockquote></td></tr><tr><td><span class="hspace"> </span><span class="RktVar">f</span><span class="hspace"> </span>:<span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym"><a href="#%28def._%28%28lib._plot%2Futils..rkt%29._maybe-function%2Fc%29%29" class="RktValLink" data-pltdoc="x">maybe-function/c</a></span><span class="hspace"> </span><span class="RktSym"><a href="http://download.racket-lang.org/docs/6.1/html/local-redirect/index.html?doc=reference&rel=data-structure-contracts.html%23%2528def._%2528%2528lib._racket%252Fcontract%252Fprivate%252Fmisc..rkt%2529._any%252Fc%2529%2529&version=6.1" class="RktValLink Sq" data-pltdoc="x">any/c</a></span><span class="hspace"> </span><span class="RktSym"><a href="http://download.racket-lang.org/docs/6.1/html/local-redirect/index.html?doc=reference&rel=data-structure-contracts.html%23%2528def._%2528%2528lib._racket%252Fcontract%252Fprivate%252Fmisc..rkt%2529._any%252Fc%2529%2529&version=6.1" class="RktValLink Sq" data-pltdoc="x">any/c</a></span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktVar">arg</span><span class="hspace"> </span>:<span class="hspace"> </span><span class="RktSym"><a href="http://download.racket-lang.org/docs/6.1/html/local-redirect/index.html?doc=reference&rel=data-structure-contracts.html%23%2528def._%2528%2528lib._racket%252Fcontract%252Fprivate%252Fmisc..rkt%2529._any%252Fc%2529%2529&version=6.1" class="RktValLink Sq" data-pltdoc="x">any/c</a></span></td></tr></table></blockquote></div><div class="SIntrapara">If <span class="RktVar">f</span> is a function, applies <span class="RktVar">f</span> to <span class="RktSym">args</span>; otherwise returns <span class="RktVar">f</span>.</div></p><p>This is used inside many renderer-producing <span class="RktSym"><a href="plotting.html#%28def._%28%28lib._plot%2Fmain..rkt%29._plot%29%29" class="RktValLink" data-pltdoc="x">plot</a></span> functions to convert <span class="RktSym"><a href="#%28def._%28%28lib._plot%2Futils..rkt%29._maybe-function%2Fc%29%29" class="RktValLink" data-pltdoc="x">maybe-function/c</a></span> values to lists of appearance values.</p><p><div class="SIntrapara"><blockquote class="SVInsetFlow"><table cellspacing="0" cellpadding="0" class="boxed RBoxed"><tr><td><blockquote class="SubFlow"><div class="RBackgroundLabel SIEHidden"><div class="RBackgroundLabelInner"><p>procedure</p></div></div><p class="RForeground"><span class="RktPn">(</span><a name="(def._((lib._plot/utils..rkt)._plot-colors/c))"></a><span title="Provided from: plot/utils | Package: plot-lib"><span class="RktSym"><a href="#%28def._%28%28lib._plot%2Futils..rkt%29._plot-colors%2Fc%29%29" class="RktValDef RktValLink" data-pltdoc="x">plot-colors/c</a></span></span><span class="hspace"> </span><span class="RktVar">in-contract</span><span class="RktPn">)</span><span class="hspace"> </span>→<span class="hspace"> </span><span class="RktSym"><a href="http://download.racket-lang.org/docs/6.1/html/local-redirect/index.html?doc=reference&rel=contract-utilities.html%23%2528def._%2528%2528lib._racket%252Fcontract%252Fprivate%252Fmisc..rkt%2529._contract%7E3f%2529%2529&version=6.1" class="RktValLink Sq" data-pltdoc="x">contract?</a></span></p></blockquote></td></tr><tr><td><span class="hspace"> </span><span class="RktVar">in-contract</span><span class="hspace"> </span>:<span class="hspace"> </span><span class="RktSym"><a href="http://download.racket-lang.org/docs/6.1/html/local-redirect/index.html?doc=reference&rel=contract-utilities.html%23%2528def._%2528%2528lib._racket%252Fcontract%252Fprivate%252Fmisc..rkt%2529._contract%7E3f%2529%2529&version=6.1" class="RktValLink Sq" data-pltdoc="x">contract?</a></span></td></tr><tr><td><table cellspacing="0" cellpadding="0" class="argcontract"><tr><td><span class="hspace"> </span>=<span class="hspace"> </span></td><td><span class="RktPn">(</span><span class="RktSym"><a href="#%28def._%28%28lib._plot%2Futils..rkt%29._maybe-function%2Fc%29%29" class="RktValLink" data-pltdoc="x">maybe-function/c</a></span><span class="hspace"> </span><span class="RktVar">in-contract</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym"><a href="http://download.racket-lang.org/docs/6.1/html/local-redirect/index.html?doc=reference&rel=data-structure-contracts.html%23%2528def._%2528%2528lib._racket%252Fcontract%252Fprivate%252Fmisc..rkt%2529._listof%2529%2529&version=6.1" class="RktValLink Sq" data-pltdoc="x">listof</a></span><span class="hspace"> </span><span class="RktSym"><a href="#%28def._%28%28lib._plot%2Futils..rkt%29._plot-color%2Fc%29%29" class="RktValLink" data-pltdoc="x">plot-color/c</a></span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr></table></td></tr></table></blockquote></div><div class="SIntrapara">Returns a contract for <span class="RktPn">#:colors</span> arguments, as in <span class="RktSym"><a href="renderer2d.html#%28def._%28%28lib._plot%2Fmain..rkt%29._contours%29%29" class="RktValLink" data-pltdoc="x">contours</a></span> and <span class="RktSym"><a href="renderer2d.html#%28def._%28%28lib._plot%2Fmain..rkt%29._contour-intervals%29%29" class="RktValLink" data-pltdoc="x">contour-intervals</a></span>.
See <span class="RktSym"><a href="#%28def._%28%28lib._plot%2Futils..rkt%29._maybe-function%2Fc%29%29" class="RktValLink" data-pltdoc="x">maybe-function/c</a></span> for a discussion of the returned contract.</div></p><p><div class="SIntrapara">The following example sends a <span style="font-style: italic">list</span>-valued <span class="RktPn">(</span><span class="RktSym"><a href="#%28def._%28%28lib._plot%2Futils..rkt%29._plot-colors%2Fc%29%29" class="RktValLink" data-pltdoc="x">plot-colors/c</a></span><span class="stt"> </span><span class="RktSym"><a href="utils.html#%28def._%28%28lib._plot%2Futils..rkt%29._ivl~3f%29%29" class="RktValLink" data-pltdoc="x">ivl?</a></span><span class="RktPn">)</span> to <span class="RktSym"><a href="renderer2d.html#%28def._%28%28lib._plot%2Fmain..rkt%29._contour-intervals%29%29" class="RktValLink" data-pltdoc="x">contour-intervals</a></span>, which then cycles through the colors:
</div><div class="SIntrapara"><blockquote class="SCodeFlow"><table cellspacing="0" cellpadding="0" class="RktBlk"><tr><td><table cellspacing="0" cellpadding="0" class="RktBlk"><tr><td><span class="stt">> </span><span class="RktPn">(</span><span class="RktSym"><a href="plotting.html#%28def._%28%28lib._plot%2Fmain..rkt%29._plot%29%29" class="RktValLink" data-pltdoc="x">plot</a></span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym"><a href="renderer2d.html#%28def._%28%28lib._plot%2Fmain..rkt%29._contour-intervals%29%29" class="RktValLink" data-pltdoc="x">contour-intervals</a></span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym"><a href="http://download.racket-lang.org/docs/6.1/html/local-redirect/index.html?doc=reference&rel=lambda.html%23%2528form._%2528%2528lib._racket%252Fprivate%252Fbase..rkt%2529._%7Ece%7Ebb%2529%2529&version=6.1" class="RktStxLink Sq" data-pltdoc="x">λ</a></span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">x</span><span class="hspace"> </span><span class="RktSym">y</span><span class="RktPn">)</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym"><a href="http://download.racket-lang.org/docs/6.1/html/local-redirect/index.html?doc=reference&rel=generic-numbers.html%23%2528def._%2528%2528quote._%7E23%7E25kernel%2529._%252B%2529%2529&version=6.1" class="RktValLink Sq" data-pltdoc="x">+</a></span><span class="hspace"> </span><span class="RktSym">x</span><span class="hspace"> </span><span class="RktSym">y</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="hspace"> </span><span class="RktVal">0</span><span class="hspace"> </span><span class="RktVal">1</span><span class="hspace"> </span><span class="RktVal">0</span><span class="hspace"> </span><span class="RktVal">1</span></td></tr><tr><td><span class="hspace"> </span><span class="hspace"> </span><span class="RktPn">#:colors</span><span class="hspace"> </span><span class="RktVal">'</span><span class="RktVal">(</span><span class="RktVal">1</span><span class="hspace"> </span><span class="RktVal">2</span><span class="RktVal">)</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr></table></td></tr><tr><td><p><img style="vertical-align: 0px; margin: -3px -3px -3px -3px;" src="pict_84.png" alt="image" width="406" height="406"/></p></td></tr></table></blockquote></div><div class="SIntrapara">This is equivalent to sending <span class="RktPn">(</span><span class="RktSym"><a href="http://download.racket-lang.org/docs/6.1/html/local-redirect/index.html?doc=reference&rel=lambda.html%23%2528form._%2528%2528lib._racket%252Fprivate%252Fbase..rkt%2529._%7Ece%7Ebb%2529%2529&version=6.1" class="RktStxLink Sq" data-pltdoc="x">λ</a></span><span class="stt"> </span><span class="RktSym"><a href="http://download.racket-lang.org/docs/6.1/html/local-redirect/index.html?doc=reference&rel=stx-patterns.html%23%2528form._%2528%2528lib._racket%252Fprivate%252Fstxcase-scheme..rkt%2529.__%2529%2529&version=6.1" class="RktStxLink Sq" data-pltdoc="x">_</a></span><span class="stt"> </span><span class="RktVal">'</span><span class="RktVal">(</span><span class="RktVal">1</span><span class="stt"> </span><span class="RktVal">2</span><span class="RktVal">)</span><span class="RktPn">)</span>.</div></p><p><div class="SIntrapara">The next example is more sophisticated: it sends a <span style="font-style: italic">function</span>-valued <span class="RktPn">(</span><span class="RktSym"><a href="#%28def._%28%28lib._plot%2Futils..rkt%29._plot-colors%2Fc%29%29" class="RktValLink" data-pltdoc="x">plot-colors/c</a></span><span class="stt"> </span><span class="RktSym"><a href="utils.html#%28def._%28%28lib._plot%2Futils..rkt%29._ivl~3f%29%29" class="RktValLink" data-pltdoc="x">ivl?</a></span><span class="RktPn">)</span> to <span class="RktSym"><a href="renderer2d.html#%28def._%28%28lib._plot%2Fmain..rkt%29._contour-intervals%29%29" class="RktValLink" data-pltdoc="x">contour-intervals</a></span>.
The function constructs colors from the values of the contour intervals.
</div><div class="SIntrapara"><blockquote class="SCodeFlow"><table cellspacing="0" cellpadding="0" class="RktBlk"><tr><td><table cellspacing="0" cellpadding="0" class="RktBlk"><tr><td><span class="stt">> </span><span class="RktPn">(</span><span class="RktSym"><a href="http://download.racket-lang.org/docs/6.1/html/local-redirect/index.html?doc=reference&rel=define.html%23%2528form._%2528%2528lib._racket%252Fprivate%252Fbase..rkt%2529._define%2529%2529&version=6.1" class="RktStxLink Sq" data-pltdoc="x">define</a></span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">brown-interval-colors</span><span class="hspace"> </span><span class="RktSym">ivls</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym"><a href="http://download.racket-lang.org/docs/6.1/html/local-redirect/index.html?doc=reference&rel=define.html%23%2528form._%2528%2528lib._racket%252Fprivate%252Fbase..rkt%2529._define%2529%2529&version=6.1" class="RktStxLink Sq" data-pltdoc="x">define</a></span><span class="hspace"> </span><span class="RktSym">z-size</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym"><a href="http://download.racket-lang.org/docs/6.1/html/local-redirect/index.html?doc=reference&rel=generic-numbers.html%23%2528def._%2528%2528quote._%7E23%7E25kernel%2529._-%2529%2529&version=6.1" class="RktValLink Sq" data-pltdoc="x"><span class="nobreak">-</span></a></span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym"><a href="utils.html#%28def._%28%28lib._plot%2Futils..rkt%29._ivl-max%29%29" class="RktValLink" data-pltdoc="x">ivl-max</a></span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym"><a href="http://download.racket-lang.org/docs/6.1/html/local-redirect/index.html?doc=reference&rel=pairs.html%23%2528def._%2528%2528lib._racket%252Flist..rkt%2529._last%2529%2529&version=6.1" class="RktValLink Sq" data-pltdoc="x">last</a></span><span class="hspace"> </span><span class="RktSym">ivls</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym"><a href="utils.html#%28def._%28%28lib._plot%2Futils..rkt%29._ivl-min%29%29" class="RktValLink" data-pltdoc="x">ivl-min</a></span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym"><a href="http://download.racket-lang.org/docs/6.1/html/local-redirect/index.html?doc=reference&rel=pairs.html%23%2528def._%2528%2528lib._racket%252Flist..rkt%2529._first%2529%2529&version=6.1" class="RktValLink Sq" data-pltdoc="x">first</a></span><span class="hspace"> </span><span class="RktSym">ivls</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym"><a href="http://download.racket-lang.org/docs/6.1/html/local-redirect/index.html?doc=reference&rel=for.html%23%2528form._%2528%2528lib._racket%252Fprivate%252Fbase..rkt%2529._for%252Flist%2529%2529&version=6.1" class="RktStxLink Sq" data-pltdoc="x">for/list</a></span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktPn">[</span><span class="RktSym">i</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym"><a href="http://download.racket-lang.org/docs/6.1/html/local-redirect/index.html?doc=reference&rel=sequences.html%23%2528def._%2528%2528lib._racket%252Fprivate%252Fbase..rkt%2529._in-list%2529%2529&version=6.1" class="RktValLink Sq" data-pltdoc="x">in-list</a></span><span class="hspace"> </span><span class="RktSym">ivls</span><span class="RktPn">)</span><span class="RktPn">]</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym"><a href="http://download.racket-lang.org/docs/6.1/html/local-redirect/index.html?doc=reference&rel=match.html%23%2528form._%2528%2528lib._racket%252Fmatch..rkt%2529._match-define%2529%2529&version=6.1" class="RktStxLink Sq" data-pltdoc="x">match-define</a></span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym"><a href="utils.html#%28def._%28%28lib._plot%2Futils..rkt%29._ivl%29%29" class="RktValLink" data-pltdoc="x">ivl</a></span><span class="hspace"> </span><span class="RktSym">z-min</span><span class="hspace"> </span><span class="RktSym">z-max</span><span class="RktPn">)</span><span class="hspace"> </span><span class="RktSym">i</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym"><a href="http://download.racket-lang.org/docs/6.1/html/local-redirect/index.html?doc=reference&rel=define.html%23%2528form._%2528%2528lib._racket%252Fprivate%252Fbase..rkt%2529._define%2529%2529&version=6.1" class="RktStxLink Sq" data-pltdoc="x">define</a></span><span class="hspace"> </span><span class="RktSym">z-mid</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym"><a href="http://download.racket-lang.org/docs/6.1/html/local-redirect/index.html?doc=reference&rel=generic-numbers.html%23%2528def._%2528%2528quote._%7E23%7E25kernel%2529._%252F%2529%2529&version=6.1" class="RktValLink Sq" data-pltdoc="x">/</a></span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym"><a href="http://download.racket-lang.org/docs/6.1/html/local-redirect/index.html?doc=reference&rel=generic-numbers.html%23%2528def._%2528%2528quote._%7E23%7E25kernel%2529._%252A%2529%2529&version=6.1" class="RktValLink Sq" data-pltdoc="x">*</a></span><span class="hspace"> </span><span class="RktVal">1/2</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym"><a href="http://download.racket-lang.org/docs/6.1/html/local-redirect/index.html?doc=reference&rel=generic-numbers.html%23%2528def._%2528%2528quote._%7E23%7E25kernel%2529._%252B%2529%2529&version=6.1" class="RktValLink Sq" data-pltdoc="x">+</a></span><span class="hspace"> </span><span class="RktSym">z-min</span><span class="hspace"> </span><span class="RktSym">z-max</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="hspace"> </span><span class="RktSym">z-size</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym"><a href="http://download.racket-lang.org/docs/6.1/html/local-redirect/index.html?doc=reference&rel=pairs.html%23%2528def._%2528%2528quote._%7E23%7E25kernel%2529._list%2529%2529&version=6.1" class="RktValLink Sq" data-pltdoc="x">list</a></span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym"><a href="http://download.racket-lang.org/docs/6.1/html/local-redirect/index.html?doc=reference&rel=generic-numbers.html%23%2528def._%2528%2528quote._%7E23%7E25kernel%2529._%252A%2529%2529&version=6.1" class="RktValLink Sq" data-pltdoc="x">*</a></span><span class="hspace"> </span><span class="RktVal">255</span><span class="hspace"> </span><span class="RktSym">z-mid</span><span class="RktPn">)</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym"><a href="http://download.racket-lang.org/docs/6.1/html/local-redirect/index.html?doc=reference&rel=generic-numbers.html%23%2528def._%2528%2528quote._%7E23%7E25kernel%2529._%252A%2529%2529&version=6.1" class="RktValLink Sq" data-pltdoc="x">*</a></span><span class="hspace"> </span><span class="RktVal">128</span><span class="hspace"> </span><span class="RktSym">z-mid</span><span class="RktPn">)</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym"><a href="http://download.racket-lang.org/docs/6.1/html/local-redirect/index.html?doc=reference&rel=generic-numbers.html%23%2528def._%2528%2528quote._%7E23%7E25kernel%2529._%252A%2529%2529&version=6.1" class="RktValLink Sq" data-pltdoc="x">*</a></span><span class="hspace"> </span><span class="RktVal">64</span><span class="hspace"> </span><span class="RktSym">z-mid</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr></table></td></tr><tr><td><table cellspacing="0" cellpadding="0"><tr><td></td></tr></table></td></tr><tr><td><table cellspacing="0" cellpadding="0" class="RktBlk"><tr><td><span class="stt">> </span><span class="RktPn">(</span><span class="RktSym"><a href="plotting.html#%28def._%28%28lib._plot%2Fmain..rkt%29._plot%29%29" class="RktValLink" data-pltdoc="x">plot</a></span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym"><a href="renderer2d.html#%28def._%28%28lib._plot%2Fmain..rkt%29._contour-intervals%29%29" class="RktValLink" data-pltdoc="x">contour-intervals</a></span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym"><a href="http://download.racket-lang.org/docs/6.1/html/local-redirect/index.html?doc=reference&rel=lambda.html%23%2528form._%2528%2528lib._racket%252Fprivate%252Fbase..rkt%2529._%7Ece%7Ebb%2529%2529&version=6.1" class="RktStxLink Sq" data-pltdoc="x">λ</a></span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">x</span><span class="hspace"> </span><span class="RktSym">y</span><span class="RktPn">)</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym"><a href="http://download.racket-lang.org/docs/6.1/html/local-redirect/index.html?doc=reference&rel=generic-numbers.html%23%2528def._%2528%2528quote._%7E23%7E25kernel%2529._%252B%2529%2529&version=6.1" class="RktValLink Sq" data-pltdoc="x">+</a></span><span class="hspace"> </span><span class="RktSym">x</span><span class="hspace"> </span><span class="RktSym">y</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="hspace"> </span><span class="RktVal">0</span><span class="hspace"> </span><span class="RktVal">1</span><span class="hspace"> </span><span class="RktVal">0</span><span class="hspace"> </span><span class="RktVal">1</span></td></tr><tr><td><span class="hspace"> </span><span class="hspace"> </span><span class="RktPn">#:colors</span><span class="hspace"> </span><span class="RktSym">brown-interval-colors</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr></table></td></tr><tr><td><p><img style="vertical-align: 0px; margin: -3px -3px -3px -3px;" src="pict_85.png" alt="image" width="406" height="406"/></p></td></tr></table></blockquote></div></p><p><div class="SIntrapara"><blockquote class="SVInsetFlow"><table cellspacing="0" cellpadding="0" class="boxed RBoxed"><tr><td><blockquote class="SubFlow"><div class="RBackgroundLabel SIEHidden"><div class="RBackgroundLabelInner"><p>procedure</p></div></div><p class="RForeground"><span class="RktPn">(</span><a name="(def._((lib._plot/utils..rkt)._plot-pen-styles/c))"></a><span title="Provided from: plot/utils | Package: plot-lib"><span class="RktSym"><a href="#%28def._%28%28lib._plot%2Futils..rkt%29._plot-pen-styles%2Fc%29%29" class="RktValDef RktValLink" data-pltdoc="x">plot-pen-styles/c</a></span></span><span class="hspace"> </span><span class="RktVar">in-contract</span><span class="RktPn">)</span><span class="hspace"> </span>→<span class="hspace"> </span><span class="RktSym"><a href="http://download.racket-lang.org/docs/6.1/html/local-redirect/index.html?doc=reference&rel=contract-utilities.html%23%2528def._%2528%2528lib._racket%252Fcontract%252Fprivate%252Fmisc..rkt%2529._contract%7E3f%2529%2529&version=6.1" class="RktValLink Sq" data-pltdoc="x">contract?</a></span></p></blockquote></td></tr><tr><td><span class="hspace"> </span><span class="RktVar">in-contract</span><span class="hspace"> </span>:<span class="hspace"> </span><span class="RktSym"><a href="http://download.racket-lang.org/docs/6.1/html/local-redirect/index.html?doc=reference&rel=contract-utilities.html%23%2528def._%2528%2528lib._racket%252Fcontract%252Fprivate%252Fmisc..rkt%2529._contract%7E3f%2529%2529&version=6.1" class="RktValLink Sq" data-pltdoc="x">contract?</a></span></td></tr><tr><td><table cellspacing="0" cellpadding="0" class="argcontract"><tr><td><span class="hspace"> </span>=<span class="hspace"> </span></td><td><span class="RktPn">(</span><span class="RktSym"><a href="#%28def._%28%28lib._plot%2Futils..rkt%29._maybe-function%2Fc%29%29" class="RktValLink" data-pltdoc="x">maybe-function/c</a></span><span class="hspace"> </span><span class="RktVar">in-contract</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym"><a href="http://download.racket-lang.org/docs/6.1/html/local-redirect/index.html?doc=reference&rel=data-structure-contracts.html%23%2528def._%2528%2528lib._racket%252Fcontract%252Fprivate%252Fmisc..rkt%2529._listof%2529%2529&version=6.1" class="RktValLink Sq" data-pltdoc="x">listof</a></span><span class="hspace"> </span><span class="RktSym"><a href="#%28def._%28%28lib._plot%2Futils..rkt%29._plot-pen-style%2Fc%29%29" class="RktValLink" data-pltdoc="x">plot-pen-style/c</a></span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr></table></td></tr></table></blockquote></div><div class="SIntrapara">Like <span class="RktSym"><a href="#%28def._%28%28lib._plot%2Futils..rkt%29._plot-colors%2Fc%29%29" class="RktValLink" data-pltdoc="x">plot-colors/c</a></span>, but for line styles.</div></p><p><div class="SIntrapara"><blockquote class="SVInsetFlow"><table cellspacing="0" cellpadding="0" class="boxed RBoxed"><tr><td><blockquote class="SubFlow"><div class="RBackgroundLabel SIEHidden"><div class="RBackgroundLabelInner"><p>procedure</p></div></div><p class="RForeground"><span class="RktPn">(</span><a name="(def._((lib._plot/utils..rkt)._pen-widths/c))"></a><span title="Provided from: plot/utils | Package: plot-lib"><span class="RktSym"><a href="#%28def._%28%28lib._plot%2Futils..rkt%29._pen-widths%2Fc%29%29" class="RktValDef RktValLink" data-pltdoc="x">pen-widths/c</a></span></span><span class="hspace"> </span><span class="RktVar">in-contract</span><span class="RktPn">)</span><span class="hspace"> </span>→<span class="hspace"> </span><span class="RktSym"><a href="http://download.racket-lang.org/docs/6.1/html/local-redirect/index.html?doc=reference&rel=contract-utilities.html%23%2528def._%2528%2528lib._racket%252Fcontract%252Fprivate%252Fmisc..rkt%2529._contract%7E3f%2529%2529&version=6.1" class="RktValLink Sq" data-pltdoc="x">contract?</a></span></p></blockquote></td></tr><tr><td><span class="hspace"> </span><span class="RktVar">in-contract</span><span class="hspace"> </span>:<span class="hspace"> </span><span class="RktSym"><a href="http://download.racket-lang.org/docs/6.1/html/local-redirect/index.html?doc=reference&rel=contract-utilities.html%23%2528def._%2528%2528lib._racket%252Fcontract%252Fprivate%252Fmisc..rkt%2529._contract%7E3f%2529%2529&version=6.1" class="RktValLink Sq" data-pltdoc="x">contract?</a></span></td></tr><tr><td><table cellspacing="0" cellpadding="0" class="argcontract"><tr><td><span class="hspace"> </span>=<span class="hspace"> </span></td><td><span class="RktPn">(</span><span class="RktSym"><a href="#%28def._%28%28lib._plot%2Futils..rkt%29._maybe-function%2Fc%29%29" class="RktValLink" data-pltdoc="x">maybe-function/c</a></span><span class="hspace"> </span><span class="RktVar">in-contract</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym"><a href="http://download.racket-lang.org/docs/6.1/html/local-redirect/index.html?doc=reference&rel=data-structure-contracts.html%23%2528def._%2528%2528lib._racket%252Fcontract%252Fprivate%252Fmisc..rkt%2529._listof%2529%2529&version=6.1" class="RktValLink Sq" data-pltdoc="x">listof</a></span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym"><a href="http://download.racket-lang.org/docs/6.1/html/local-redirect/index.html?doc=reference&rel=data-structure-contracts.html%23%2528def._%2528%2528lib._racket%252Fcontract%252Fprivate%252Fmisc..rkt%2529._%7E3e%7E3d%252Fc%2529%2529&version=6.1" class="RktValLink Sq" data-pltdoc="x">>=/c</a></span><span class="hspace"> </span><span class="RktVal">0</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr></table></td></tr></table></blockquote></div><div class="SIntrapara">Like <span class="RktSym"><a href="#%28def._%28%28lib._plot%2Futils..rkt%29._plot-colors%2Fc%29%29" class="RktValLink" data-pltdoc="x">plot-colors/c</a></span>, but for line widths.</div></p><p><div class="SIntrapara"><blockquote class="SVInsetFlow"><table cellspacing="0" cellpadding="0" class="boxed RBoxed"><tr><td><blockquote class="SubFlow"><div class="RBackgroundLabel SIEHidden"><div class="RBackgroundLabelInner"><p>procedure</p></div></div><p class="RForeground"><span class="RktPn">(</span><a name="(def._((lib._plot/utils..rkt)._plot-brush-styles/c))"></a><span title="Provided from: plot/utils | Package: plot-lib"><span class="RktSym"><a href="#%28def._%28%28lib._plot%2Futils..rkt%29._plot-brush-styles%2Fc%29%29" class="RktValDef RktValLink" data-pltdoc="x">plot-brush-styles/c</a></span></span><span class="hspace"> </span><span class="RktVar">in-contract</span><span class="RktPn">)</span><span class="hspace"> </span>→<span class="hspace"> </span><span class="RktSym"><a href="http://download.racket-lang.org/docs/6.1/html/local-redirect/index.html?doc=reference&rel=contract-utilities.html%23%2528def._%2528%2528lib._racket%252Fcontract%252Fprivate%252Fmisc..rkt%2529._contract%7E3f%2529%2529&version=6.1" class="RktValLink Sq" data-pltdoc="x">contract?</a></span></p></blockquote></td></tr><tr><td><span class="hspace"> </span><span class="RktVar">in-contract</span><span class="hspace"> </span>:<span class="hspace"> </span><span class="RktSym"><a href="http://download.racket-lang.org/docs/6.1/html/local-redirect/index.html?doc=reference&rel=contract-utilities.html%23%2528def._%2528%2528lib._racket%252Fcontract%252Fprivate%252Fmisc..rkt%2529._contract%7E3f%2529%2529&version=6.1" class="RktValLink Sq" data-pltdoc="x">contract?</a></span></td></tr><tr><td><table cellspacing="0" cellpadding="0" class="argcontract"><tr><td><span class="hspace"> </span>=<span class="hspace"> </span></td><td><span class="RktPn">(</span><span class="RktSym"><a href="#%28def._%28%28lib._plot%2Futils..rkt%29._maybe-function%2Fc%29%29" class="RktValLink" data-pltdoc="x">maybe-function/c</a></span><span class="hspace"> </span><span class="RktVar">in-contract</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym"><a href="http://download.racket-lang.org/docs/6.1/html/local-redirect/index.html?doc=reference&rel=data-structure-contracts.html%23%2528def._%2528%2528lib._racket%252Fcontract%252Fprivate%252Fmisc..rkt%2529._listof%2529%2529&version=6.1" class="RktValLink Sq" data-pltdoc="x">listof</a></span><span class="hspace"> </span><span class="RktSym"><a href="#%28def._%28%28lib._plot%2Futils..rkt%29._plot-brush-style%2Fc%29%29" class="RktValLink" data-pltdoc="x">plot-brush-style/c</a></span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr></table></td></tr></table></blockquote></div><div class="SIntrapara">Like <span class="RktSym"><a href="#%28def._%28%28lib._plot%2Futils..rkt%29._plot-colors%2Fc%29%29" class="RktValLink" data-pltdoc="x">plot-colors/c</a></span>, but for fill styles.</div></p><p><div class="SIntrapara"><blockquote class="SVInsetFlow"><table cellspacing="0" cellpadding="0" class="boxed RBoxed"><tr><td><blockquote class="SubFlow"><div class="RBackgroundLabel SIEHidden"><div class="RBackgroundLabelInner"><p>procedure</p></div></div><p class="RForeground"><span class="RktPn">(</span><a name="(def._((lib._plot/utils..rkt)._alphas/c))"></a><span title="Provided from: plot/utils | Package: plot-lib"><span class="RktSym"><a href="#%28def._%28%28lib._plot%2Futils..rkt%29._alphas%2Fc%29%29" class="RktValDef RktValLink" data-pltdoc="x">alphas/c</a></span></span><span class="hspace"> </span><span class="RktVar">in-contract</span><span class="RktPn">)</span><span class="hspace"> </span>→<span class="hspace"> </span><span class="RktSym"><a href="http://download.racket-lang.org/docs/6.1/html/local-redirect/index.html?doc=reference&rel=contract-utilities.html%23%2528def._%2528%2528lib._racket%252Fcontract%252Fprivate%252Fmisc..rkt%2529._contract%7E3f%2529%2529&version=6.1" class="RktValLink Sq" data-pltdoc="x">contract?</a></span></p></blockquote></td></tr><tr><td><span class="hspace"> </span><span class="RktVar">in-contract</span><span class="hspace"> </span>:<span class="hspace"> </span><span class="RktSym"><a href="http://download.racket-lang.org/docs/6.1/html/local-redirect/index.html?doc=reference&rel=contract-utilities.html%23%2528def._%2528%2528lib._racket%252Fcontract%252Fprivate%252Fmisc..rkt%2529._contract%7E3f%2529%2529&version=6.1" class="RktValLink Sq" data-pltdoc="x">contract?</a></span></td></tr><tr><td><table cellspacing="0" cellpadding="0" class="argcontract"><tr><td><span class="hspace"> </span>=<span class="hspace"> </span></td><td><span class="RktPn">(</span><span class="RktSym"><a href="#%28def._%28%28lib._plot%2Futils..rkt%29._maybe-function%2Fc%29%29" class="RktValLink" data-pltdoc="x">maybe-function/c</a></span><span class="hspace"> </span><span class="RktVar">in-contract</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym"><a href="http://download.racket-lang.org/docs/6.1/html/local-redirect/index.html?doc=reference&rel=data-structure-contracts.html%23%2528def._%2528%2528lib._racket%252Fcontract%252Fprivate%252Fmisc..rkt%2529._listof%2529%2529&version=6.1" class="RktValLink Sq" data-pltdoc="x">listof</a></span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym"><a href="http://download.racket-lang.org/docs/6.1/html/local-redirect/index.html?doc=reference&rel=data-structure-contracts.html%23%2528def._%2528%2528lib._racket%252Fcontract%252Fprivate%252Fmisc..rkt%2529._real-in%2529%2529&version=6.1" class="RktValLink Sq" data-pltdoc="x">real-in</a></span><span class="hspace"> </span><span class="RktVal">0</span><span class="hspace"> </span><span class="RktVal">1</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr></table></td></tr></table></blockquote></div><div class="SIntrapara">Like <span class="RktSym"><a href="#%28def._%28%28lib._plot%2Futils..rkt%29._plot-colors%2Fc%29%29" class="RktValLink" data-pltdoc="x">plot-colors/c</a></span>, but for opacities.</div></p><p><div class="SIntrapara"><blockquote class="SVInsetFlow"><table cellspacing="0" cellpadding="0" class="boxed RBoxed"><tr><td><blockquote class="SubFlow"><div class="RBackgroundLabel SIEHidden"><div class="RBackgroundLabelInner"><p>procedure</p></div></div><p class="RForeground"><span class="RktPn">(</span><a name="(def._((lib._plot/utils..rkt)._labels/c))"></a><span title="Provided from: plot/utils | Package: plot-lib"><span class="RktSym"><a href="#%28def._%28%28lib._plot%2Futils..rkt%29._labels%2Fc%29%29" class="RktValDef RktValLink" data-pltdoc="x">labels/c</a></span></span><span class="hspace"> </span><span class="RktVar">in-contract</span><span class="RktPn">)</span><span class="hspace"> </span>→<span class="hspace"> </span><span class="RktSym"><a href="http://download.racket-lang.org/docs/6.1/html/local-redirect/index.html?doc=reference&rel=contract-utilities.html%23%2528def._%2528%2528lib._racket%252Fcontract%252Fprivate%252Fmisc..rkt%2529._contract%7E3f%2529%2529&version=6.1" class="RktValLink Sq" data-pltdoc="x">contract?</a></span></p></blockquote></td></tr><tr><td><span class="hspace"> </span><span class="RktVar">in-contract</span><span class="hspace"> </span>:<span class="hspace"> </span><span class="RktSym"><a href="http://download.racket-lang.org/docs/6.1/html/local-redirect/index.html?doc=reference&rel=contract-utilities.html%23%2528def._%2528%2528lib._racket%252Fcontract%252Fprivate%252Fmisc..rkt%2529._contract%7E3f%2529%2529&version=6.1" class="RktValLink Sq" data-pltdoc="x">contract?</a></span></td></tr><tr><td><table cellspacing="0" cellpadding="0" class="argcontract"><tr><td><span class="hspace"> </span>=<span class="hspace"> </span></td><td><span class="RktPn">(</span><span class="RktSym"><a href="#%28def._%28%28lib._plot%2Futils..rkt%29._maybe-function%2Fc%29%29" class="RktValLink" data-pltdoc="x">maybe-function/c</a></span><span class="hspace"> </span><span class="RktVar">in-contract</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym"><a href="http://download.racket-lang.org/docs/6.1/html/local-redirect/index.html?doc=reference&rel=data-structure-contracts.html%23%2528def._%2528%2528lib._racket%252Fcontract%252Fprivate%252Fmisc..rkt%2529._listof%2529%2529&version=6.1" class="RktValLink Sq" data-pltdoc="x">listof</a></span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym"><a href="http://download.racket-lang.org/docs/6.1/html/local-redirect/index.html?doc=reference&rel=data-structure-contracts.html%23%2528def._%2528%2528lib._racket%252Fcontract%252Fbase..rkt%2529._or%252Fc%2529%2529&version=6.1" class="RktValLink Sq" data-pltdoc="x">or/c</a></span><span class="hspace"> </span><span class="RktSym"><a href="http://download.racket-lang.org/docs/6.1/html/local-redirect/index.html?doc=reference&rel=strings.html%23%2528def._%2528%2528quote._%7E23%7E25kernel%2529._string%7E3f%2529%2529&version=6.1" class="RktValLink Sq" data-pltdoc="x">string?</a></span><span class="hspace"> </span><span class="RktVal">#f</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr></table></td></tr></table></blockquote></div><div class="SIntrapara">Like <span class="RktSym"><a href="#%28def._%28%28lib._plot%2Futils..rkt%29._plot-colors%2Fc%29%29" class="RktValLink" data-pltdoc="x">plot-colors/c</a></span>, but for strings.
This is used, for example, to label <span class="RktSym"><a href="renderer2d.html#%28def._%28%28lib._plot%2Fmain..rkt%29._stacked-histogram%29%29" class="RktValLink" data-pltdoc="x">stacked-histogram</a></span>s.</div></p><div class="navsetbottom"><span class="navleft"><form class="searchform"><input class="searchbox" style="color: #888;" type="text" value="...search manuals..." title="Enter a search string to search the manuals" onkeypress="return DoSearchKey(event, this, "6.1", "../");" onfocus="this.style.color="black"; this.style.textAlign="left"; if (this.value == "...search manuals...") this.value="";" onblur="if (this.value.match(/^ *$/)) { this.style.color="#888"; this.style.textAlign="center"; this.value="...search manuals..."; }"/></form> <a href="../index.html" title="up to the documentation top" data-pltdoc="x" onclick="return GotoPLTRoot("6.1");">top</a></span><span class="navright"> <a href="params.html" title="backward to "8 Plot and Renderer Parameters"" data-pltdoc="x">← prev</a> <a href="index.html" title="up to "Plot: Graph Plotting"" data-pltdoc="x">up</a> <a href="porting.html" title="forward to "10 Porting From Plot <= 5.1.3"" data-pltdoc="x">next →</a></span> </div></div></div><div id="contextindicator"> </div></body></html>
|