-
Notifications
You must be signed in to change notification settings - Fork 0
Plotting
BIDMat has basic plotting and histogram capabilities similar to Matlab.
To plot a dataset, call "plot(M)" with an argument matrix, and you get a straight line plot of the value along Y with an implicit X-axis. Plotting two one-dimensional matrices "plot(X,Y)" plots the values as x-y coordinate pairs. You can also plot multiple graphs on the same axes by using alternating X and Y matrices: plot(X1, Y1, X2, Y2,...)
The plot library uses Xwindows through Java and you need to be running an X server on your machine. It works fine when the machine you are typing at and the machine running BIDMat are distant. When you connect to the remote machine (say iclusterxy), you need to enable X packet forwarding. This is a menu option for the Putty application. If you use ssh from the command line to connect, you should add the "-X" option to cause forwarding to happen.
When you call val p = plot(X), it returns a ptolemy.Plot object. You can call any of the methods described in the plolemy docs to customize the plot: http://ptolemy.eecs.berkeley.edu/java/ptplot/
Various log-scale plots are supported, like loglog(), semilogx(), and semilogy().
There is a simple histogram function, called by hist(M, nbins)