<rss xmlns:itunes="http://www.itunes.com/dtds/podcast-1.0.dtd" version="2.0">
  <channel>
    <title>MaplePrimes - comments on Post, Trouble with arrows=line option in DEplot</title>
    <link>http://www.mapleprimes.com/posts/136385-Trouble-With-Arrowsline-Option-In-DEplot</link>
    <language>en-us</language>
    <copyright>2026 Maplesoft, A Division of Waterloo Maple Inc.</copyright>
    <generator>Maplesoft Document System</generator>
    <lastBuildDate>Tue, 09 Jun 2026 20:59:27 GMT</lastBuildDate>
    <pubDate>Tue, 09 Jun 2026 20:59:27 GMT</pubDate>
    <itunes:subtitle />
    <itunes:summary />
    <description>The latest comments added to the Post, Trouble with arrows=line option in DEplot</description>
    <image>
      <url>http://www.mapleprimes.com/images/mapleprimeswhite.jpg</url>
      <title>MaplePrimes - comments on Post, Trouble with arrows=line option in DEplot</title>
      <link>http://www.mapleprimes.com/posts/136385-Trouble-With-Arrowsline-Option-In-DEplot</link>
    </image>
    <item>
      <title>You could use :-line</title>
      <link>http://www.mapleprimes.com/posts/136385-Trouble-With-Arrowsline-Option-In-DEplot?ref=Feed:MaplePrimes:Trouble with arrows=line option in DEplot:Comments#comment136388</link>
      <itunes:summary>&lt;p&gt;You could use :-line. By the command with(plottools); the variable line has been defined to be plottools:-line. &lt;br&gt;Thus you would write&lt;br&gt;DEplot(deq1,x(t),t=-.5..4,x=-0.2..2,IC,linecolor=black,thickness=3,arrows=:-line);&lt;br&gt;&lt;br&gt;&lt;/p&gt;</itunes:summary>
      <description>The latest comments added to the Post, Trouble with arrows=line option in DEplot</description>
      <guid>136388</guid>
      <pubDate>Sat, 11 Aug 2012 11:46:39 Z</pubDate>
      <itunes:author>Preben Alsholm</itunes:author>
      <author>Preben Alsholm</author>
    </item>
    <item>
      <title>global vs local clash</title>
      <link>http://www.mapleprimes.com/posts/136385-Trouble-With-Arrowsline-Option-In-DEplot?ref=Feed:MaplePrimes:Trouble with arrows=line option in DEplot:Comments#comment136397</link>
      <itunes:summary>&lt;p&gt;This is an example of the well known issue of global vs local name clash: the procedure expects an unassigned global name as argument, but receives an exported local name instead which was bound to the same name by use of &lt;strong&gt;with&lt;/strong&gt;, as Preben said. In this example &lt;strong&gt;&lt;span&gt;plottools:-line&lt;/span&gt;&lt;/strong&gt;, whose value is a procedure.&lt;/p&gt;
&lt;p&gt;Certainly, this issue and its "solution", globalizing the name by hand, using the collon dash prefix, is documented in &lt;a href="http://www.maplesoft.com/support/help/search.aspx?term=with"&gt;?with&lt;/a&gt;. In this example, &lt;strong&gt;:-line&lt;/strong&gt;, as Preben also said. Yet, the status of this issue and its solution is disputed. For some people this is at most a weakness and the globalization trick is all that is needed. Or, in any case, a better, automatic solution is not a priority. For me, it is a design bug that should have been solved years ago.&lt;/p&gt;
&lt;p&gt;With tens of exports by a typical package, and tens of options in commands of another package, say, chances of name clash are, on the one hand significant, and on the other hand difficult to foresee. Thus, most likely, the user will realize that something is wrong only after receiving the error message. Then, an experienced user may remember to use this globalization trick, but most users will not realize what happens and will be left clueless as they are using the command as instructed in its help page. Moreover, as no warning is produced by name rebinding as it occured by executing &lt;strong&gt;with&lt;/strong&gt; before of Maple 10.&lt;/p&gt;
&lt;p&gt;The interesting thing is that better solutions seem possible. On the one hand, some top level and package commands give context to the arguments being passed, which get "recycled" looking for a match to valid arguments. This example was provided by the developer some years ago:&lt;/p&gt;
&lt;pre&gt;&amp;gt; M := module() export erf; option package; end module;
&amp;gt; with(M); # here erf gets rebounded to M:-erf

                                [erf]

&amp;gt; FunctionAdvisor(syntax, erf); # even so, there is no problem here

                                erf(z)
&lt;/pre&gt;
&lt;p&gt;Also, &lt;a href="http://www.maplesoft.com/support/help/search.aspx?term=coercion"&gt;?coercion&lt;/a&gt; , introduced in Maple 16, could provide another way.&lt;/p&gt;</itunes:summary>
      <description>The latest comments added to the Post, Trouble with arrows=line option in DEplot</description>
      <guid>136397</guid>
      <pubDate>Sat, 11 Aug 2012 15:15:28 Z</pubDate>
      <itunes:author>Alejandro Jakubi</itunes:author>
      <author>Alejandro Jakubi</author>
    </item>
    <item>
      <title>DEtools[DEplot]</title>
      <link>http://www.mapleprimes.com/posts/136385-Trouble-With-Arrowsline-Option-In-DEplot?ref=Feed:MaplePrimes:Trouble with arrows=line option in DEplot:Comments#comment136402</link>
      <itunes:summary>&lt;p&gt;I agree with Alejandro that the :- trick is way too advanced. A less advanced trick which I use all the time is that instead of loading package at the start, I call them when needed, e.g.&lt;/p&gt;
&lt;p&gt;DEtools[DEplot](deq1,x(t),t=-.5..4,x=-0.2..2,IC,linecolor=black,thickness=3,arrows=line);&lt;/p&gt;
&lt;p&gt;This approach avoids potential interferences. I do this mostly to remind myself about which package the command belongs to. It is occasionally awkward when the packages have long names and you are nesting several calls, but so far I've been able to live with it.&lt;/p&gt;</itunes:summary>
      <description>The latest comments added to the Post, Trouble with arrows=line option in DEplot</description>
      <guid>136402</guid>
      <pubDate>Sat, 11 Aug 2012 23:02:17 Z</pubDate>
      <itunes:author>PatrickT</itunes:author>
      <author>PatrickT</author>
    </item>
    <item>
      <title>Use capitals</title>
      <link>http://www.mapleprimes.com/posts/136385-Trouble-With-Arrowsline-Option-In-DEplot?ref=Feed:MaplePrimes:Trouble with arrows=line option in DEplot:Comments#comment136462</link>
      <itunes:summary>&lt;p&gt;Unfortunately not well documented in &lt;a href="http://www.maplesoft.com/support/help/Maple/view.aspx?path=DEtools/DEplot"&gt;?DEplot&lt;/a&gt;, but you can always(?) use capitals for the options to avoid this kind of confusion:&lt;/p&gt;
&lt;pre&gt;DEplot(deq1,x(t),t=-.5..4,x=-0.2..2,IC,linecolor=BLACK,thickness=3,arrows=LINE);&lt;/pre&gt;</itunes:summary>
      <description>The latest comments added to the Post, Trouble with arrows=line option in DEplot</description>
      <guid>136462</guid>
      <pubDate>Tue, 14 Aug 2012 13:26:41 Z</pubDate>
      <itunes:author>Adri vanderMeer
 van der Meer</itunes:author>
      <author>Adri vanderMeer
 van der Meer</author>
    </item>
    <item>
      <title>@Adri vanderMeer van der Meer&amp;nbsp;&amp;nbsp;</title>
      <link>http://www.mapleprimes.com/posts/136385-Trouble-With-Arrowsline-Option-In-DEplot?ref=Feed:MaplePrimes:Trouble with arrows=line option in DEplot:Comments#comment136477</link>
      <itunes:summary>&lt;p&gt;&lt;a href="http://www.mapleprimes.com/posts/136385-Trouble-With-Arrowsline-Option-In-DEplot#comment136462"&gt;@Adri vanderMeer van der Meer&lt;/a&gt;&amp;nbsp;&amp;nbsp; Excellent.&amp;nbsp; That will solve my problem. How did you find this work around?&lt;/p&gt;</itunes:summary>
      <description>The latest comments added to the Post, Trouble with arrows=line option in DEplot</description>
      <guid>136477</guid>
      <pubDate>Tue, 14 Aug 2012 21:16:14 Z</pubDate>
      <itunes:author>jaytreiman</itunes:author>
      <author>jaytreiman</author>
    </item>
    <item>
      <title>list of alternative names</title>
      <link>http://www.mapleprimes.com/posts/136385-Trouble-With-Arrowsline-Option-In-DEplot?ref=Feed:MaplePrimes:Trouble with arrows=line option in DEplot:Comments#comment136490</link>
      <itunes:summary>&lt;p&gt;The list of alternative names for the diverse arrow types is hardcoded in the line 116 of &lt;strong&gt;`DEtools/DEplot`:&lt;/strong&gt;&lt;/p&gt;
&lt;pre&gt;&amp;gt; showstat(`DEtools/DEplot`,116);
`DEtools/DEplot` := proc(inDES, invars, trange)
local DES, nDES, vars, dvar, ivar, highorder, totalorder, dvrange, linepts, initial, ninits, iter, lims, toplot, f, IC, w, eivar, fldcolor, arrowpts, test1, test2, stopp, dirfld, label_ftr, line_color, arrlen, userarrs, hasindep, lv, color_l, multi, t_s, data, alldata, maxv, arrs, defnpoints, npoints, nsteps, h, arrw, grid, m, n, o, numarrow, nullcl, nullclcolor, nullclgrid, nullclfill, nullclthick, anicurve, anifield, aniboth, nframes, allarrs, plot3dftr, plot2dftr, numftr, plot_ftr, dsol_ftr, meth_ftr, thick, plot3, bd, per, t1, t2, t3, t4, np, i, j, k, l, r, opt;
global _plotDigits;
       ...
 116           allarrs := [['curve', ['CURVE', 'tads', 'TADS'], 'CURVE'], &lt;br&gt;['comet', ['fish', 'Fish', 'FISH', 'Comet'], 'FISH'], &lt;br&gt;['line', ['LINE'], 'LINE'], ['small', ['SMALL', 'thin', 'THIN'], 'SMALL'], &lt;br&gt;['medium', ['MEDIUM', 'slim', 'SLIM'], 'MEDIUM'], &lt;br&gt;['large', ['LARGE', 'thick', 'THICK'], 'LARGE'], &lt;br&gt;['none', ['NONE'], 'NONE'], ['mediumfill', [], 'mediumfill'], &lt;br&gt;['smalltwo', [], 'smalltwo'], NULL]
       ...
end proc
&lt;/pre&gt;
&lt;p&gt;As you see, this is a list of lists, one for each arrow type, whose first element is the "main" name (e.g. &lt;strong&gt;curve&lt;/strong&gt;), and then alternative names including capitalization variations (&lt;strong&gt;CURVE&lt;/strong&gt;, &lt;strong&gt;tads&lt;/strong&gt;, &lt;strong&gt;TADS&lt;/strong&gt;).&lt;/p&gt;</itunes:summary>
      <description>The latest comments added to the Post, Trouble with arrows=line option in DEplot</description>
      <guid>136490</guid>
      <pubDate>Wed, 15 Aug 2012 05:42:08 Z</pubDate>
      <itunes:author>Alejandro Jakubi</itunes:author>
      <author>Alejandro Jakubi</author>
    </item>
  </channel>
</rss>