What do you mean by the Plot and PlotFrame class definitions?
Type: Posts; User: CAF
What do you mean by the Plot and PlotFrame class definitions?
What do you mean by the Plot class and PlotFrame class defintions? I am able to run the code by referencing the plot.jar and plotapplication.jar in the classpath when compiling. Is there something...
But why would it run 500 times even when setVisible was within the loop - I thought the 500 only gave the number of points to be plotted?
Missing code? Here is exactly what I am working with:...
Where about in the code am I setting the frame visible 500 times? I thought that the statement 'int points = 500;' was only an indication of the number of points that I want plotted on the graph?
...
I'll post an SSCCE tomorrow (although by reading your attached link, I am not sure I fully understand what it actually is) since it is getting quite late here. Could you explain why the setVisible...
When I don't put system.exit in, I get the graph but lose access of the terminal. When I put it in the loop, I don't get the graph and I get points number of 'Graph created' messages (which...
Here is an updated code:
import java.io.Console;
import java.io.*;
import java.lang.Math;
import java.lang.Boolean;
import ptolemy.plot.*;
public class Edisc1 {
Ah you're too quick! I edited my post when I reread it. See above
I thought the 500 I set was the number of points that would be plotted on the graph (obviously this is not the case). For some reason, when I run the program now, the graph instantaneously appears...
Here is the updated code:
import java.io.Console;
import java.io.*;
import java.lang.Math;
import java.lang.Boolean;
import ptolemy.plot.*;
public class Edisc1 {
When I put in a println statement, I have the contents of that statement displayed a large number of times in the command terminal, so I think that the loop is going over and over again. Is there a...
Can you see anywhere in my code where I created an infinite loop?
Yes, I forgot to reference the other jar file - it now works albeit my graph looks a bit strange (but I should be able to fix this via changing the plotframe size etc..) Everytime I run though and...
Hi jps,
Yes, sure here it is:
import java.io.Console;
import java.io.*;
import java.lang.Math;
import java.lang.Boolean;
Hi PhHein,
I managed to finally get the code to compile and I fixed the code to correct the remaining errors as you anticipated. I went to run it using the command:
java -cp .;"C:\Program...
That didn't work either. I'll try again later, although I would not be sure what else to try. I did not think it would take so long to just configure this package and all of the tutorials I have...
No, it is C:/ProgramFiles/Java/jdk1.7.0_21/ptplot5.8/ptolemy/plot/plot.jar
I am not sure I understand. I see a plot 'executible JAR file' in the file folder plot but I also see the file folder 'plotml' in 'plot' which contains the 'executible JAR file' plotml
Input:
package ph;
import ptolemy.plot.*;
public class PLTest{
public static void main(String[] args){
System.out.println("Jap");
Plot p = new Plot();
p.setName("phh");
Ok, thanks. I'd prefer to find why I can't get the Ptolemy.plot package to be found before I worry about getting the code to actually work. I don't know what else to try though - everything you...
All the errors that appeared were to do with this apparent non existence of the ptolemy.plot (there were 7 errors in total). Where are the other errors and why does the compiler not pick them up?
Do you mean there are errors in the code?
Here is my full source code:
import java.io.Console;
import java.io.*;
import java.lang.Math;
import java.lang.Boolean;
import ptolemy.plot.*;
I see - in post #10 I missed out \ptolemy\. That was just a typo. Is it not the same as in 12 then? (except I added on more jar files). When I enter what you wrote in 16, I still have this...
Is that not what I tried in post #10?