<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
	<channel>
		<title><![CDATA[Approximatrix Forums — aplot - delay between plots]]></title>
		<link>https://forums.approximatrix.com/viewtopic.php?id=740</link>
		<atom:link href="https://forums.approximatrix.com/extern.php?action=feed&amp;tid=740&amp;type=rss" rel="self" type="application/rss+xml" />
		<description><![CDATA[The most recent posts in aplot - delay between plots.]]></description>
		<lastBuildDate>Thu, 19 Mar 2020 15:14:56 +0000</lastBuildDate>
		<generator>PunBB</generator>
		<item>
			<title><![CDATA[Re: aplot - delay between plots]]></title>
			<link>https://forums.approximatrix.com/viewtopic.php?pid=3439#p3439</link>
			<description><![CDATA[<p>Carlos,</p><p>Interesting bug...&nbsp; I&#039;m not sure exactly what is happening, but there are threads involved in displaying plots.&nbsp; I&#039;m guessing there is some sort of synchronization issue that is causing the first <em>destroy_plot</em> to close the second as well.</p>]]></description>
			<author><![CDATA[null@example.com (jeff)]]></author>
			<pubDate>Thu, 19 Mar 2020 15:14:56 +0000</pubDate>
			<guid>https://forums.approximatrix.com/viewtopic.php?pid=3439#p3439</guid>
		</item>
		<item>
			<title><![CDATA[aplot - delay between plots]]></title>
			<link>https://forums.approximatrix.com/viewtopic.php?pid=3438#p3438</link>
			<description><![CDATA[<p>Jeff,<br />Please consider the following code snippet:<br />&nbsp; &nbsp; &nbsp; &nbsp; ...<br />&nbsp; &nbsp; &nbsp; &nbsp; pli = initialize_plot()<br />&nbsp; &nbsp; &nbsp; &nbsp; call add_dataset(pli, vecb, sxxo)<br />&nbsp; &nbsp; &nbsp; &nbsp; call add_dataset(pli, vecb, sxxi)<br />&nbsp; &nbsp; &nbsp; &nbsp; call set_seriestype(pli, 0, APLOT_STYLE_LINE)<br />&nbsp; &nbsp; &nbsp; &nbsp; call set_seriestype(pli, 1, APLOT_STYLE_DOT)<br />&nbsp; &nbsp; &nbsp; &nbsp; call set_xlabel(pli, &quot;normalized magnetic field b&quot;)<br />&nbsp; &nbsp; &nbsp; &nbsp; call set_ylabel(pli, &quot;normalized sxx&quot;)<br />&nbsp; &nbsp; &nbsp; &nbsp; call set_title(pli, &quot;input - points, result - line&quot;)<br />&nbsp; &nbsp; &nbsp; &nbsp; call display_plot(pli)<br />&nbsp; &nbsp; &nbsp; &nbsp; call destroy_plot(pli)<br />&nbsp; &nbsp; &nbsp; &nbsp; ! sxy<br />&nbsp; &nbsp; &nbsp; &nbsp; plo = initialize_plot()<br />&nbsp; &nbsp; &nbsp; &nbsp; call add_dataset(plo, vecb, sxyo)<br />&nbsp; &nbsp; &nbsp; &nbsp; call add_dataset(plo, vecb, sxyi)<br />&nbsp; &nbsp; &nbsp; &nbsp; call set_seriestype(plo, 0, APLOT_STYLE_LINE)<br />&nbsp; &nbsp; &nbsp; &nbsp; call set_seriestype(plo, 1, APLOT_STYLE_DOT)<br />&nbsp; &nbsp; &nbsp; &nbsp; call set_xlabel(plo, &quot;normalized magnetic field b&quot;)<br />&nbsp; &nbsp; &nbsp; &nbsp; call set_ylabel(plo, &quot;normalized sxy&quot;)<br />&nbsp; &nbsp; &nbsp; &nbsp; call set_title(plo, &quot;input - points, result - line&quot;)<br />&nbsp; &nbsp; &nbsp; &nbsp; call display_plot(plo)<br />&nbsp; &nbsp; &nbsp; &nbsp; call destroy_plot(plo)<br />&nbsp; &nbsp; &nbsp; &nbsp; ...<br />When executed, only the first plot is visible. When closed, the second plot does not show up, or probably<br />it does, but is immediately closed. However, if some artificial delay is introduced in between, everything<br />works as expected. So maybe a small delay should be built-in&nbsp; to destroy_plot subroutine?<br />Regards,<br />Carlos</p>]]></description>
			<author><![CDATA[null@example.com (Carlos Herrera)]]></author>
			<pubDate>Thu, 19 Mar 2020 11:46:13 +0000</pubDate>
			<guid>https://forums.approximatrix.com/viewtopic.php?pid=3438#p3438</guid>
		</item>
	</channel>
</rss>
