Doh!...again. Restarted the plugin a second time and now it works fine.
Carl
Seans-Mac-Pro-Server:Weather technopilot$ gnuplot 10dayPlot.gnu
set terminal pngcairo enhanced background "#000000" font "Lato-Light,9" linewidth 1 rounded size 600,200
^
"10dayPlot.gnu", line 6: unknown or ambiguous terminal type; type just 'set terminal' for a list
#! /usr/bin/env gnuplot
# -*- coding: utf-8 -*-
reset
set terminal pngcairo enhanced background "#000000" font "Lato-Light,9" linewidth 1 rounded size 600,200
set output "OSX/Users/technopilot/Dropbox/My\ Scripts/Indigo\ Automation/Weather/10dayForecast.png"
dataFileForecast = "OSX/Users/technopilot/Dropbox/My\ Scripts/Indigo\ Automation/Weather/10dayForecast.csv"
set datafile separator ','
set timefmt "%Y-%m-%d"
stats dataFileForecast using 2:4 nooutput
freezeWarning = 32.
Yhigh = STATS_max_x + 10.
Ylow = STATS_min_y - 10.
freezeLabel = ((freezeWarning-Ylow) / (Yhigh-Ylow))
unset key
set border linetype rgb "#666666"
set boxwidth 0.25 relative
set style fill transparent solid 0.4
set style line 1 linetype rgb "#0066CC"
set style line 2 linetype rgb "#FFFFFF" pointtype 7 pointsize .5
set style line 3 linetype rgb "#666666"
set style line 4 linetype rgb "#FFFF00"
set style line 5 linetype rgb "#333333"
set label "°" right
unset mxtics
set tics textcolor rgb "#666666"
# X Axis
set xdata time
set xtics format "%a" nomirror
set autoscale xfix
set offsets 12*60*60,12*60*60,0,0
# Y Axis
set ytics format "%2f°" nomirror
set yrange [Ylow:Yhigh]
unset ytics
if (32 > Ylow) set label "32°" at graph 0.01,freezeLabel tc rgb "#FFFFFF" font ",8"
# Y2 Axis
set y2tics format "%2.0f%%" nomirror
set y2range [0:100]
plot dataFileForecast using 1:2 with lines,\
dataFileForecast using 1:4 with lines,\
freezeWarning with lines
Last login: Sun Oct 11 09:07:40 on console
computername:~ username$ gnuplot
G N U P L O T
Version 5.0 patchlevel 0 last modified 2015-01-01
Copyright (C) 1986-1993, 1998, 2004, 2007-2015
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 'aqua'
gnuplot> set terminal
Available terminal types:
aqua Interface to graphics terminal server for Mac OS X
caca Colour ascii art using libcaca, the Colour AsCii Art library
cairolatex LaTeX picture environment using graphicx package and Cairo backend
canvas HTML Canvas object
cgm Computer Graphics Metafile
context ConTeXt with MetaFun (for PDF documents)
corel EPS format for CorelDRAW
dumb ascii art for anything that prints text
dxf dxf-file for AutoCad (default size 120x80)
eepic EEPIC -- extended LaTeX picture environment
emf Enhanced Metafile format
emtex LaTeX picture environment with emTeX specials
epscairo eps terminal based on cairo
epslatex LaTeX picture environment using graphicx package
fig FIG graphics language for XFIG graphics editor
gif GIF images using libgd and TrueType fonts
hpgl HP7475 and relatives [number of pens] [eject]
jpeg JPEG images using libgd and TrueType fonts
latex LaTeX picture environment
lua Lua generic terminal driver
mf Metafont plotting standard
mp MetaPost plotting standard
pcl5 HP Designjet 750C, HP Laserjet III/IV, etc. (many options)
pdfcairo pdf terminal based on cairo
png PNG images using libgd and TrueType fonts
pngcairo png terminal based on cairo
postscript PostScript graphics, including EPSF embedded files (*.eps)
pslatex LaTeX picture environment with PostScript \specials
pstex plain TeX with PostScript \specials
pstricks LaTeX picture environment with PSTricks macros
qms QMS/QUIC Laser printer (also Talaris 1200 and others)
svg W3C Scalable Vector Graphics
tek40xx Tektronix 4010 and others; most TEK emulators
tek410x Tektronix 4106, 4107, 4109 and 420X terminals
texdraw LaTeX texdraw environment
tgif TGIF X11 [mode] [x,y] [dashed] ["font" [fontsize]]
tikz TeX TikZ graphics macros via the lua script driver
tkcanvas Tk/Tcl canvas widget [perltk] [interactive]
tpic TPIC -- LaTeX picture environment with tpic \specials
unknown Unknown terminal type - not a plotting device
vttek VT-like tek40xx terminal emulator
wxt wxWidgets cross-platform windowed terminal
x11 X11 Window System
xlib X11 Window System (gnulib_x11 dump)
xterm Xterm Tektronix 4014 Mode
gnuplot>
G N U P L O T
Version 5.0 patchlevel 1 last modified 2015-06-07
Copyright (C) 1986-1993, 1998, 2004, 2007-2015
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'
gnuplot> set terminal pngcairo
Terminal type set to 'unknown'
^
unknown or ambiguous terminal type; type just 'set terminal' for a list
gnuplot> set terminal
Available terminal types:
canvas HTML Canvas object
cgm Computer Graphics Metafile
context ConTeXt with MetaFun (for PDF documents)
corel EPS format for CorelDRAW
dumb ascii art for anything that prints text
dxf dxf-file for AutoCad (default size 120x80)
eepic EEPIC -- extended LaTeX picture environment
emf Enhanced Metafile format
emtex LaTeX picture environment with emTeX specials
epslatex LaTeX picture environment using graphicx package
fig FIG graphics language for XFIG graphics editor
gif GIF images using libgd and TrueType fonts
hpgl HP7475 and relatives [number of pens] [eject]
jpeg JPEG images using libgd and TrueType fonts
latex LaTeX picture environment
lua Lua generic terminal driver
mf Metafont plotting standard
mp MetaPost plotting standard
pcl5 HP Designjet 750C, HP Laserjet III/IV, etc. (many options)
png PNG images using libgd and TrueType fonts
postscript PostScript graphics, including EPSF embedded files (*.eps)
pslatex LaTeX picture environment with PostScript \specials
pstex plain TeX with PostScript \specials
pstricks LaTeX picture environment with PSTricks macros
qms QMS/QUIC Laser printer (also Talaris 1200 and others)
svg W3C Scalable Vector Graphics
tek40xx Tektronix 4010 and others; most TEK emulators
tek410x Tektronix 4106, 4107, 4109 and 420X terminals
texdraw LaTeX texdraw environment
tgif TGIF X11 [mode] [x,y] [dashed] ["font" [fontsize]]
tikz TeX TikZ graphics macros via the lua script driver
tkcanvas Tk/Tcl canvas widget [perltk] [interactive]
tpic TPIC -- LaTeX picture environment with tpic \specials
unknown Unknown terminal type - not a plotting device
vttek VT-like tek40xx terminal emulator
xterm Xterm Tektronix 4014 Mode
gnuplot>
set terminal png truecolor enhanced medium size 820,350 dashlength 0.5 background rgb "#FFFFFF"
# Background Color
#000000
# Chart Font Style
Lato-Light,9
parmFile = "_gnuplotParms.txt"
backgroundColor_var = system(sprintf("sed -n '2p' %s", parmFile))
font_var = system(sprintf("sed -n '5p' %s", parmFile))
set terminal pngcairo enhanced background backgroundColor_var font font_var linewidth 1 rounded size 600,200
backgroundColor_var = "#000000"
font_var = "Lato-Light,9"
Load "_gnuplotParms.txt"
set terminal pngcairo enhanced background backgroundColor_var font font_var linewidth 1 rounded size 600,200
load "/Users/username/Dropbox/Indigo\ Scripts/_gnuplotParms.txt"
load "_gnuplotParms.txt"
brew install gnuplot
brew help
ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
TV2:~ TV$ ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
==> This script will install:
/usr/local/bin/brew
/usr/local/Library/...
/usr/local/share/man/man1/brew.1
Press RETURN to continue or any other key to abort
==> Downloading and installing Homebrew...
==> Installation successful!
==> Next steps
Run `brew help` to get started
TV2:~ TV$ brew install gnuplot
Warning: You are using OS X 10.6.
We (and Apple) do not provide support for this old version.
You may encounter build failures or other breakages.
==> Downloading https://downloads.sourceforge.net/project/gnuplot/gnuplot/5.0.1/
Already downloaded: /Library/Caches/Homebrew/gnuplot-5.0.1.tar.gz
==> ./configure --disable-silent-rules --prefix=/usr/local/Cellar/gnuplot/5.0.1
==> make
Last 15 lines from /Users/TV/Library/Logs/Homebrew/gnuplot/02.make:
Making all in man
make[2]: Nothing to be done for `all'.
Making all in demo
Making all in plugin
gcc-4.0 -DHAVE_CONFIG_H -I. -I../.. -I/usr/local/opt/readline/include -I/usr/local/Cellar/gd/2.1.1/include -I/usr/local/Cellar/lua/5.2.4_2/include -rdynamic -fPIC -I../../src -g -O2 -c -o demo_plugin_so-demo_plugin.o `test -f 'demo_plugin.c' || echo './'`demo_plugin.c
gcc-4.0 -rdynamic -fPIC -I../../src -g -O2 -shared -L/usr/local/opt/readline/lib -L/usr/X11/lib -L/usr/local/opt/jpeg/lib -o demo_plugin.so demo_plugin_so-demo_plugin.o -liconv
Undefined symbols:
"_main", referenced from:
start in crt1.10.5.o
ld: symbol(s) not found
collect2: ld returned 1 exit status
make[3]: *** [demo_plugin.so] Error 1
make[2]: *** [all-recursive] Error 1
make[1]: *** [all-recursive] Error 1
make: *** [all] Error 2
READ THIS: https://git.io/brew-troubleshooting
Warning: You are using OS X 10.6.
We (and Apple) do not provide support for this old version.
You may encounter build failures or other breakages.
TV2:~ TV$ gnuplot
-bash: gnuplot: command not found
TV2:~ TV$
TV2:~ TV$ gcc --version
i686-apple-darwin9-gcc-4.0.1 (GCC) 4.0.1 (Apple Inc. build 5465)
Copyright (C) 2005 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
TV2:~ TV$ pkgutil --pkg-info=com.apple.pkg.DeveloperToolsCLI
No receipt for 'com.apple.pkg.DeveloperToolsCLI' found at '/'.
TV2:~ TV$
Users browsing this forum: No registered users and 2 guests