gnuplot

gnuplot: making axes numbers smaller in epslatex makes my axes label disappear offscreen

大憨熊 提交于 2019-12-24 03:07:50
问题 I'm writing a script to generate three plots in a column (using multiplot and setting margins). They all share an x-axis, so it's only necessary to label that on the bottom plot, but they have separate y-axes. I'm using the epslatex terminal in gnuplot to generate the plots with latex labels and axes. Basically, I need the numbers on the axis to use a smaller font size than the actual axis labels. So far, I've been doing this using, reset set term epslatex standalone color solid 10 set output

How to set the horizontal distance between outliers in gnuplot boxplot

谁说胖子不能爱 提交于 2019-12-24 03:05:15
问题 So if i have plotted some data in gnuplot as a boxplot (set style data gnuplot), and I have outliers having the same value, then they are plotted as dots horizontally at the same place. How can I set that horizontal distance? So for example I have the datafile data.dat 1 1 1 1 1 1 1 1 1 1 1 1 9 9 and plot it using set style data boxplot plot 'data.dat' using (1):1 set yrange [0:10] How can I set then the distance between the two points at y=9? 回答1: No, you cannot change that distance, The

Cannot embed gnuplot x11 window into Gtk3 socket

风格不统一 提交于 2019-12-24 02:59:06
问题 I'm creating Gtk::Socket in my Gtk3 (actually, gtkmm) application and trying to embed gnuplot's window into it. But it does not work: the socket remains to stay as a black rectangle, while gnuplot window appears standalone elsewhere. Meanwhile, Gtk::Plug plugs into this socket perfectly. In Gtk2 this trick with gnuplot works well too. Here is socket.cpp #include <iostream> #include <fstream> #include <gtkmm.h> #include <gtkmm/socket.h> using namespace std; void plug_added(){ cout << "A plug

Plotting 3D surface from scatter points and a png on the same 3D graph

冷暖自知 提交于 2019-12-24 02:58:07
问题 I need to plot on the same graph a 3D surface based on a scatter points data and a 2D image (.png), positioned in a determined location on the graph to compare the data from both. So far I managed to do both separately (plotting the image and making the surface). However, when I try to bring both together on the same script, I get an error message ("Gridding of the color Column is not implemented") which occurs due to the command that creates the surface (dgrid3d) that conflicts with the

How to make sure my plots share same axis while using multiplot in gnuplot?

|▌冷眼眸甩不掉的悲伤 提交于 2019-12-24 02:47:11
问题 I use the following script to plot a matrix file file.dat and two points on the same plot. The problem is that my x and y axis do not overlap for the two different plots. set multiplot set pm3d map splot 'file.dat' matrix unset pm3d plot '-' w p > 20, 10 > 30, 40 > e unset multiplot 回答1: Try nonuniform matrix instead of splot and pm3d map : set multiplot set size 1,1 unset colorbox plot[0:3][0:2] '-' nonuniform matrix with image 12 0 1 2 3 0 5 4 8 9 1 6 4 7 8 2 5 6 2 4 e e set size 1,1 plot[0

gnuplot: yerrorbars with linecolor variable

怎甘沉沦 提交于 2019-12-24 01:58:21
问题 I want to draw yerrorbars with different colors. I am able to draw points with different colors using the following code: reset plot "-" using 1:2:3 with points linecolor variable # x y linecolor -4.0 -3.8 1 -3.0 -2.9 1 -2.0 -2.1 2 -1.0 -1.2 1 1.0 1.1 1 2.0 2.2 2 3.0 3.3 3 4.0 4.5 3 end But I am not sure how to extend this to yerrrorbars . When I try and use the following code, the errorbars are colored only with default color. How do I color the errorbars with a specific color? reset plot "-

Plotting datafile with abbreviated values with gnuplot

点点圈 提交于 2019-12-24 00:49:58
问题 I have a gnuplot datafile that looks like this: 1 4810 582 573 587 2 99k 67k 56k 40k 3 119k 82k 68k 49k 4 119k 81k 68k 49k 5 120k 81k 65k 45k 6 121k 82k 65k 44k 7 124k 106k 97k 86k 8 128k 134k 131k 131k 9 128k 130k 131k 135k 10 129k 133k 130k 132k First column will be on the X-axis labeled as "Time", the rest are the different interrupt values with respect to time (i.e. IRQ1, IRQ2, IRQ3, IRQ4) The problem when generating a plot with this is that gnuplot does not seem to interpret the

Gnuplot: connecting two data with line at a certain point

别来无恙 提交于 2019-12-24 00:30:02
问题 I want a graph using gnuplot with two data in mixed scheme. This is a data consisting of 3 columns: x y1 y2 1 0 1 2 0 1 3 0 1 4 0 1 5 0 1 6 0 1 7 0 1 8 0 1 9 0.1 1.2 10 0.1 1.23 What I want is that one line draws without seam. e.g. From x=1 to x=5, use y1 value, then from x=6 to x=10 use y2 value. And, all the points are connected with one single line. Does any body know how to make it with simple gnuplot command? 回答1: Prue Gnuplot soulution: plot 'sheme.dat' u 1:($1<=5?$2:$3) w l If you want

How to make dashed grid lines intersect making crosshairs in gnuplot?

空扰寡人 提交于 2019-12-24 00:29:16
问题 I'm plotting some data and I want to use dashed grid lines. Any dashed grid line would suffice, but I prefer a "long dash, short dash, long dash" format. For example, given the following code set grid lc rgb "#000000" lt 1 dt (50, 25, 20, 25) plot x**2 I get this result But I would rather the grid lines intersection to happen always at the middle of two dashes, like this If I could make horizontal grid lines different to vertical grid lines and I could add some offset to each one, then I'd

How is @ produced in gnuplot?

痴心易碎 提交于 2019-12-23 23:24:09
问题 I'm trying to put as the title of a plot "P@10" using GnuPlot, using the Helvetica font. What I did was this: set encoding iso_8859_1 set title "P \100 10" The \100 comes from the octal representation of the at symbol in unicode. The final plot, however, replaces the @ with a simple space. Other symbols work as expected. I also tried the matlab script provided here, to look for the @ symbol in at least 4000 different codes, but I couldn't find it. Is this possible, even with another font?