![]() ![]() You can set GnuPlot back to autoscaling theįor more information on the set xrange and set autoscale To set the default x range backĪlso, if you set the range for the y values, they will stay the sameįor future plots as well. Note, that if you set the range for the x values on one plot, they To change the scale, use one of the following But if we want to see what theįunction looks like closer to 0, we need to change the scale. Note that in this picture the scale isn't the best for finding a lot You should see something like the following pop up in the graphicsįor another example, to see what the hyperbolic cosine function looks The command used for two-dimensional plots is plot. Use the left and right arrow keys to change what you typed. ![]() If you have typed aĬouple of lines, you can keep hitting the arrow button. Made a mistake or want to slightly change what you typed, hit the This will pull up another window with the graph you wanted. You would then type the following at the gnuplot> log(exp(x)) (Hint, this simplifies to x)įor a quick example, let's say you wanted a graph of.Understand what functions are being described. The following are other examples of functions. For information on other functions, type help functions.log returns the natural log (baseĮ) of it's argument. exp raises e to the power of itsĤ*exp(2*x) in Gnuplot. The hyperbolic trig functions, sinh, cosh, and tanh.The inverse trig functions, asin, acos, and atan.Use the constant pi can be referenced by just using pi. The standard trig functions, sin, cos, and tan Note, to.Putting the arguments in parenthesis, i.e., sin(x). Gnuplot also has a number of predefined functions. That is, 3x would generate and error, you would wantįor example, the polynomial 3x 4 + 4x - 2/3 would be Multiplication is denoted by *, and division by /.Įxponents are denoted by **, and all multiplication must beĮxplicit. In 2D plots, the variable to use is x, in 3D plots, use x and y. To quit gnuplot, type exit, or hit Control-D. Pick GnuPlot from the Wright Hall Menu that comes up when you hold.At the prompt on one of the suns, type gnuplot.When you are logged into a Sun, you can do one of the following: It is possible to run GnuPlot on any Xserver, but that To access Gnuplot, you probably want to be logged into one of the Suns If you have questions at any time, you can access the on-line help by typing The features and topics on Gnuplot covered in this document include : Only need a plot of a graph, and who don't want to learn a major Although it doesn't have as many features as some of theĬommerical mathematical software available, it isn't as complex to useĪs packages such as Mathematica or Matlab. Gnuplot is a command-line driven program for producing 2D and 3D Introduction to GnuPlot College of Natural Sciences Computing Laboratories ![]()
0 Comments
Leave a Reply. |