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

learn more… | top users | synonyms

52
votes
7answers
22k views

How to draw Venn diagrams (especially: complements) in LaTeX

What I am up to is to write some exercises dealing with logical formulas for my students, like: And the students should draw these formulas on Venn diagrams. At the end of the lesson, I really ...
18
votes
4answers
4k views

Fill the area between two curves calculated by pgfplots

This is essentially the same question as fill the area between two curves when their coordinates are known. In that question, the curves were defined by known coordinates. I want to fill the area ...
9
votes
1answer
5k views

Gnuplot and PDFLatex question

I'm trying to use Gnuplot and package gnuplottex to create plots directly in LaTeX. Started with the following simple example \documentclass[a4paper]{article} \usepackage[shell]{gnuplottex} ...
12
votes
1answer
3k views

Non-linear curve fitting with gnuplot

I am trying to use gnuplot with pgfplots in TexShop, following on from an example by Martin H in the comments here. I can get the data points in OK, and plot them but the fit (red line) does not seem ...
9
votes
2answers
5k views

adding gnuplot capability to latex

I have been working with LaTeX, under TeXMaker (latest version 3.2.2) for several months, and recently added PGF/TikZ capability. On that occasion I feared there would be problems as I really have ...
11
votes
1answer
1k views

Consistently specify a Function and use it for computation and plotting

I would like to be able to specify a mathematical function and be able to use that for multiple purposes including: Computation of values (see bullet points below) Graphing using pgfplot Graphing ...
12
votes
1answer
2k views

Adding values to pgfplot legend

As a follow-up to my earlier question (here), here is a question that is perhaps a little more latex than gnuplot. having used gnuplot and pgfplots to generate a fitted curve, is there an easy way to ...
9
votes
3answers
1k views

How to use GNU Plot to plot diagrams in TexShop

hope anyone can help with this... I have a very basic knowledge of TeXShop, but I need to plot some functions on it, say y=x. I learnt that this can be done by installing GNU Plot and writing in ...
5
votes
3answers
2k views

Gnuplottex basic example fails with 'undefined control sequence'

I'm using latest TeXLive on Linux, and have gnuplot installed. I have also installed gnuplottex package. Then, I'm trying to compile the basic gnuplottex CTAN example, example-pdf.tex; however, I ...
8
votes
2answers
927 views

How to use the results of `raw output` to create a smooth plot

As by my previous question on plotting an implicit curve I've got some output. But as you can see it is not quite what it should be (apart from your browser's downscaling by a factor 2 of course. ...
2
votes
1answer
671 views

Consistently specify function to be graphed with or without gnuplot

I would like to be able to specify a function and then graph that with with pgfplot only, or use gnuplot to compute the coordinates. As far as I know there are two main differences in how the ...
2
votes
1answer
1k views

Use unicode font for cyrillic in gnuplot

Why I need to do this? I'n writting my diploma in laTeX and almost finish them, but I want to use in graph labels and legend the same font that LateX uses. As I know, the default LaTeX font in CM, so ...
8
votes
2answers
1k views

pgfplots: post-processing data created with gnuplot

I have managed to use pgfplots' gnuplot option to solve an implicit equation: \documentclass{standalone} \usepackage{tikz,pgfplots} \begin{document} \begin{tikzpicture} \begin{loglogaxis}[ ...
5
votes
2answers
771 views

bodegraph on Ubuntu 10.04

I have been trying to get the tex package bodegraph working on my Ubuntu 10.04 machine. First off since Ubuntu ships with Texlive 2009 I had to uninstall the default version and manually install ...
3
votes
1answer
953 views

Gnuplot subdirectory not found using epstopdf

I'm moving from the gnuplot latex terminal, to the epslatex terminal. I use pdflatex. With the epslatex terminal, I receive two output files, a .tex and a .eps. I can use epstopdf to convert the eps ...
10
votes
2answers
658 views

plot 3d graphs of functions defined implicitly

How can I plot 3d graphs of functions defined implicitly (quadratic forms, for Linear Algebra course notes -- I'd like to include lots of examples)? As far as I can see it is not possible with ...
5
votes
2answers
744 views

How can I plot bigger amounts of data?

I am currently playing around with hailstone sequences (collatz numbers). I would like to create a plot like this (from Wikipedia): But I don't know how this kind of plot is called (it's neither a ...
13
votes
1answer
2k views

Plotting an implicit function using pgfplots

What is the correct way to plot an implicit function using pgfplots? Consider the following example: \documentclass{standalone} \usepackage{pgfplots} \pgfplotsset{compat=newest} \begin{document} ...
10
votes
1answer
2k views

gnuplot in LaTeX, without gnuplottex

I'm using the cairolatex terminal in gnuplot to create some surface plots (pgfplots is failing the task because of its hunger for memory). As the number of plots increase, I would like to include the ...
7
votes
3answers
590 views

pgfplots: 3D surface plot from data with free format

I want to plot 3D data from a file (data file) using pgfplots. The data represents an ellipsoid. I want to draw the outer shell like in the following picture, just without the background and in ...
7
votes
3answers
3k views

Easiest way to plot matrix image

Is there an easier way to create this in pgfplots than plotting the matrix image externally and using addplot graphics (as on p.42 of the pgfplots manual)? A mesh plot (as suggested for plotting ...
13
votes
2answers
2k views

Big data surface plots: Call gnuplot from tikz to generate bitmap and include automatically?

Motivation I have large numerical data files, that I would like to create density (surface) plots of. Since they are very big, we can rule out a few possibilities such as to plot them directly with ...
6
votes
2answers
477 views

Plot basic complex transformation in LaTeX

I want to first draw a shaded region on a xy-plane: 0≤x 0≤y≤π and then the image of the above region mapped onto a uv-plane by the transformation f=exp(z), i.e. the shaded region: ...
5
votes
2answers
9k views

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
votes
1answer
463 views

pgfplots with gnuplot

I got a problem with latex implementing a gnuplot code. I use PdfLatex with argument "--enable-write18". The following code should works with the first commented-out line %plot 'data.dat' u 1:2;, but ...
7
votes
2answers
615 views

Is there a combination of LaTeX gnuplot flowchart?

I know this is not always a good idea, but I think it might be a good idea in some situation. Is there an improved LaTeX version or something, can have the gnuplot scripts inside of the LaTeX file, ...
5
votes
2answers
660 views

Help with installing gnuplot in MacTex and using it with LaTeX

I have to draw a lot of PDF and CDF graphs in my document/presentation and in order to do that I installed gnuplot. In order to install gnuplot I took the following steps: 1- Download the sources ...
3
votes
1answer
196 views

PGFplots and GNUplot with addplot3

I am trying to plot the following: \documentclass[tikz, convert = false]{standalone} \usepackage{pgfplots} \pgfplotsset{compat = 1.9} \begin{document} \begin{tikzpicture} \begin{axis}[view = ...
3
votes
0answers
231 views

Using pgfplots and gnuplot and compiling with output-directory

I would like to use the pgfplots package along with gnuplot. However, I cannot get this to work if I compile using the -output-directory option. For example, if I have the following MWE: ...
17
votes
1answer
1k views

Tikz for large files

I have a question regarding the use of TikZ. I have five large sets of data (15000 points) and I want to use TikZ to plot my data, but obviously the amount of memory isn't sufficient. Can anyone give ...
4
votes
1answer
2k views

TikZ + gnuplot on a Mac

I'm using LaTeX a lot in my work and I switched to Mac recently. I installed TeX Live and everything works fine, except for plotting a figure with gnuplot. I installed gnuplot 4.4.3 first simply in ...
3
votes
2answers
783 views

Color with gnuplot generated TikZ file not working (other TikZ has color)

I have generated a tikz .tex file from gnuplot and I am attempting to simply \include{mytikzfile} in my main .tex file, which uses the revtex4-1 document class. Upon compiling I get a number of errors ...
2
votes
1answer
714 views

Two color line in gnuplot

Is there any way to plot a line graph where each series is plotted with two alternating colors? For example, say I was plotting the population of bees over time and I wanted the line to alternate ...
6
votes
1answer
669 views

Improve pfgplots precision with gnuplot

I have measured the execution time of two algorithms (a naive, and an optimized one), and I would like to display measured data with pgfplots plus a trend line for the naive algorithm. I have used ...
6
votes
2answers
869 views

How to set what appears as a title in a document viewer menu bar?

This is a tricky question. Say I generate an image in gnuplot using the pslatex terminal: gnuplot<plot.plt latex dummy.tex dvips -E -oimage.eps dummy where 'plot.plt' contains: set term ...
4
votes
1answer
98 views

convert gnuplot script to pgfplots using “raw gnuplot” option

I'm trying to rebuild a plot from "standalone" gnuplot with pgfplots using the raw gnuplot option. This is the gnuplot code which generates the desired graph: #!/usr/bin/env gnuplot set xlabel "Time ...
4
votes
2answers
180 views

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 ...
4
votes
2answers
2k views

Install Gnuplot on Mac OS-X 10.8.2 for use with 'tkz-fct' package

I have recently discovered the TikZ packages for LaTeX: http://altermundus.com/pages/tkz/index.html I have run the examples for tkz-euclide with success. I would also like to use the tkz-fct ...
4
votes
1answer
911 views

Strange problem with pgf/tikz auxlock file when invoking tikzexternalize

I'm trying to generate a number of somewhat complicated TikZ based plots using gnuplot's lua/tikz terminal. Things had been working fine last month, but when I needed to update some of these plots ...
4
votes
3answers
833 views

Incorrect plot with pgfplots and gnuplot

I'm attempting to plot atanh(x) although there seems to be a giant straight line linking the top and bottom points. Am I doing something wrong? \documentclass{standalone} \usepackage{pgfplots} ...
4
votes
1answer
1k views

Generating graphs with gnuplot (Gnuplot, LaTeX and tkz-fct)

I can not generate the chart below using gnuplot. How do I do this in TeXLive 2011? What are the commands? I wanted to use pdflatex, but can this also be done with latex. In my tests this did not ...
2
votes
1answer
1k views

gnuplot and TexnicCenter setup

I just downloaded and ran the gnuplot setup exe. Now, how do I setup TeXnicCenter and gnuplot so I can use gnuplot with TikZ? So I have been able to add --enable-write18 but the inverted cycloid ...
2
votes
0answers
541 views

ps2pdf produces unreadable text with gnuplot epslatex terminal [closed]

I'm using the gnuplot epslatex terminal to generate LaTeX files which I then convert to .pdf files using latex→dvips→ps2pdf. The .ps file produced by dvips is fine (the first image). However, once I ...
2
votes
1answer
2k views

Gnuplot epslatex terminal not showing axis text

The following minimal example shows how I make a plot using gnuplot to the "epslatex" terminal and want to include it in my document. However, the axis texsts do not show.. What might be wrong? ...
0
votes
2answers
1k views

How to use Gnuplots .eps and .tex files at all with pdflatex

I tried to make a plot with data from a .txt file. The part with gnuplot works, but bringing the diagramm to Latex is frustrating. That's what I do: -- GNUPLOT -- set terminal epslatex size ...