I am using gunplot on mac os x (Yosemite). I can plot data, but I can't do a lot of customization:
commands like: set tics "", or rotate by ... don't work.
Do you think it's a problem from the installation or terminal?
Thanks!
i have yosemite too. I suggest you use the x11 terminal.
Write:
set term x11 enhanced
Related
To install gnuplot with x11, I used the following command:
brew install gnuplot --with-x11
I am running OS X EL Capitan Version 10.11.6. When I run gnuplot, I obtain:
G N U P L O T Version 5.0 patchlevel 5 last modified 2016-10-02
Copyright (C) 1986-1993, 1998, 2004, 2007-2016 Thomas Williams, Colin Kelley and many others
gnuplot home: http://www.gnuplot.info faq, bugs, etc: type "help FAQ" immediate help: type "help" (plot window: hit 'h')
Terminal type set to 'unknown'
I then tried to plot something simple like sin(x) and I get the error
gnuplot: unable to open display ''
gnuplot: X11 aborted.
Any advice?
First of all, if you haven't yet, you have to type the command
set term x11
this is fundamental, because without having set a term you can't have an output.
Then, if it's still not working, try uninstalling gnuplot and reinstall with another terminal, e.g. the qt terminal (which is good also because if you have a 3D plot you can interact with it), by using the command
brew uninstall gnuplot
brew install gnuplot --with-qt
Alternatively, if you really need x11 as terminal you can have a look here on AskDifferent (seem someone has already had a similar issue).
Also, typing set term could be helpful and give you the entire list of gnuplot terminal pre-installed, and remember, if you have a question check before the GNUPLOT guide, which is accessible with the command help "ANYTHING_INSIDE_GNUPLOT", in your case:
help term
Make sure you've XQuartz installed when installing with --with-x11.
Otherwise try reinstalling gnuplot with QT, e.g.
brew reinstall gnuplot --with-qt
I had to logout and login again after installing XQuartz before set term x11 worked.
?I have installed Cygwin64 on Windows 7 with the following packages: octave (version 3.8.2), xterm, xinit, xlaunch, gnuplot. However, when typing figure; in the Cygwin Terminal window, no Gnuplot graphical window appear, instead the figure is plotted inside the Cygwin Terminal window.
What is wrong in my setup, or in my expectations. How do I get Gnuplot visible?
Thanks in advance !
I have tried to compile gnuplot 5.0. Once finish compile I check for available terminals. There in the list I could not see terminal png or pngcairo. I also tried some options given in the release note for version 5 (http://www.gnuplot.info/ReleaseNotes_5_0.html). Unfortunately, that could not help me.
I am using ubuntu 14.04 and previously I used gnuplot ver 4.6.
Hope I could get some help.
Thanks
I have recently installed OSX 10.9, with the latest version of XQuartz and gnuplot 4.6.4
When I move the cursor across the gnuplot window the coordinates shown in the bottom left corner do not update. I am testing this using plot sin(x). The desired functionality I am describing is seen here.
I believe that this was working under OSX 10.7, so I am not sure what is the problem.
Installing gnuplot through macports instead of building from the official sourceforge download site solved the issue.
I also installed the wxt terminal while I was at it since it offers some improved features, but x11 works fine too. (Thanks #Christoph for bringing me to learn about wxt).
Instructions:
Install macports
Open the terminal and enter port variants gnuplot followed by sudo port install gnuplot +wxwidgets
(Note: the installation may take a while, but is all automated)
I use terminal from Mac OS X Leopard to connect to remote Linux machines and edit C++ code there using VI.
What determines that in some machines, using the same MACOSX terminal settings, the source code gets colorized and in other not?
Thanks
Have you used :syntax enable in vim on the remote machine? Just asking, since on the ones that are working it could be in .vimrc or similar.
Usually, the $TERM environment variable determines whether the terminal is capable of color.
$TERM is set upon connection to the remote terminal. From there, you can try export TERM='xterm-color' and see what happens.
Setting the .vimrc with
set term=xterm-color
worked for me in OS X tiger server. I put this at the top of the .vimrc. I also set the term app on OS X El capitan host to xterm in the preferences. I have syntax highlighting over ssh. Thanks again
In my case, these "remote linux machines" usually have a 'small' or 'tiny' version of vim installed which does not have syntax highlighting. When in vim, enter the command :version, and see if you have +syntax or -syntax in the feature list. If you don't have +syntax, then vim has been compiled without syntax support and you need to recompile vim on that machine.