gnuplot

Exact meaning of dashtype index in the Gnuplot 5.0?

Deadly 提交于 2020-01-19 06:20:51
问题 I got a problem in Gnuplot 5.0, the dashtype index, such as ``set dashtype 1 (2,5,2,15)` in the manual. My question is: what do these numbers in parenthesis exactly mean? I tried to change them to get a feeling, but it would be great to know the exact meaning. My actual problem is, that simply using dashtype N , gives lines which look very different from the previous 4.6 version, unfortunately. I just try to reproduce the plots which were made in gnuplot 4.6. 回答1: Those are numerical pairs

gnuplot - Make a histogram with data located in multiple files

心已入冬 提交于 2020-01-17 12:39:07
问题 I know how to make a histogram in gnuplot, but all the instructions I've seen are valid when the data is located in a single file . My problem is that my data spans several files . Is there any way to do this with gnuplot ? 回答1: Not really. Gnuplot is really only good at dealing with one file at a time. However, there are many useful external tools which could combine the files together for you: plot "<magic_external_tool file1 file2 file3 file4 ..." ... of course your choice of external tool

gnuplot - Make a histogram with data located in multiple files

老子叫甜甜 提交于 2020-01-17 12:39:05
问题 I know how to make a histogram in gnuplot, but all the instructions I've seen are valid when the data is located in a single file . My problem is that my data spans several files . Is there any way to do this with gnuplot ? 回答1: Not really. Gnuplot is really only good at dealing with one file at a time. However, there are many useful external tools which could combine the files together for you: plot "<magic_external_tool file1 file2 file3 file4 ..." ... of course your choice of external tool

Gnuplot for Python 3

做~自己de王妃 提交于 2020-01-16 19:29:49
问题 I have a problem with python 3.2.3 and Gnuplot. I have installed gnuplot-4.6.1, it's going well with defaults demo, but an error occurs when i want to import the module in the python environnement. Traceback (most recent call last): File "<stdin>", line 1, in <module> ImportError: No module named Gnuplot I don't know what's wrong with python3 ps: before gnuplot-4.6.1, i had gnuplot1.8 and i used it for plot 回答1: I assume you need to install Gnuplot-py for your version of python. Since Gnuplot

plot 10 line sof 1000 values on gnuplot

▼魔方 西西 提交于 2020-01-16 18:21:29
问题 I have a data file with 10 lines with 1000 values each line and I'm trying to plot this values with this script #!/usr/bin/gnuplot -persist plot "data.dat" using [1:1000] title "" with lines but I get this error plot "data.dat" using [1:1000] title "" with lines ^ "./plot.sh", line 3: invalid expression How can I indiate a interval form the first value to the 1000 value?I't posible to set a diferent random clor to every line? 回答1: As @vaettchen pointed out, gnuplot wants data in columns and

How to ignore timezone in csv data

自作多情 提交于 2020-01-16 00:49:12
问题 I have some csv data I'm trying to plot in gnuplot. example: 1,2014-11-07T16:00:03+13:00 2,2014-11-07T15:55:03+13:00 3,2014-11-07T15:50:04+13:00 4,2014-11-07T15:45:03+13:00 5,2014-11-07T15:40:03+13:00 6,2014-11-07T15:35:03+13:00 This won't work set timefmt "%Y-%m-%dT%H:%M:%SZ" These are New Zealand dates which will change between +12:00 and +13:00 I realise that gnuplot doesn't play nice with timezones. I don't have the option to remove the zone at the source, so how do I set it to just

How to set the origin to O and remove the zero labels in Maxima draw?

元气小坏坏 提交于 2020-01-15 12:46:06
问题 The draw (2d) function in Maxima has several settings to control the axis, but as far as I can tell, none that hides the zero label of the xy-axis and to replace it with either a 0 or a O. Maybe that's possible to use with the option user_preamble? 回答1: You will need to set the xtics and ytics values explicitly, omitting the origin, and use label to label the origin. load(draw)$ draw2d( user_preamble="set zeroaxis linetype 5; set xtics axis; set ytics axis; set border 0;", xtics={-3, -2, -1,

start of X series

[亡魂溺海] 提交于 2020-01-15 10:59:12
问题 I would like to know how to set x axis to start drawing at the first point of data, instead of the first day of date-range?. (too bad I can't post pictures because I don't have the 10 points) 回答1: From your question it seems that you want to set the x-range in a time-series (this is a guess - it would help if you wrote the gnuplot code that you are using). You can do this like so: set xdata time set timefmt "%d/%m/%Y %H:%M:%S" set xrange["26/10/2010 13:00:00":"26/10/2010 14:00:00"] Notice

How to plot the surface of a sphere in gnuplot?

a 夏天 提交于 2020-01-15 10:36:44
问题 How do I plot a white spherical surface? In three dimensions, radius should be 1, center at the origin. I have scattered point data on the sphere. It is hard to look at it, since the points from the opposite end of the sphere are just as visible. Therefore I would like to create a white spherical "background" on top of which the data is clearly visible. Restricting the range of one coordinate axis to [0:1] is cumbersome since it cuts off half the points at which I also want to look. Tanks!

How to plot the surface of a sphere in gnuplot?

不想你离开。 提交于 2020-01-15 10:35:09
问题 How do I plot a white spherical surface? In three dimensions, radius should be 1, center at the origin. I have scattered point data on the sphere. It is hard to look at it, since the points from the opposite end of the sphere are just as visible. Therefore I would like to create a white spherical "background" on top of which the data is clearly visible. Restricting the range of one coordinate axis to [0:1] is cumbersome since it cuts off half the points at which I also want to look. Tanks!