Questions tagged [gnuplot]

{gnuplot} Gnuplot is a portable command-line driven graphing utility for Linux, OS/2, MS Windows, macOS, VMS, and many other platforms.

The program runs on all major computers and operating systems (GNU/Linux, Unix, Microsoft Windows, macOS and others). It is a program with a fairly long history, dating back to 1986. This software is not distributed under the GPL license, opting for its own open source license instead.

Questions should address issues about interaction between gnuplot and TeX/LaTeX.

476 questions
18
votes
2 answers

How can add some latex eq or symbol in gnuplot?

Gnuplot is power for plotting graph in scientific progress. I have met this problem. I want to add some commands like "$\ddot{x}$". or $\tau$ on the legend. I see some people suggest that plot [-5:5] [-1.5:1.5] sin(x+pi) title…
15
votes
2 answers

GnuplotTex: automatic plotting and vertical line indication

I am using pdflatex with the gnuplottex package, to plot a function with a local maximum; I'd like to find this maximum automatically and label it. For the most part, I'm already there (using the special "pseudo" file '+' in gnuplot >4.4), apart…
sdaau
  • 17,079
14
votes
1 answer

Gnuplot and PDFLatex question

I'm trying to use Gnuplot and package gnuplottex to create plots directly in LaTeX. Started with the following simple…
ant
  • 143
11
votes
1 answer

GNUplot and LaTeX (linestyles)

I've just started using GNUplot to create graphs. I've been using the epslatex terminal and my issue is, when I create my graph in the wxt terminal, and then replot it in the epslatex terminal, the linestyle changes, even if I never explicitly…
user968243
  • 869
  • 2
  • 12
  • 20
7
votes
1 answer

How to make labels of x-axis texts vertically for gnuplot

I tried plot [][1:3] 'word-based.txt' using 1:xtic(2) with line it draws the required graph but with horizontal direction of x-axis labels which is texts as shown in picture. How to make its direction vertically so i can be read more…
khaled
  • 1,435
5
votes
1 answer

Gnuplot terminal

Today I face the problem of writing a big article and I need my plots to look very nice and neat. I've looked into gnuplot documentation and was horrified: there are many different terminals with tons of options. I always use epslatex with only size…
5
votes
2 answers

Problem with axes and implicit plot : Shift enters the drawing of the axes and the implicit function

Observing this LaTeX example: I draw, with the gnuplot environment, one implicit curve (conic), a horizontal line and a vertical line (axes through the origin). I do not understand the result: the implicit fonction and also straight lines are not…
DK06100
  • 471
5
votes
2 answers

Figure caption is way too low (using LaTeX file images)

I'm uploading an image I created with gnuplot on to my document using; \begin{figure}[tbp] \begin{center} \input{plot.tex} \caption{Graph caption} \label{fig4} \end{center} \end{figure} The problem is it looks…
4
votes
1 answer

Line type not working!

I've been having a problem with compiling gnuplot where it ignores what line type I put in and just assumes lt 1. Here's an example .sh file: set term wxt enhanced "arial,16" set notitle set xlabel "x" set ylabel "y" set size square …
TheNthVector
  • 43
  • 1
  • 1
  • 4
4
votes
1 answer

Importing Colored Graphics from Gnuplot to LaTeX

I have five data files each containing separate data. I have plotted them in Gnuplot and superimposed them; at this point I would like to emphasize that Gnuplot automatically chooses different color in printing. After this I set the output of…
Vesnog
  • 1,307
  • 2
  • 15
  • 30
4
votes
1 answer

LaTex variable inside gnuplot code

I just started using gnuplot code inside my latex document and I just ran into a problem I could not solve after some googling (hit me if I did not google hard enough). I use the gnuplottex package. The thing I want to do is multiple plots in my…
3
votes
2 answers

Why is gnuplot using a straight-line approximation in this plot?

I am plotting a fairly simple function over a specific range. The function is just f(x) = 0.12 * sqrt(x). Here's my gnuplot "code" so far: set border linewidth 1.5 set style line 1 linecolor rgb '#0060ad' linetype 1 linewidth 2 set xrange…
Aurelius
  • 133
3
votes
1 answer

How can I plot directly on the pdf output without having to use the terminal to run gnuplot?

I have been trying to make LaTeX plot directly as it compiles the pdf but it always turns out to require me to go to the terminal and process the .gnuplot file that the compilation produces, which is horribly time-consuming. Is there anyway of…
TMG
  • 31
3
votes
1 answer

Problems with Gnuplot

I am a begineer in LaTex and absoulte novice in gnuplot. I am using Texstudio and Windows 8.1. The problem is - I cannot make LaTex display a simple image. Probably some settings issue. In paricular, I took the simplest gnuplot code from the web…
Marko
  • 41
3
votes
1 answer

Truncated text in resized gnuplot LaTeX output

I have a recurring issue when generating latex documents from gnuplot as soon as I specify a set size n,m where n or m is greater than one. Here are the minimal codes producing the issue: Gnuplot instructions set terminal latex set output…
1
2 3