Graphing changes
This commit is contained in:
parent
12f85b505d
commit
9e7b64740d
@ -123,7 +123,7 @@ public class Functions {
|
|||||||
/*
|
/*
|
||||||
Graphing interfaces
|
Graphing interfaces
|
||||||
*/
|
*/
|
||||||
public void plotrange(double xmin, double xmax) {
|
public void xlim(double xmin, double xmax) {
|
||||||
graphwin.setRange(xmin, xmax);
|
graphwin.setRange(xmin, xmax);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -267,7 +267,7 @@ public class Graph extends javax.swing.JInternalFrame {
|
|||||||
String xx = "";
|
String xx = "";
|
||||||
String yy = "";
|
String yy = "";
|
||||||
double x;
|
double x;
|
||||||
for (x = xmin; x <= xmax; x += ((xmax - xmin) / 60.0)) {
|
for (x = xmin; x <= xmax; x += ((xmax - xmin) / 400.0)) {
|
||||||
String res;
|
String res;
|
||||||
try {
|
try {
|
||||||
cr.setVar("x", x);
|
cr.setVar("x", x);
|
||||||
@ -368,7 +368,7 @@ public class Graph extends javax.swing.JInternalFrame {
|
|||||||
double[] xpt = {x};
|
double[] xpt = {x};
|
||||||
double[] ypt = {y};
|
double[] ypt = {y};
|
||||||
|
|
||||||
plot.addScatterPlot("", xpt, ypt);
|
plot.addScatterPlot("", Color.BLACK, xpt, ypt);
|
||||||
}
|
}
|
||||||
|
|
||||||
private void inBoxKeyTyped(java.awt.event.KeyEvent evt) {//GEN-FIRST:event_inBoxKeyTyped
|
private void inBoxKeyTyped(java.awt.event.KeyEvent evt) {//GEN-FIRST:event_inBoxKeyTyped
|
||||||
|
@ -11,7 +11,7 @@ plot(x[],y[])|Graph the lists of points given.
|
|||||||
graph('')|Alias of plot('')
|
graph('')|Alias of plot('')
|
||||||
plotname("")|Sets the title of the graph window.
|
plotname("")|Sets the title of the graph window.
|
||||||
plotname()|Gets the title of the graph window.
|
plotname()|Gets the title of the graph window.
|
||||||
plotrange(min,max)|Sets the x-axis min and max values.
|
xlim(min,max)|Sets the x-axis min and max values. Cannot be used after a formula has been graphed.
|
||||||
plotclr()|Reset the graph.
|
plotclr()|Reset the graph.
|
||||||
clearplot()|Alias of plotclr()
|
clearplot()|Alias of plotclr()
|
||||||
drawdot(x, y)|Places a dot at the given coordinates.
|
drawdot(x, y)|Places a dot at the given coordinates.
|
||||||
|
@ -11,7 +11,7 @@ _.plot(x[],y[])|Graph the lists of points given.
|
|||||||
_.graph('')|Alias of plot('')
|
_.graph('')|Alias of plot('')
|
||||||
_.plotname("")|Sets the title of the graph window.
|
_.plotname("")|Sets the title of the graph window.
|
||||||
_.plotname()|Gets the title of the graph window.
|
_.plotname()|Gets the title of the graph window.
|
||||||
_.plotrange(min,max)|Sets the x-axis min and max values.
|
_.xlim(min,max)|Sets the x-axis min and max values. Cannot be used after a formula has been graphed.
|
||||||
_.plotclr()|Reset the graph.
|
_.plotclr()|Reset the graph.
|
||||||
_.clearplot()|Alias of plotclr()
|
_.clearplot()|Alias of plotclr()
|
||||||
_.drawdot(x, y)|Places a dot at the given coordinates.
|
_.drawdot(x, y)|Places a dot at the given coordinates.
|
||||||
|
Loading…
x
Reference in New Issue
Block a user