<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
	<title type="html"><![CDATA[jHepWork forum]]></title>
	<link rel="self" href="http://jwork.org/jhepwork/forum/extern.php?action=posts_feed&amp;type=atom"/>
	<updated>2012-04-14T20:37:54Z</updated>
	<generator>PunBB</generator>
	<id>http://jwork.org/jhepwork/forum/index.php</id>
		<entry>
			<title type="html"><![CDATA[Re: setAutoRange() bug in HPlot]]></title>
			<link rel="alternate" href="http://jwork.org/jhepwork/forum/viewtopic.php?pid=45#p45"/>
			<content type="html"><![CDATA[<p>This has something to do with java6. Please read&nbsp; <a href="http://java.dzone.com/articles/why">http://java.dzone.com/articles/why</a></p>]]></content>
			<author>
				<name><![CDATA[admin]]></name>
				<uri>http://jwork.org/jhepwork/forum/profile.php?id=4</uri>
			</author>
			<updated>2012-04-14T20:37:54Z</updated>
			<id>http://jwork.org/jhepwork/forum/viewtopic.php?pid=45#p45</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: setAutoRange() bug in HPlot]]></title>
			<link rel="alternate" href="http://jwork.org/jhepwork/forum/viewtopic.php?pid=44#p44"/>
			<content type="html"><![CDATA[<p>Hello, Andrew</p><p>Thanks, this does look like a bug. I can reproduce it in a Python/Jython rewrite of your code:</p><div class="codebox"><pre><code>from jhplot import *

xValues=[1,2,3,4,5]

# does not work
test = [1.04999999999961,1.04999999999961,1.0499999999996101,1.04999999999961,1.04999999999961]
# works
test = [1.049999961,1.049999961,1.049999961,1.049999961,1.049999961]

testP1D = P1D(&quot;test&quot;);
testP1D.fill(xValues, test);
       
# Plot it using autorange (which crashes) or manual axes (which doesn&#039;t). Comment out the relevant lines.
actualPlot = HPlot(&quot;test&quot;);
actualPlot.visible()
actualPlot.setAutoRange()
# actualPlot.setRangeAll(0, 6, 1.049999999999, 1.05);
actualPlot.draw(testP1D);</code></pre></div><p>This sequence of numbers is really remarkable: just by&nbsp; changing it a bit, the auto-range works again!<br />We need to look into this</p><p> cheers, Sergei</p>]]></content>
			<author>
				<name><![CDATA[sergei]]></name>
				<uri>http://jwork.org/jhepwork/forum/profile.php?id=13</uri>
			</author>
			<updated>2012-03-24T18:24:42Z</updated>
			<id>http://jwork.org/jhepwork/forum/viewtopic.php?pid=44#p44</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[setAutoRange() bug in HPlot]]></title>
			<link rel="alternate" href="http://jwork.org/jhepwork/forum/viewtopic.php?pid=43#p43"/>
			<content type="html"><![CDATA[<p>Hi all,</p><p>I&#039;ve found a problem with setAutoRange() in HPlot where it crashes if plot values are too similar. The example code below shows up the problem. I found that I could avoid the problem by manually setting the range but wanted to flag it up anyway so someone can look into it in the distributed code. It&#039;s a bit strange this one, and doesn&#039;t seem to happen at all values, even with the same gap. I am using jHepWork version 3.3.</p><p>Thanks,</p><p>Andrew</p><p>Example code:</p><p>&nbsp; &nbsp; public static void main(String[] args) {</p><p>&nbsp; &nbsp; &nbsp; &nbsp; // Set values. Strange numbers in test are simply because they&#039;re the ones I found the problem with.<br />&nbsp; &nbsp; &nbsp; &nbsp; double[] xValues={1,2,3,4,5};<br />&nbsp; &nbsp; &nbsp; &nbsp; double[] test = {1.04999999999961,1.04999999999961,1.0499999999996101,1.04999999999961,1.04999999999961};</p><p>&nbsp; &nbsp; &nbsp; &nbsp; // Fill P1d<br />&nbsp; &nbsp; &nbsp; &nbsp; P1D testP1D = new P1D(&quot;test&quot;);<br />&nbsp; &nbsp; &nbsp; &nbsp; testP1D.fill(xValues, test);<br />&nbsp; &nbsp; &nbsp; &nbsp; <br />&nbsp; &nbsp; &nbsp; &nbsp; // Plot it using autorange (which crashes) or manual axes (which doesn&#039;t). Comment out the relevant lines.<br />&nbsp; &nbsp; &nbsp; &nbsp; HPlot actualPlot = new HPlot(&quot;test&quot;, 1280, 1024);<br />&nbsp; &nbsp; &nbsp; &nbsp; actualPlot.setAutoRange();<br />//&nbsp; &nbsp; &nbsp; &nbsp; actualPlot.setRangeAll(0, 6, 1.049999999999, 1.05);<br />&nbsp; &nbsp; &nbsp; &nbsp; actualPlot.draw(testP1D);<br />&nbsp; &nbsp; &nbsp; &nbsp; actualPlot.visible();<br />&nbsp; &nbsp; }</p>]]></content>
			<author>
				<name><![CDATA[ALancaster]]></name>
				<uri>http://jwork.org/jhepwork/forum/profile.php?id=122</uri>
			</author>
			<updated>2012-03-16T11:44:21Z</updated>
			<id>http://jwork.org/jhepwork/forum/viewtopic.php?pid=43#p43</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[jhepwork-3.3 is out]]></title>
			<link rel="alternate" href="http://jwork.org/jhepwork/forum/viewtopic.php?pid=42#p42"/>
			<content type="html"><![CDATA[<p>Hello,</p><p> jHepWork 3.3 is released. This release features high-performance containers (P0I,P0D,P1D,P2D) which are about factor 5-10 faster than the Java collections&nbsp; or Python lists. It also includes a new 3D canvas, HPlot3XYZ, as well as an interactive fit engine.</p><p>admin</p>]]></content>
			<author>
				<name><![CDATA[admin]]></name>
				<uri>http://jwork.org/jhepwork/forum/profile.php?id=4</uri>
			</author>
			<updated>2012-01-24T00:37:38Z</updated>
			<id>http://jwork.org/jhepwork/forum/viewtopic.php?pid=42#p42</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[jHepWork 3.3b]]></title>
			<link rel="alternate" href="http://jwork.org/jhepwork/forum/viewtopic.php?pid=41#p41"/>
			<content type="html"><![CDATA[<p>jHepWork 3.3 (beta) is out. Look at <a href="http://jwork.org/jhepwork/download/">http://jwork.org/jhepwork/download/</a></p>]]></content>
			<author>
				<name><![CDATA[admin]]></name>
				<uri>http://jwork.org/jhepwork/forum/profile.php?id=4</uri>
			</author>
			<updated>2011-12-24T03:58:08Z</updated>
			<id>http://jwork.org/jhepwork/forum/viewtopic.php?pid=41#p41</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Examples of different plot styles]]></title>
			<link rel="alternate" href="http://jwork.org/jhepwork/forum/viewtopic.php?pid=40#p40"/>
			<content type="html"><![CDATA[<p>sorry, I think the polar plots are there: in the package org.jfree.chart.plot.Plot<br />Unfortunately, the programming should be done using jfreechart API since no high-level interface is<br />included.</p>]]></content>
			<author>
				<name><![CDATA[sergei]]></name>
				<uri>http://jwork.org/jhepwork/forum/profile.php?id=13</uri>
			</author>
			<updated>2011-11-19T04:00:32Z</updated>
			<id>http://jwork.org/jhepwork/forum/viewtopic.php?pid=40#p40</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Examples of different plot styles]]></title>
			<link rel="alternate" href="http://jwork.org/jhepwork/forum/viewtopic.php?pid=39#p39"/>
			<content type="html"><![CDATA[<p>The polar plot style is not implemented. I hope it will be included in future</p><p>best, Sergei C.</p>]]></content>
			<author>
				<name><![CDATA[sergei]]></name>
				<uri>http://jwork.org/jhepwork/forum/profile.php?id=13</uri>
			</author>
			<updated>2011-11-19T03:49:31Z</updated>
			<id>http://jwork.org/jhepwork/forum/viewtopic.php?pid=39#p39</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Examples of different plot styles]]></title>
			<link rel="alternate" href="http://jwork.org/jhepwork/forum/viewtopic.php?pid=38#p38"/>
			<content type="html"><![CDATA[<p>Hello,</p><p>may I have a question (hope this is the right place since you&#039;ve mentioned something about different plot styles). I&#039;d like to know if there&#039;s a way to create a polar plot using jHepWork, for example similar to those in ROOT (see link: <a href="http://root.cern.ch/root/html/tutorials/graphs/graphpolar.C.html">http://root.cern.ch/root/html/tutorials &#133; lar.C.html</a> )</p><p>Thanks in advance<br />Krzysztof</p>]]></content>
			<author>
				<name><![CDATA[kglowinski]]></name>
				<uri>http://jwork.org/jhepwork/forum/profile.php?id=87</uri>
			</author>
			<updated>2011-11-17T07:31:30Z</updated>
			<id>http://jwork.org/jhepwork/forum/viewtopic.php?pid=38#p38</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Cylinders and other 3D objects]]></title>
			<link rel="alternate" href="http://jwork.org/jhepwork/forum/viewtopic.php?pid=37#p37"/>
			<content type="html"><![CDATA[<p>Yes, you can.&nbsp; Run the example [Tools]-&gt;[jHPlot examples]-&gt;3D Canvas-&gt; canvas3D_engine3D.py<br />At least you can get a 3D&nbsp; pot. For other shapes, define an off file.</p>]]></content>
			<author>
				<name><![CDATA[admin]]></name>
				<uri>http://jwork.org/jhepwork/forum/profile.php?id=4</uri>
			</author>
			<updated>2011-11-15T04:14:10Z</updated>
			<id>http://jwork.org/jhepwork/forum/viewtopic.php?pid=37#p37</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Cylinders and other 3D objects]]></title>
			<link rel="alternate" href="http://jwork.org/jhepwork/forum/viewtopic.php?pid=36#p36"/>
			<content type="html"><![CDATA[<p>Hello everybody!<br />I haven&#039;t found any axample about how to make a 3d object. I should get a cylinder. Cylider constructor needs a Model3d object as parameter, but a Model3D constructos needs an Applet object as parameter. That is confusing without any example or detailed explanation.&nbsp; <img src="http://jwork.org/jhepwork/forum/img/smilies/roll.png" width="15" height="15" alt="roll" />&nbsp; All I know about applets, that they are small programs in web (games etc), but I do not understand how they can be used for my case. Can I see any exapmle anywhere?<br />Thanks,<br />Ieva</p>]]></content>
			<author>
				<name><![CDATA[ievapaleja]]></name>
				<uri>http://jwork.org/jhepwork/forum/profile.php?id=83</uri>
			</author>
			<updated>2011-11-11T08:54:06Z</updated>
			<id>http://jwork.org/jhepwork/forum/viewtopic.php?pid=36#p36</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[jhepwork 3.2 is released]]></title>
			<link rel="alternate" href="http://jwork.org/jhepwork/forum/viewtopic.php?pid=35#p35"/>
			<content type="html"><![CDATA[<p>jhepwork 3.2 is out.</p><p>It happened earlier due to a bug which led to failures to start IDE on some platforms (Linux/Unix, Window XP). <br />Now it is fixed. </p><p><a href="http://jwork.org/jhepwork/download/jhepwork-3.2.txt">http://jwork.org/jhepwork/download/jhepwork-3.2.txt</a></p>]]></content>
			<author>
				<name><![CDATA[admin]]></name>
				<uri>http://jwork.org/jhepwork/forum/profile.php?id=4</uri>
			</author>
			<updated>2011-10-23T01:43:18Z</updated>
			<id>http://jwork.org/jhepwork/forum/viewtopic.php?pid=35#p35</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[jhepwork 3.2 beta]]></title>
			<link rel="alternate" href="http://jwork.org/jhepwork/forum/viewtopic.php?pid=34#p34"/>
			<content type="html"><![CDATA[<p>A jhepwork 3.2 (beta version) is available.&nbsp; <a href="http://jwork.org/jhepwork/download/">http://jwork.org/jhepwork/download/</a></p><p> Main features include:<br />&nbsp; </p><ul><li><p>Symbolic (analytic) calculations can be done in Java or Jython</p></li><li><p>Analytical calculation (Octave/matlab files) can be executed using the same &quot;run&quot; button as for jython/BeanShell/Java code.<br />&nbsp; &nbsp; Also F8 can run matlab/octave code.</p></li><li><p>[Help]-&gt;[jHepWork help] starts default browser with online manual. We do not include static manual with the application.</p></li><li><p>Putting together the major financial Java packages.</p></li><li><p>All API links redirected to Oracle API</p></li><li><p>Symbolic calculations (simplify, integrate, expansion, differential). See jhplot.math.Symbolic</p></li><li><p>HPlotter canvas - will use Jas/Aida style of plotting</p></li></ul><p> Documentation:<br />&nbsp; Contains description for analytic calculations<br />&nbsp; Description for financial calculations</p>]]></content>
			<author>
				<name><![CDATA[admin]]></name>
				<uri>http://jwork.org/jhepwork/forum/profile.php?id=4</uri>
			</author>
			<updated>2011-10-14T05:00:48Z</updated>
			<id>http://jwork.org/jhepwork/forum/viewtopic.php?pid=34#p34</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[jhepwork-3.1 (stable) is out]]></title>
			<link rel="alternate" href="http://jwork.org/jhepwork/forum/viewtopic.php?pid=33#p33"/>
			<content type="html"><![CDATA[<p>jHepWork 3.1 (Java7 ready) is out: <a href="http://jwork.org/jhepwork/download.php">http://jwork.org/jhepwork/download.php</a></p>]]></content>
			<author>
				<name><![CDATA[admin]]></name>
				<uri>http://jwork.org/jhepwork/forum/profile.php?id=4</uri>
			</author>
			<updated>2011-09-03T19:32:41Z</updated>
			<id>http://jwork.org/jhepwork/forum/viewtopic.php?pid=33#p33</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: BinomialRandomVariable p<.5]]></title>
			<link rel="alternate" href="http://jwork.org/jhepwork/forum/viewtopic.php?pid=32#p32"/>
			<content type="html"><![CDATA[<p>Just to confirm: this implementation does not have this problem:<br /></p><div class="codebox"><pre><code>from jhplot  import *
from jhplot.io.csv import *

p=0.5-0.01
s=20
n=1000
# x1= BinomialRandomVariable(s,p) # error

from cern.jet.random.engine import *
from cern.jet.random import *
engine = MersenneTwister()
x1=Binomial(s, p, engine) 

c1 = HPlot(&quot;Canvas&quot;,600,400,1, 1)
c1.visible(1)
c1.setAutoRange()
h1 = H1D(&quot;%s/%s&quot;%(s,p),2*s+1, 0, s)
h1.setErrAll(0)
for i in range(n):
   y1=x1.nextInt()
   h1.fill(y1)
   
c1.draw(h1)
c1.drawStatBox(h1,375,30)
lab=HLabel(&quot;%s samples&quot;%n, 0.15, 0.7, &quot;NDC&quot;)
c1.add(lab)
c1.update()</code></pre></div>]]></content>
			<author>
				<name><![CDATA[sergei]]></name>
				<uri>http://jwork.org/jhepwork/forum/profile.php?id=13</uri>
			</author>
			<updated>2011-09-03T16:13:34Z</updated>
			<id>http://jwork.org/jhepwork/forum/viewtopic.php?pid=32#p32</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: BinomialRandomVariable p<.5]]></title>
			<link rel="alternate" href="http://jwork.org/jhepwork/forum/viewtopic.php?pid=31#p31"/>
			<content type="html"><![CDATA[<p>Hello, </p><p> Thanks. This does look like an error in the implementation but we will need to look at.</p><p> For now, please use several other implementations:</p><p> cern.jet.random.Binomial</p><p> or</p><p> umontreal.iro.lecuyer.randvar.BinomialGen</p><p> or</p><p> org.apache.commons.math.distribution.BinomialDistributionImpl</p><br /><p>See details in : <a href="http://jwork.org/jhepwork/api_extra/">http://jwork.org/jhepwork/api_extra/</a></p><p> best wishes, Sergei</p>]]></content>
			<author>
				<name><![CDATA[sergei]]></name>
				<uri>http://jwork.org/jhepwork/forum/profile.php?id=13</uri>
			</author>
			<updated>2011-09-03T13:47:50Z</updated>
			<id>http://jwork.org/jhepwork/forum/viewtopic.php?pid=31#p31</id>
		</entry>
</feed>

