Gnuplot for Mac is a portable command-line driven graphing utility for Mac OS X, Windows, OS/2, VMS, and many other platforms. Gnuplot for Mac is able to generate both 2D and 3D plots; delivering the results in animated views. You can also save the graphs to a variety of image formats, including PNG, SVG, JPEG and EPS. Gnuplot is a portable command-line driven graphing utility for Linux, OS/2, MS Windows, OSX, VMS, and many other platforms. The source code is copyrighted but freely distributed (i.e., you don't have to pay for it). It was originally created to allow scientists and students to visualize mathematical functions and data interactively, but has grown to support many non-interactive uses such as. Gnuplot for Mac is a portable command-line driven graphing utility for macOS and many other platforms. The source code is copyrighted but freely distributed (i.e., you don't have to pay for it). The source code is copyrighted but freely distributed (i.e., you don't have to pay for it). Gnuplot for Mac是Mac平台上的一款交互式科学绘图工具。Gnuplot最初是为了允许科学家和学生以交互方式可视化数学函数和数据而创建的,但现在已发展为支持许多非交互用途,例如Web脚本。Gnuplot也被Octave等第三方应用程序用作绘图引擎。Gnuplot支持许多不同类型的2D和3D绘图!.
- Gnuplot For Mac Os X Download
- Gnuplot Linux
- Gnuplot Mac Terminal
- Gnuplot For Macbook Pro
- Gnuplot For Windows 10
Remarks
This section provides an overview of what gnuplot is, and why a developer might want to use it.
It should also mention any large subjects within gnuplot, and link out to the related topics. Since the Documentation for gnuplot is new, you may need to create initial versions of those related topics.
Versions
Version | Last patchlevel | Last Release Date |
---|---|---|
5.0.x | 5.0.5 | 2016-10-09 |
4.6.x | 4.6.7 | 2015-04-28 |
4.4.x | 4.4.4 | 2011-11-13 |
4.2.x | 4.2.6 | 2007-07-01 |
4.0.x | 4.0.0 | 2004-04-01 |
Basic introduction to programming language's rules
From the gnuplot 5.0 official online documentation:
The command language of gnuplot is case sensitive, i.e. commands and function names written in lowercase are not the same as those written in capitals. All command names may be abbreviated as long as the abbreviation is not ambiguous. Any number of commands may appear on a line, separated by semicolons
;
. (T. Williams, C. Kelley - gnuplot 5.0, An Interactive Plotting Program)Some examples of these basic rules are
1. A case sensitive language
Typing lowercase-defined commands in uppercase will generate an
invalid command
warning.Also the
N
variable will be different from the n
one.2. Abbreviations
You can find an almost complete list of abbreviations here. Anyway the first three letters of any command in gnuplot work always as abbreviations. Some commands allows also a more powerful contraction. A little example is given below.
where
p
stands for plot
, rep
for replot
and q
for quit
.![Gnuplot For Mac Gnuplot For Mac](/uploads/1/1/8/0/118001208/174862758.jpg)
3. Separators
The symbol used to separate commands on a singe line is
;
set title 'My First Plot'; plot 'data'; print 'all done!'
5. Comments
Comments are supported as follows: a
#
may appear in most places in a line and gnuplot will ignore the rest of the line. It will not have this effect inside quotes, inside numbers (including complex numbers), inside command substitutions, etc. In short, it works anywhere it makes sense to work. (Ibidem)Just remember the simple 'anywhere it makes sense to work' rule.
4. Extending commands
Commands may extend over several input lines by ending each line but the last with a backslash (
). The backslash must be the last character on each line. The effect is as if the backslash and newline were not there. That is, no white space is implied, nor is a comment terminated. Therefore, commenting out a continued line comments out the entire command. (Ibidem)For example, to split
plot
command on multiple lines,will plot the same as
A little note on 'commenting out a continued line comments out the entire command'. If you type the command
an error will occur:
So it's better to be careful and respect the rule 'anywhere it makes sense to work' while using
#
comments.![Gnuplot Gnuplot](/uploads/1/1/8/0/118001208/665453280.png)
Installation or Setup
Gnuplot is a portable command-line driven graphing utility. This example will show how to setup gnuplot in the various platforms.
- Download the latest version of the installer from gnuplot site.
- Run the downloaded file and allow it to run as administrator if requested
- On the setup window select the language and follow the instructions on screen.
- (optional) During the installation you may select the gnuplot to be added to the PATH that will allow you to run commands from anywhere on the command line. If you choose not to do so you may add it manually later or
cd
to the gnuplot installed directory prior to running commands.
The default installation location of gnuplot on Windows is
C:Program Files (x86)gnuplot
NOTE: the filename will be of the format:
gp<version>-win32-mingw.exe
The installation on Linux can be done through the different package managers as follows.
Arch
Debian and Ubuntu
CentOS / RedHat
Fedora
Using Homebrew
Using MacPorts
Test the installation
After installing gnuplot it's a good idea to run a simple example to ensure all is working fine.
- Open your terminal
- Type
gnuplot
. - Your prompt should now change to
gnuplot>
- Type:
plot sin(x)
If all is well you should see now a sin(x) graphic generated by gnuplot.
Note: if you are on Windows and have not added
gnuplot
to your PATH
you' ll need to navigate to the <gnuplot_install_path>bin
folder. The default location is: C:Program Files (x86)gnuplotbin
Gnuplot For Mac Os X Download
Gnuplot Linux
About the App
- App name: gnuplot
- App description: Command-driven interactive function plotting
- App website: http://www.gnuplot.info
Install the App
Gnuplot Mac Terminal
- Press
Command+Space
and type Terminal and press enter/return key. - Run in Terminal app:
ruby -e '$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)' < /dev/null 2> /dev/null
and press enter/return key.
If the screen prompts you to enter a password, please enter your Mac's user password to continue. When you type the password, it won't be displayed on screen, but the system would accept it. So just type your password and press ENTER/RETURN key. Then wait for the command to finish. - Run:
brew install gnuplot
Gnuplot For Macbook Pro
Done! You can now use
gnuplot
.