<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
	<title type="html"><![CDATA[Approximatrix Forums — APLOT 2D-plots]]></title>
	<link rel="self" href="https://forums.approximatrix.com/extern.php?action=feed&amp;tid=621&amp;type=atom" />
	<updated>2017-04-10T11:35:59Z</updated>
	<generator>PunBB</generator>
	<id>https://forums.approximatrix.com/viewtopic.php?id=621</id>
		<entry>
			<title type="html"><![CDATA[Re: APLOT 2D-plots]]></title>
			<link rel="alternate" href="https://forums.approximatrix.com/viewtopic.php?pid=2836#p2836" />
			<content type="html"><![CDATA[<p>Aplot on Windows, in your case, is almost certainly crashing because it is being called from an AppGraphics application.&nbsp; As Aplot itself on Windows is an AppGraphcis program, there is a good chance that some sort of interaction is causing the crash.&nbsp; I&#039;ll see if it can be avoided.&nbsp; As to your suggestions:</p><div class="quotebox"><blockquote><p>1. Add a Logarithmic axis option</p></blockquote></div><p>That feature should be possible.&nbsp; Aplot&#039;s underlying engine is not our own.&nbsp; I believe logarithmic axes are possible, though.</p><div class="quotebox"><blockquote><p>2. Help menu in APLOT graph should be programmable</p></blockquote></div><p>I&#039;ll consider removing it entirely, but there are absolutely no plans to support any programmable changes to the window itself.</p><div class="quotebox"><blockquote><p>3. APLOT graph title bar should be programmable</p></blockquote></div><p>The title bar should probably be changed to match the plot title.&nbsp; But I&#039;ll see about changing the window title arbitrarily.&nbsp; It has to be supported across platforms, so I&#039;ll have to look into the other platforms too.</p><div class="quotebox"><blockquote><p>4. Autoscaling should expand the x-axis slightly wider</p></blockquote></div><p>I&#039;ll look into it, but no promises...</p><div class="quotebox"><blockquote><p>5. The data set legend labels should be optional</p></blockquote></div><p>I agree.</p><div class="quotebox"><blockquote><p>6. Move the Y-axis label slightly more to the left away from the number labels</p></blockquote></div><p>I&#039;ll fix this.</p>]]></content>
			<author>
				<name><![CDATA[jeff]]></name>
				<uri>https://forums.approximatrix.com/profile.php?id=2</uri>
			</author>
			<updated>2017-04-10T11:35:59Z</updated>
			<id>https://forums.approximatrix.com/viewtopic.php?pid=2836#p2836</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[APLOT 2D-plots]]></title>
			<link rel="alternate" href="https://forums.approximatrix.com/viewtopic.php?pid=2835#p2835" />
			<content type="html"><![CDATA[<p>Jeff,</p><p>Thank you very much for adding a plotting routine to SF.&nbsp; It&#039;s a very nice addition.</p><p>I have some comments. </p><p>I&#039;m having difficulty displaying the APLOT graph a second time from a plot button in my application; the Myexample.exe in the SF development environment crashes. Also if I drag the APLOT graph larger and then smaller repeatedly, the Myexample.exe crashes when run from within my application.&nbsp; This may be specific to my application and not necessarily APLOT itself. I&#039;m still looking into the problem, but any suggestions would be helpful.</p><p>Suggestions for APLOT:<br />1. Add a Logarithmic axis option<br />2. Help menu in APLOT graph should be programmable<br />3. APLOT graph title bar should be programmable<br />4. Autoscaling should expand the x-axis slightly wider<br />5. The data set legend labels should be optional<br />6. Move the Y-axis label slightly more to the left away from the number labels</p><p>Problem -<br />The following dataset does not scale properly using APLOT autoscaling.<br />The objective here is to plot a best-fit curve over the data points (not connect the points).</p><p>program test<br />use aplot<br />implicit none</p><p>type(aplot_t)::p</p><p>!--- X axis values<br />real, dimension(20) :: x1 = &amp;<br />(/ 0.50,&nbsp; 1.20,&nbsp; 1.60,&nbsp; 1.86,&nbsp; 2.12,&nbsp; 2.36,&nbsp; 2.44,&nbsp; 2.36,&nbsp; 2.06,&nbsp; 1.74, &amp;<br />1.34,&nbsp; 0.90, -0.28, -0.78, -1.36, -1.90, -2.50, -2.88, -3.18, -3.44 /)</p><p>!--- Y data points<br />real, dimension(20) :: y1 = &amp;<br />(/ -2.00, -2.10, -2.30, -2.50, -2.80, -3.36, -4.00, -4.75, -5.25, -5.64, &amp;<br />-5.97, -6.25, -6.44, -6.44, -6.41, -6.25, -5.95, -5.65, -5.24, -4.70 /)</p><p>!--- Fitted curve to y data points<br />real, dimension(20) :: y2 = &amp;<br />(/ -1.96, -2.12, -2.32, -2.52, -2.81, -3.34, -3.97, -4.74, -5.24, -5.64, &amp;<br />-5.98, -6.28, -6.43, -6.42, -6.40, -6.25, -5.95, -5.65, -5.24, -4.71 /)</p><p>p = initialize_plot()<br />call add_dataset(p, X1, Y1)<br />call set_title(p, &quot;Example Plot&quot;)</p><p>CALL set_xautoscale (p)<br />CALL set_yautoscale (p)<br />call set_xlabel(p, &quot;X-VALUE&quot;)<br />call set_ylabel(p, &quot;Y-VALUE&quot;)</p><p>call set_serieslabel(p, 0, &quot;Point Data&quot;)<br />call set_seriestype(p, 0, APLOT_STYLE_DOT)</p><p>call add_dataset(p, X1, Y2)<br />call set_serieslabel(p, 1, &quot;Line Data&quot;)<br />call set_seriestype(p, 1, APLOT_STYLE_LINE)<br />call display_plot(p)</p><p>call destroy_plot(p)</p><p>CALL setcurrentwindow (idActiveScrn)</p><p>RETURN<br />end program test</p><p>As always, APLOT is a very thoughtful addition to SF.</p><p>Frank</p>]]></content>
			<author>
				<name><![CDATA[drfrank]]></name>
				<uri>https://forums.approximatrix.com/profile.php?id=223</uri>
			</author>
			<updated>2017-04-08T13:47:25Z</updated>
			<id>https://forums.approximatrix.com/viewtopic.php?pid=2835#p2835</id>
		</entry>
</feed>
