ckeyes888 wrote:Thanks Dave. I'll dive in and see what happens.
Carl
That's when the fun starts. Feel free to ask questions if you get stuck.
Dave
ckeyes888 wrote:Thanks Dave. I'll dive in and see what happens.
Carl
ckeyes888 wrote:Got the .csv create script working but having errors creating the .png.
Any idea why it won't compile?
Thanks,
Carl
TV:~ TV$ gnuplot
G N U P L O T
Version 4.6 patchlevel 4 last modified 2013-10-06
Build System: Darwin i386
Copyright (C) 1986-1993, 1998, 2004, 2007-2013
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> #! /usr/bin/env gnuplot
gnuplot> reset
gnuplot>
gnuplot> set terminal pngcairo enhanced background "#000000" font "Lato-Light,9" linewidth 1 rounded size 600,200
Terminal type set to 'pngcairo'
set output "/Users/TV/10DayForecast.png"
dataFileForecast = "/Users/TV/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 lif (32 > Ylow) set lif (32 > Ylow) set lif (32 > Ylow) set lif (32 > Options are ' background "#000000" enhanced font "Lato-Light,9" fontscale 1.0 size 600, 200 rounded'
gnuplot> set output "/Users/TV/10DayForecast.png"
gnuplot> dataFileForecast = "/Users/TV/10DayForecast.csv"
gnuplot> set datafile separator ','
gnuplot> set timefmt "%Y-%m-%d"
gnuplot> stats dataFileForecast using 2:4 nooutput
gnuplot>
gnuplot> freezeWarning = 32.
gnuplot> Yhigh = STATS_max_x + 10.
gnuplot> Ylow = STATS_min_y - 10.
gnuplot> freezeLabel = ((freezeWarning-Ylow) / (Yhigh-Ylow))
gnuplot>
gnuplot> unset key
gnuplot> set border linetype rgb "#666666"
gnuplot> set boxwidth 0.25 relative
gnuplot> set style fill transparent solid 0.4
gnuplot> set style line 1 linetype rgb "#0066CC"
gnuplot> set style line 2 linetype rgb "#FFFFFF" pointtype 7 pointsize .5
gnuplot> set style line 3 linetype rgb "#666666"
gnuplot> set style line 4 linetype rgb "#FFFF00"
gnuplot> set style line 5 linetype rgb "#333333"
gnuplot>
gnuplot> set label "°" right
gnuplot>
gnuplot> unset mxtics
gnuplot> set tics textcolor rgb "#666666"
gnuplot>
gnuplot> # X Axis
gnuplot> set xdata time
gnuplot> set xtics format "%a" nomirror
gnuplot> set autoscale xfix
gnuplot> set offsets 12*60*60,12*60*60,0,0
gnuplot>
gnuplot> # Y Axis
gnuplot> set ytics format "%2f°" nomirror
gnuplot> set yrange [Ylow:Yhigh]
gnuplot> unset ytics
gnuplot> if (32 > Ylow) set lif (32 > Ylow) set lif (32 > Ylow) set lif (32 > Ylow) set lif (32 > Ylow) sset y2tics format "%2.0f%%" nomirror
gnuplot> set y2range [0:100]
gnuplot>
gnuplot> plot dataFileForecast using 1:6 with impulses linestyle 4 axes x1y2,\
> dataFileForecast using 1:2 with filledcurves above y1=0 linestyle 5 axes x1y1,\
> dataFileForecast using 1:2 with points linestyle 2 axes x1y1,\
> dataFileForecast using 1:2:3 with labels offset 1.75,0.5 textcolor "#FFFFFF" font ",8" axes x1y1,\
> dataFileForecast using 1:4 with filledcurves above y1=0 linestyle 3 axes x1y1,\
> dataFileForecast using 1:4 with points linestyle 2 axes x1y1,\
> dataFileForecast using 1:4:5 with labels offset 1.75,0.5 textcolor "#FFFFFF" font ",8" axes x1y1,\
> freezeWarning with filledcurve above y1=0 linestyle 1 axes x1y1
^
colorspec option not recognized
gnuplot>
system('/opt/local/bin/gnuplot /Library/Application\ Support/Perceptive\ Automation/Indigo\ 6/Scripts/10DayForecast.gp')
ckeyes888 wrote:Thanks, but I don't feel very close Lost me in putting the commands into a file...a text file?
Carl
freezeWarning with filledcurves above y1=0 linestyle 1 axes x1y1
ckeyes888 wrote:Nuts, same result. The png is created but still has no data and won't open.
Thanks,
Carl
freezeWarning with lines linestyle 1 axes x1y1
Users browsing this forum: No registered users and 1 guest