<rss xmlns:itunes="http://www.itunes.com/dtds/podcast-1.0.dtd" version="2.0">
  <channel>
    <title>MaplePrimes - answers and comments on Question, what is the Maple equivalent of Matlab's axis ([-inf inf -inf inf]) ?</title>
    <link>http://www.mapleprimes.com/questions/37104-What-Is-The-Maple-Equivalent-Of-Matlabs-Axis-</link>
    <language>en-us</language>
    <copyright>2026 Maplesoft, A Division of Waterloo Maple Inc.</copyright>
    <generator>Maplesoft Document System</generator>
    <lastBuildDate>Wed, 10 Jun 2026 21:35:27 GMT</lastBuildDate>
    <pubDate>Wed, 10 Jun 2026 21:35:27 GMT</pubDate>
    <itunes:subtitle />
    <itunes:summary />
    <description>The latest answers and comments added to the Question, what is the Maple equivalent of Matlab's axis ([-inf inf -inf inf]) ?</description>
    <image>
      <url>http://www.mapleprimes.com/images/mapleprimeswhite.jpg</url>
      <title>MaplePrimes - answers and comments on Question, what is the Maple equivalent of Matlab's axis ([-inf inf -inf inf]) ?</title>
      <link>http://www.mapleprimes.com/questions/37104-What-Is-The-Maple-Equivalent-Of-Matlabs-Axis-</link>
    </image>
    <item>
      <title>example?</title>
      <link>http://www.mapleprimes.com/questions/37104-What-Is-The-Maple-Equivalent-Of-Matlabs-Axis-?ref=Feed:MaplePrimes:what is the Maple equivalent of Matlab's axis ([-inf inf -inf inf]) ?:Comments#answer65096</link>
      <itunes:summary>&lt;p&gt;Do you have a specific example of the effect of that Matlab command?. In &lt;a href="http://www.mathworks.com/access/helpdesk/help/techdoc/index.html?/access/helpdesk/help/techdoc/creating_plots/f6-7929.html&amp;amp;http://www.mathworks.com/access/helpdesk/help/techdoc/index.html?/access/helpdesk/help/techdoc/creating_plots/f6-7929.html&amp;amp;http://www.mathworks.com/cgi-bin/texis/webinator/search?pr=Whole_site&amp;amp;prox=page&amp;amp;rorder=750&amp;amp;rprox=750&amp;amp;rdfreq=500&amp;amp;rwfreq=500&amp;amp;rlead=250&amp;amp;sufs=0&amp;amp;order=r&amp;amp;whole=Whole_site&amp;amp;entire_flag=1&amp;amp;is_summary_on=1&amp;amp;ResultCount=10&amp;amp;query=axis+inf&amp;amp;submit=Search"&gt;this page&lt;/a&gt;, I do not see something specific about:&lt;/p&gt;
&lt;pre&gt;
axis ([-inf inf -inf inf])
&lt;/pre&gt;
&lt;p&gt;but just the case of a single &amp;quot;inf&amp;quot;.&lt;/p&gt;</itunes:summary>
      <description>&lt;p&gt;Do you have a specific example of the effect of that Matlab command?. In &lt;a href="http://www.mathworks.com/access/helpdesk/help/techdoc/index.html?/access/helpdesk/help/techdoc/creating_plots/f6-7929.html&amp;amp;http://www.mathworks.com/access/helpdesk/help/techdoc/index.html?/access/helpdesk/help/techdoc/creating_plots/f6-7929.html&amp;amp;http://www.mathworks.com/cgi-bin/texis/webinator/search?pr=Whole_site&amp;amp;prox=page&amp;amp;rorder=750&amp;amp;rprox=750&amp;amp;rdfreq=500&amp;amp;rwfreq=500&amp;amp;rlead=250&amp;amp;sufs=0&amp;amp;order=r&amp;amp;whole=Whole_site&amp;amp;entire_flag=1&amp;amp;is_summary_on=1&amp;amp;ResultCount=10&amp;amp;query=axis+inf&amp;amp;submit=Search"&gt;this page&lt;/a&gt;, I do not see something specific about:&lt;/p&gt;
&lt;pre&gt;
axis ([-inf inf -inf inf])
&lt;/pre&gt;
&lt;p&gt;but just the case of a single &amp;quot;inf&amp;quot;.&lt;/p&gt;</description>
      <guid>65096</guid>
      <pubDate>Sat, 27 Jun 2009 04:00:11 Z</pubDate>
      <itunes:author>jakubi</itunes:author>
      <author>jakubi</author>
    </item>
    <item>
      <title>automatic single limit</title>
      <link>http://www.mapleprimes.com/questions/37104-What-Is-The-Maple-Equivalent-Of-Matlabs-Axis-?ref=Feed:MaplePrimes:what is the Maple equivalent of Matlab's axis ([-inf inf -inf inf]) ?:Comments#answer65098</link>
      <itunes:summary>&lt;p&gt;Yes, this automatic single limit case is clear to me. In fact, I have requested this functionality many years ago... And I think that I have even found some workaround.&lt;/p&gt;
&lt;p&gt;But still I do not find clear the case of all four &amp;quot;inf&amp;quot;.&lt;/p&gt;</itunes:summary>
      <description>&lt;p&gt;Yes, this automatic single limit case is clear to me. In fact, I have requested this functionality many years ago... And I think that I have even found some workaround.&lt;/p&gt;
&lt;p&gt;But still I do not find clear the case of all four &amp;quot;inf&amp;quot;.&lt;/p&gt;</description>
      <guid>65098</guid>
      <pubDate>Sat, 27 Jun 2009 05:13:03 Z</pubDate>
      <itunes:author>jakubi</itunes:author>
      <author>jakubi</author>
    </item>
    <item>
      <title>min, max</title>
      <link>http://www.mapleprimes.com/questions/37104-What-Is-The-Maple-Equivalent-Of-Matlabs-Axis-?ref=Feed:MaplePrimes:what is the Maple equivalent of Matlab's axis ([-inf inf -inf inf]) ?:Comments#answer65100</link>
      <itunes:summary>&lt;p&gt;Not sure yet about the case of the abscissa, for  a function y(x) say, as normally either you choose the plot interval or let maple use its default (like -10..10)&lt;/p&gt;
&lt;p&gt;For the ordinate, though, it is basically a matter of finding min and max for y(x) on that interval.   One way to find ymin and ymax is using the lists [x,y] for the plot points in the 'plot' data structure:&lt;/p&gt;
&lt;pre&gt;
p:=plot(cos(x), x=0..2*Pi):
L2:=map(x-&amp;gt;op(2,x),op([1,1],p)):
ymax:=max(L2);
ymin:=min(L2); 

                              ymax := 1.

                    ymin := -0.999995190907583154
&lt;/pre&gt;</itunes:summary>
      <description>&lt;p&gt;Not sure yet about the case of the abscissa, for  a function y(x) say, as normally either you choose the plot interval or let maple use its default (like -10..10)&lt;/p&gt;
&lt;p&gt;For the ordinate, though, it is basically a matter of finding min and max for y(x) on that interval.   One way to find ymin and ymax is using the lists [x,y] for the plot points in the 'plot' data structure:&lt;/p&gt;
&lt;pre&gt;
p:=plot(cos(x), x=0..2*Pi):
L2:=map(x-&amp;gt;op(2,x),op([1,1],p)):
ymax:=max(L2);
ymin:=min(L2); 

                              ymax := 1.

                    ymin := -0.999995190907583154
&lt;/pre&gt;</description>
      <guid>65100</guid>
      <pubDate>Sat, 27 Jun 2009 11:06:40 Z</pubDate>
      <itunes:author>jakubi</itunes:author>
      <author>jakubi</author>
    </item>
    <item>
      <title>view</title>
      <link>http://www.mapleprimes.com/questions/37104-What-Is-The-Maple-Equivalent-Of-Matlabs-Axis-?ref=Feed:MaplePrimes:what is the Maple equivalent of Matlab's axis ([-inf inf -inf inf]) ?:Comments#answer65104</link>
      <itunes:summary>&lt;p&gt;You mean something like this?:&lt;/p&gt;
&lt;pre&gt;
mydisplay2 := proc(p,l)
    local xy, xmin, xmax, ymin, ymax:
    local L1, L2:
    xmin:=-10: xmax:=10:
    L1:=map(x-&amp;gt;op(1,x),op([1,1],p)): xmax:=max(L1): xmin:=min(L1):
    L2:=map(x-&amp;gt;op(2,x),op([1,1],p)): ymax:=max(L2): ymin:=min(L2):
    xy := (xmin,xmax,ymin,ymax)-&amp;gt; 
    plots:-display(plottools[line]([xmin,0],[xmax,0],thickness=3), 
    plottools[line]([0,ymin],[0,ymax],thickness=3), 
    view=[xmin..xmax,ymin..ymax]):
    plots:-display({p,xy(op(l))},
    view=[l[1]..l[2],l[3]..l[4]]):
    print(%):
end proc:

p := plot(cos(x), x=-2*Pi..2*Pi):
mydisplay2(p,[-2,2,-0.5,0.5]);

&lt;/pre&gt;</itunes:summary>
      <description>&lt;p&gt;You mean something like this?:&lt;/p&gt;
&lt;pre&gt;
mydisplay2 := proc(p,l)
    local xy, xmin, xmax, ymin, ymax:
    local L1, L2:
    xmin:=-10: xmax:=10:
    L1:=map(x-&amp;gt;op(1,x),op([1,1],p)): xmax:=max(L1): xmin:=min(L1):
    L2:=map(x-&amp;gt;op(2,x),op([1,1],p)): ymax:=max(L2): ymin:=min(L2):
    xy := (xmin,xmax,ymin,ymax)-&amp;gt; 
    plots:-display(plottools[line]([xmin,0],[xmax,0],thickness=3), 
    plottools[line]([0,ymin],[0,ymax],thickness=3), 
    view=[xmin..xmax,ymin..ymax]):
    plots:-display({p,xy(op(l))},
    view=[l[1]..l[2],l[3]..l[4]]):
    print(%):
end proc:

p := plot(cos(x), x=-2*Pi..2*Pi):
mydisplay2(p,[-2,2,-0.5,0.5]);

&lt;/pre&gt;</description>
      <guid>65104</guid>
      <pubDate>Tue, 30 Jun 2009 20:14:03 Z</pubDate>
      <itunes:author>jakubi</itunes:author>
      <author>jakubi</author>
    </item>
    <item>
      <title>Draw gridlines over axes</title>
      <link>http://www.mapleprimes.com/questions/37104-What-Is-The-Maple-Equivalent-Of-Matlabs-Axis-?ref=Feed:MaplePrimes:what is the Maple equivalent of Matlab's axis ([-inf inf -inf inf]) ?:Comments#answer65106</link>
      <itunes:summary>&lt;p&gt;Patrick writes: &amp;quot;I want to plot two thick lines to be used to overwrite plot axes (a workaround for the inability to customize the axes).&amp;quot;&lt;/p&gt;
&lt;p&gt;A workaround that doesn't require figuring out the y-axis range is to use custom gridlines. For example, try the following:&lt;/p&gt;
&lt;p&gt;&amp;gt; plot(cos(x), x=xmin..xmax, axis=[gridlines=[[0], thickness=4], tickmarks=8], axes=normal);&lt;/p&gt;
&lt;p&gt;This produces thick gridlines at x=0 and y=0 only. You have to add a tickmarks suboption because otherwise, Maple assumes that you want tickmarks at the same locations as gridlines by default.&lt;/p&gt;
&lt;p&gt;Paulina Chin&lt;br /&gt;
Maplesoft&lt;/p&gt;</itunes:summary>
      <description>&lt;p&gt;Patrick writes: &amp;quot;I want to plot two thick lines to be used to overwrite plot axes (a workaround for the inability to customize the axes).&amp;quot;&lt;/p&gt;
&lt;p&gt;A workaround that doesn't require figuring out the y-axis range is to use custom gridlines. For example, try the following:&lt;/p&gt;
&lt;p&gt;&amp;gt; plot(cos(x), x=xmin..xmax, axis=[gridlines=[[0], thickness=4], tickmarks=8], axes=normal);&lt;/p&gt;
&lt;p&gt;This produces thick gridlines at x=0 and y=0 only. You have to add a tickmarks suboption because otherwise, Maple assumes that you want tickmarks at the same locations as gridlines by default.&lt;/p&gt;
&lt;p&gt;Paulina Chin&lt;br /&gt;
Maplesoft&lt;/p&gt;</description>
      <guid>65106</guid>
      <pubDate>Wed, 01 Jul 2009 19:10:49 Z</pubDate>
      <itunes:author>pchin</itunes:author>
      <author>pchin</author>
    </item>
    <item>
      <title>an example</title>
      <link>http://www.mapleprimes.com/questions/37104-What-Is-The-Maple-Equivalent-Of-Matlabs-Axis-?ref=Feed:MaplePrimes:what is the Maple equivalent of Matlab's axis ([-inf inf -inf inf]) ?:Comments#comment65097</link>
      <itunes:summary>&lt;p&gt;thanks jakubi,&lt;/p&gt;
&lt;p&gt;this is a very good link to the Matlab function, actually.&lt;/p&gt;
&lt;p&gt;Let me explain how the inf and -inf can be used. Consider the following:&lt;/p&gt;
&lt;pre&gt;
&amp;gt; xmin:=-2*Pi: xmax:=2*Pi:
&amp;gt; plot(cos(x), x=xmin..xmax);
&lt;/pre&gt;
&lt;p&gt;Maple automatically selects the maximum and minimum values along the y-axis. For this specific example, I can reproduce the look of the plot by doing the following (Maple13/classic):&lt;/p&gt;
&lt;pre&gt;
&amp;gt; ymin:=-1.05: ymax:=1.05:
&amp;gt; plot(cos(x), x=xmin..xmax, view=[xmin..xmax,ymin..ymax]);&lt;/pre&gt;
&lt;p&gt;I was able to guess by trial and error that Maple selects something like -1.05 and 1.05 as the minimum and maximum values of the y-axis.&lt;/p&gt;
&lt;p&gt;If I want to plot the positive quadrant only (for some reason), then I set the ymin and ymax as follows:&lt;/p&gt;
&lt;pre&gt;

&amp;gt; ymin:=0: ymax:=1.05:

&lt;/pre&gt;
&lt;p&gt;But&amp;nbsp; while I *know* that I want to select ymin:=0, I can only *guess* that I need ymax:=1.05. And if I change some parameters of my function that &amp;quot;optimal&amp;quot; ymax value may change as a result (while my ymin will not)&lt;/p&gt;
&lt;p&gt;with Matlab I would have obtained the desired result by setting:&lt;/p&gt;
&lt;pre&gt;
&amp;gt; ymin:=0: ymax:=inf:&lt;/pre&gt;
&lt;p&gt;Matlab *knows* that the appropriate value of ymax is 1.05 in this case, and automatically selects another value if I change the parameters of my function.&lt;/p&gt;</itunes:summary>
      <description>&lt;p&gt;thanks jakubi,&lt;/p&gt;
&lt;p&gt;this is a very good link to the Matlab function, actually.&lt;/p&gt;
&lt;p&gt;Let me explain how the inf and -inf can be used. Consider the following:&lt;/p&gt;
&lt;pre&gt;
&amp;gt; xmin:=-2*Pi: xmax:=2*Pi:
&amp;gt; plot(cos(x), x=xmin..xmax);
&lt;/pre&gt;
&lt;p&gt;Maple automatically selects the maximum and minimum values along the y-axis. For this specific example, I can reproduce the look of the plot by doing the following (Maple13/classic):&lt;/p&gt;
&lt;pre&gt;
&amp;gt; ymin:=-1.05: ymax:=1.05:
&amp;gt; plot(cos(x), x=xmin..xmax, view=[xmin..xmax,ymin..ymax]);&lt;/pre&gt;
&lt;p&gt;I was able to guess by trial and error that Maple selects something like -1.05 and 1.05 as the minimum and maximum values of the y-axis.&lt;/p&gt;
&lt;p&gt;If I want to plot the positive quadrant only (for some reason), then I set the ymin and ymax as follows:&lt;/p&gt;
&lt;pre&gt;

&amp;gt; ymin:=0: ymax:=1.05:

&lt;/pre&gt;
&lt;p&gt;But&amp;nbsp; while I *know* that I want to select ymin:=0, I can only *guess* that I need ymax:=1.05. And if I change some parameters of my function that &amp;quot;optimal&amp;quot; ymax value may change as a result (while my ymin will not)&lt;/p&gt;
&lt;p&gt;with Matlab I would have obtained the desired result by setting:&lt;/p&gt;
&lt;pre&gt;
&amp;gt; ymin:=0: ymax:=inf:&lt;/pre&gt;
&lt;p&gt;Matlab *knows* that the appropriate value of ymax is 1.05 in this case, and automatically selects another value if I change the parameters of my function.&lt;/p&gt;</description>
      <guid>65097</guid>
      <pubDate>Sat, 27 Jun 2009 04:35:07 Z</pubDate>
      <itunes:author>PatrickT</itunes:author>
      <author>PatrickT</author>
    </item>
  </channel>
</rss>