<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
	<title type="html"><![CDATA[Approximatrix Forums — aplot - delay between plots]]></title>
	<link rel="self" href="https://forums.approximatrix.com/extern.php?action=feed&amp;tid=740&amp;type=atom" />
	<updated>2020-03-19T15:14:56Z</updated>
	<generator>PunBB</generator>
	<id>https://forums.approximatrix.com/viewtopic.php?id=740</id>
		<entry>
			<title type="html"><![CDATA[Re: aplot - delay between plots]]></title>
			<link rel="alternate" href="https://forums.approximatrix.com/viewtopic.php?pid=3439#p3439" />
			<content type="html"><![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>]]></content>
			<author>
				<name><![CDATA[jeff]]></name>
				<uri>https://forums.approximatrix.com/profile.php?id=2</uri>
			</author>
			<updated>2020-03-19T15:14:56Z</updated>
			<id>https://forums.approximatrix.com/viewtopic.php?pid=3439#p3439</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[aplot - delay between plots]]></title>
			<link rel="alternate" href="https://forums.approximatrix.com/viewtopic.php?pid=3438#p3438" />
			<content type="html"><![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>]]></content>
			<author>
				<name><![CDATA[Carlos Herrera]]></name>
				<uri>https://forums.approximatrix.com/profile.php?id=407</uri>
			</author>
			<updated>2020-03-19T11:46:13Z</updated>
			<id>https://forums.approximatrix.com/viewtopic.php?pid=3438#p3438</id>
		</entry>
</feed>
