|Subject:||Re: Subplots not drawing correctly.|
|Date:||Fri, 26 Oct 2018 10:34:10 -0700|
|User-agent:||Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.2.1|
Thanks! That helped. It seems to be a bug (that might not be a bug) with an easy work around.
For the first subplot you place "hold on" before plotting
anything. This creates axes without a "box" (the top and right
Fix: move the "hold on" command to after the first plot command. Attached is the corrected example.
Alternative: after subplot(221) add:
set(gca, 'box', 'on')
Explanation: When you issue "hold on" without any plot an axis is first created (axis command). This default axis does not have the box attribute set to on.
On 2018-10-26 3:17 a.m., IMacaulay wrote:
Certainly. The attached example.m is a cut down version of the function that produced the plot I previously sent, and example.png is cut from a screen shot of the result of running this on my machine this morning. I have had so many problems with saving/printing figures in the past, that now I only use screen shots, which are adequate for most purposes. Thanks.
Description: Text Data
|[Prev in Thread]||Current Thread||[Next in Thread]|