gnuplot

How to add a greek character in png file created by gnuplot

我们两清 提交于 2019-12-19 10:00:11
问题 I am using a commercial sever with FreeBSD system without root account. I install gnuplot with my account. But, I can not set up fonts. So, I copy the fonts files in my home directory such as ~/usr/fonts Then, I use followed scripts in my gnuplot files: set term png enhanced font '/home/Tom/usr/fonts/truetype/msttcorefonts/verdana.ttf' set out 'xrd.png' set xlabel '2 {/Symbol q}'; set ylabel 'Count'; set xrange [:]; set yrange [:]; unset key; set border lw 1; plot './data.txt' using 1:2 with

Gnuplot image on axis

半世苍凉 提交于 2019-12-19 09:55:12
问题 I'm trying to model a certain progress through some environment. The x axis would represent the location (based on x coordinate) in the environment. In order to make this clear, I'd like an image of the environment (based on a .png) on the x axis (the environment is rather wide and not that high, so it should look good) of my plot, basically as an xtics/x-axis label. Do you have any suggestions on how to approach this? Thanks in advance! 回答1: You can either plot both the image and the data in

Octave plot from Qt C++ application

陌路散爱 提交于 2019-12-19 08:57:53
问题 I have a QT C++ application that runs the Octave program using QProcess. I am able to communicate with it by reading the standard output/error and writing to it's standard input using write method (for example: octave->write("5 + 5\n");). As I told you I get response from octave (from the above example I get "ans = 10"). However, when the command I write to Octave standard input has a "plot" (for example, a simple plot([1 2 3 4 5]);), the actual graphic is never shown. I know Octave runs

How to dump commands for current plot

ぐ巨炮叔叔 提交于 2019-12-19 08:30:15
问题 In interactive mode gnuplot remembers all the settings for the current plot. It knows what to do when I type 'replot'. So, is there a way to dump all of the current settings into a script file? 回答1: See the save command. You use it as follows: save "My_stuff_goes_to_this_file.txt" Here's a (small) excerpt from the docs: The save command saves user-defined functions, variables, the set term status, all set options, or all of these, plus the last plot ( splot ) command to the specified file.

Using gnuplot, how to 'cut out' usused y-axis regions of the graph

时光怂恿深爱的人放手 提交于 2019-12-19 07:38:14
问题 I am trying to plot a graph, where on the Y axis I have CPU Utilization, and the current range is from 0-100%. My data only consists from 0-20% and 80-100%, and I just have a large white gap from 20-80%. Is there any way to 'cut out' this blank space, so the viewer can see in more detail what is going on in the 0-20% and 80-100% ranges? Thank you. 回答1: As Christoph said in the comments this needs to be done manually using set multiplot and removing borders, etc. An example: set multiplot #

How do gnuplot margins work in multiplot mode?

限于喜欢 提交于 2019-12-19 05:52:50
问题 I am a bit confused about gnuplot margins. First of all I have no idea what units these things are pointing to. Are they pointing to the canvas coordinates OR are they a fraction of the canvas coordinates. Do they behave the same in gnuplot mode and multiplot mode? My problem arises when plotting some data in multiplot mode. I am plotting to the screen (wtx terminal). Let's just say I am bungling things badly - I get plots off the canvas, or very small unreadable plots. Without margins the

How do gnuplot margins work in multiplot mode?

女生的网名这么多〃 提交于 2019-12-19 05:52:06
问题 I am a bit confused about gnuplot margins. First of all I have no idea what units these things are pointing to. Are they pointing to the canvas coordinates OR are they a fraction of the canvas coordinates. Do they behave the same in gnuplot mode and multiplot mode? My problem arises when plotting some data in multiplot mode. I am plotting to the screen (wtx terminal). Let's just say I am bungling things badly - I get plots off the canvas, or very small unreadable plots. Without margins the

How to combine two box-whisker plots into one using gnuplot

浪子不回头ぞ 提交于 2019-12-19 04:47:29
问题 I have two box-whisker plots, one showing time, another memory usage. Please see below: Box-Whisker plot showing time usage: http://goo.gl/jhYBXr Box-Whisker plot showing memory usage: http://goo.gl/0Wvamh Is there anyway in gnuplot to combine these two into 1 graph? Ideally, I want two box-whisker plots per 'X' entry side-by-side. There will be two Y-axis - y1 showing time and y2 showing memory with different range. Thanks in advance. 回答1: As you haven't provided any example data, I used the

gnuplot generate plot command with sprintf?

风流意气都作罢 提交于 2019-12-19 04:14:40
问题 I want to generate a gnuplot plot command programmatically, like: plotline = sprintf("'datafile1.dat' using %d:3 with points, '%s' using %d:3 with points",i,targfile,i) plot plotline Where 'plotline' in the second line is expanded to produce and execute a full command like: plot 'datafile1.dat' using 8:3 with points, 'datafile2.dat' using 8:3 with points I want to do this in order to echo 'plotline' in the terminal and so be certain exactly what is being shown while cycling through a set of

Gnuplot smooth confidence interval lines as opposed to error bars

非 Y 不嫁゛ 提交于 2019-12-18 23:04:26
问题 I'd like a 95% confidence interval line above and below my data line - as opposed to vertical bars at each point. Is there a way that I can do this in gnuplot without plotting another line? Or do I need to plot another line and then label it appropriately? 回答1: You can use the filledcurves style to fill the region of 95% confidence. Consider the example data file data.dat with the content: # x y ylow yhigh 1 3 2.6 3.5 2 5 4 6 3 4 3.2 4.3 4 3.5 3.3 3.7 and plot this with the script set style