gnuplot stdin, how to plot two lines?

The “-” is used to specify that the data follows the plot command. So if you use it, you’ll need to do something like: echo “set datafile separator \”,\”; plot ‘-‘ using 1:2 with lines, ” using 1:3 with lines;” | cat – datafile.dat | gnuplot -p (Quoting above probably needs to be escaped). What’re … Read more

Plotting labeled intervals in matplotlib/gnuplot

Updated: Now includes handling the data sample and uses mpl dates functionality. import matplotlib.pyplot as plt from matplotlib.dates import DateFormatter, MinuteLocator, SecondLocator import numpy as np from StringIO import StringIO import datetime as dt ### The example data a=StringIO(“””a 10:15:22 10:15:30 OK b 10:15:23 10:15:28 OK c 10:16:00 10:17:10 FAILED b 10:16:30 10:16:50 OK “””) … Read more

Line plot in GnuPlot where line color is a third column in my data file?

This following works for me (gnuplot 4.4) plot “./file.dat” u 1:2:3 with lines palette Hope this helps. When I ran your code gnuplot couldn’t pass the “rgb” part. For an example of using the variable tag see the similar question: GNUPLOT: dot plot with data depending dot size with the useful examples found here: http://gnuplot.sourceforge.net/demo/pointsize.html … Read more

gnuplot – adjust size of key/legend

To adjust the length of the samples: set key samplen X (default is 4) To adjust the vertical spacing of the samples: set key spacing X (default is 1.25) and (for completeness), to adjust the fontsize: set key font “<face>,<size>” (default depends on the terminal) And of course, all these can be combined into one … Read more

How do I plot list of tuples?

If I get your question correctly, you could do something like this. >>> import matplotlib.pyplot as plt >>> testList =[(0, 6.0705199999997801e-08), (1, 2.1015700100300739e-08), (2, 7.6280656623374823e-09), (3, 5.7348209304555086e-09), (4, 3.6812203579604238e-09), (5, 4.1572516753310418e-09)] >>> from math import log >>> testList2 = [(elem1, log(elem2)) for elem1, elem2 in testList] >>> testList2 [(0, -16.617236475334405), (1, -17.67799605473062), (2, -18.691431541177973), (3, … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)