User Tools

Site Tools


data-analysis

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
data-analysis [2024/01/14 09:19] – [GnuPlot] Use autotitle columnhead dblumedata-analysis [2024/01/15 09:06] (current) – [GnuPlot] dblume
Line 59: Line 59:
 set xdata time set xdata time
 set xlabel 'Date' set xlabel 'Date'
-set ylabel 'Value'+set xtics "1992-01-01", 2629746  # start, increment in seconds 
 +#set ylabel 'Value'
  
 # #
Line 84: Line 85:
 #plot f using 1:2 with lines, f using 1:3 with linespoints title 'Legend 2' #plot f using 1:2 with lines, f using 1:3 with linespoints title 'Legend 2'
 plot f using 1:2 with linespoints plot f using 1:2 with linespoints
 +</file>
 +
 +If you're making a "histogram" (actually a box chart with histogram style on X,Y points)...
 +<file bash gnuplot_instructions.gpi>
 +# Mostly the same as above, until...
 +
 +# Set your X axis format
 +set style histogram clustered gap 1
 +set style fill solid border -1
 +
 +# Finally, plot with boxes
 +plot f using 1:2 with boxes
 </file> </file>
  
Line 174: Line 187:
 700 +-------------------------------------------------------------------------------+ 700 +-------------------------------------------------------------------------------+
     |      +          +      +          +      +          +      +          |     |      +          +      +          +      +          +      +          |
-    |                                                    Airline Passengers ******* |+    |                                                           #Passengers ******* |
     |                                                                            *  |     |                                                                            *  |
 600 |-+                                                                          *+-| 600 |-+                                                                          *+-|
data-analysis.1705252752.txt.gz · Last modified: 2024/01/14 09:19 by dblume