gnuplot cursor not moving on OSX 10.9? - gnuplot

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)

Related

Corrupted visual from python chromeos linux

I am using a chromebook with linux beta turned on to use a terminal to run python3 scripts. they worked fine until recently when any pop out window (pygame, pyplot) look corrupted. the windows have black bars covering them for pyplot or are completely covered in black for pygame. the code in the python scripts are unchanged and worked just fine a couple of weeks ago.
I have already turned off linux beta, then returned it back on, reinstalling packages which didn't alleviate the issue. Any help is IMMENSELY appreciated!!
I installed Qt5 bindings via pip install PyQt5 and changed the backend to Qt5Agg per How to change backends in matplotlib / Python and that fixed the black bars for me.

How to install Source Code Pro Font on Arch Linux

I am currently follwoing this guide to install spacemacs and it has suggested that I use the adobe font source code pro.
Now the problem is that I have installed Adobe Font Development Kit for OpenType using yaourt -S adobe-source-code-pro-fonts, but can't seem to get the command makeotf -h to work. I simply get a zsh: command not found: makeotf. Not sure why this is the case.
It seems that makeotf is only used to build the font files from source.
That should not be necessary since you installed them through yaourt. So you already have the fonts. Now you need to config Spacemacs to use them.

GNUPLOT on Mac "x11 aborted"

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.

How to enable color logs in nodejs program running in git-bash v.2.8.2 for windows?

I had been using Git for Windows 1.9.5 (installed from Git-1.9.5-preview20150319.exe). There was colored output from my nodejs program (gulp) in git-bash terminal. But when I uninstalled 1.9.5 and then installed 2.8.2 (Git-2.8.2-64-bit.exe) all output became monochrome except git-bash prompt line. How to utilize colored output in this newer 2.8.2 version? Or may be there is other suitable 2.x.x version (Visual Studio Code recommends this)
Create a Windows environment variable FORCE_COLOR and set it's value to true or 1.
This solved my issue and all other team-members using Windows who had the same colors problem.
Looks like the reason is in the new default type of terminal: MinTTY (the default terminal of MSYS2). The decision is to utilize a little bit modified (with regard to paths) version of the Git Bash.vbs file from version 1.9.5.

bad quality of picture in gnuplot 4.6.1

I have just shifted from gnuplot 4.4 to 4.6.1. And unluckily found that all the pictures in x11 terminal have lost in quality pretty much (low resolution). It seems to me smth is wrong with configuration of gnuplot (I compiled 4.6 from sources and did not apply any options to configure).
Has anybody encountered with such problem?
Best regards,
Alexander
upd:
here are the screenshots of 4.2 and 4.6 respectively:
https://picasaweb.google.com/102562667690948164683/212012?authkey=Gv1sRgCPj9s7CH1Z3LgAE#5813182842354188578
https://picasaweb.google.com/102562667690948164683/212012?authkey=Gv1sRgCPj9s7CH1Z3LgAE#5813182919536461282
The wxt terminal is indeed what you want.
It is enabled by default in the 'configure' script, so I assume you were missing one or more libraries it depends on, when you ran it. I just tried it with version 4.6.1 from sourceforge.
The confgiure script gives you a list of requirements for the wxt terminal to be enabled. Look for the line
wxt terminal: no (requires C++, wxWidgets>2.6, cairo>0.9, pango>1.10)
You need C++ (I assume you have that). For the others, on my almost clean Ubuntu 12.10 64bit installation, I needed to install 3 additional packages with their dependencies to enable the wxt terminal option. You want:
libcairo2-dev
libpango1.0-dev
libwxgtk2.8-dev
On debian-based distributions, you can do:
sudo apt-get install libcairo2-dev libpango1.0-dev libwxgtk2.8-dev
or install them manually on other systems. If you don't find them in your repositories, you can always get the latest versions from wxWidgets,cairo and pango. When you have the libraries installed, re-run ./configure and check that the wxt terminal line reads
wxt terminal: yes
If it does, re-compile your gnuplot by make and make install and you can use gnuplot as before with nice output on the screen.
Try "set term wxt". It works as a replacement for the x11 term and is likely to have better quality.

Resources