You can use an alternative version of SCaVis for small-screen devices:
The functionality of the IDE is essentially the same as for the desktop edition. The only difference is that there is no the pop-up canvas frame, since the plotting canvas is fully integrated into the IDE. Unlike the desktop edition, the JythoShell is on the right side of this IDE. The code assist works exactly as for the desktop edition. The above image shows how to work with HPlot class.
Analogously, one can use the 3D canvas to plot 3D functions, 2D histograms or data points in X-Y-Z.
Note: this image is modified to protect proprietary parts. Use the mouse to zoom in
Look at the SCaVis IDE movie to see how it works.
It should be noted that an Android version of SCaVis is also available.
A SCaVis IDE for mobile devices is available for the SCaVis liberated edition which can be accessed by SCaVis full members. After unzipping scavis-pro-version.zip file, you can find two scripts to launch such IDE
For Windows operating system:
This version of IDE is under heavy development. However, already now one can use it essentially for all operations as for the desktop edition
Let us consider an example:
from jport import * from jhplot import * c1=HPort.get() f1=F1D("x*x") c1.draw(f1)
Here “c1” is the object of the HPlot class. It should be noted that if you will use the usual c1=HPlot(“Canvas”) (as for the desktop edition), the IDE will do replacement of this statement on the fly and convert it to HPort.get(“Canvas”).
You can run this example using [File]→[Open Jython file], or you can use the right window to type interactive commands. The main difference is that instead calling HPlot class, one should call the construction “c1=HPort.get()”. Note, the standard approach when HPlot is called directly also works (but, in this case, you will see a pop-up window).
One can also use Here “c1” is the object of the HPlot3D class for the small-screen devices. This canvas can be selected at the start-up time.
Let us consider an example which plots 3D function:
from jport import * from jhplot import * c1=HPort3D.get("canvas") c1.visible(1) c1.setGTitle("HPlot3D canvas tests") f1=F2D("cos(x*y)*(x*x-y*y)", -2.0, 2.0, -2.0, 2.0) c1.draw(f1) c1.export("figure.eps") # export to EPS format
It should be noted that if you will use the usual c1=HPlot3D(“Canvas”) (as for the desktop edition), the IDE will do replacement of this statement on the fly and convert it to “HPort3D.get”. Here is another example showing interactive histogram
from jport import * from jhplot import * from java.util import Random c1=HPort3D.get("canvas") c1.setGTitle("HPlot3D canvas tests") r=Random() h1=H2D("My 2D Test1",30,-4.5, 4.5, 30, -4.0, 4.0) for i in range(1000): h1.fill(r.nextGaussian(),r.nextGaussian()) c1.draw(h1) c1.export("figure.eps") # export to EPS format