# Tagged Questions

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

39k 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 ...
8k 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 ...
8k 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} \begin{...
2k 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 ...
5k 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 ...
3k 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 ...
9k 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 ...
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 ...
2k 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 ...
2k 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 ...
684 views

### Plot a transfer function in latex

I wanted to know how I can go about plotting a simple bode magnitude transfer function in LaTeX. This is the function that I would like to have the Magnitude response plotted: Be aware that the ...
1k 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 ...
1k 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. ...
7k 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 ...
2k 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 ...
3k 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} \...
4k 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 ...
3k 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 ...
6k views

### How do I change the aspect ratio of gnuplot output?

How do I change the aspect ratio of the canvas of a gnuplot plot in LaTeX using the gnuplottex package? The following changes the aspect ratio of the output but not the canvas size, thus leaving a ...
1k views

### pgfplots contour example error

I'm reproducing the following example from pgfplots manual. \begin{tikzpicture} \begin{axis}[view={0}{90}] \addplot3[contour gnuplot] {x*y}; \end{axis} \end{tikzpicture} But this code produces the ...
883 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 ...
2k 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}[ ...
2k views

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 ...
12k views

### How to graph a function using TikZ?

I want to plot this function with a big range says, (-10,000:10,000), unfortunately I couldn't figure out how to set the domain, or xrange correctly to scale the graph nicely. This is what I have so ...
26k 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 [-...
700 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: exp(0)...
110 views

### How to incorporate a TEXMF tree managed by distro's package manager when using TeX Live from upstream on a GNU/Linux system?

I am using upstream's TeX Live on a GNU/Linux system with default paths except for the use of symbolic links to facilitate switching between different versions of TL. So, for example, TEXMFMAIN is /...
1k 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 ...
408 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: \...
678 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 ...
491 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 = {70}{...
2k 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 ...
835 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, ...
406 views

### output-directory and shell commands

Let's use a small example to use gnuplot to draw a nice function using tikz. \documentclass{standalone} \usepackage{tikz} \begin{document} \begin{tikzpicture} \draw plot[domain=-3:3,samples=100] ...
6k views

### Using gnuplot in tikzpicture environment using pgf-package

IÂ´m trying to use gnuplot in the tikzpicture environment with the pgf package. Example \documentclass[paper=a4,12pt,version=last]{scrartcl} \usepackage[miktex]{gnuplottex} \usepackage{pgfplots} \...
2k 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 ...
694 views

### Reversing a path in TikZ

When I use \path plot function {x^2}; in tikz, it plots it left-to-right (the default domain is -5:5). This is annoying, because, for example, one cannot pile on -- plot function {x^2 + 1} -- cycle; ...
2k views

### How to plot smoothly an implicit function using gnuplot and tikz-pgf?

I would like to plot implicit functions in Latex with tikz and gnuplot. A minimal example of my code is given by: \documentclass{article} \usepackage{tikz} \begin{document} \begin{tikzpicture}[...
3k 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 ...
924 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 ...
2k 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 ...
422 views

### TikZ, PGFPlots, or GNUplot: plotting a curve without the known function

I would like to make a plot of a function that has an overshoot of 25% and then settles with subtle oscillations at 100%. I would like to create it in one of the listed packages or in gnus case add ...
2k 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 10cm,5....
947 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 ...
3k views

### Shell-escape in Texmaker

This is a frequently asked question but none I have seen actually helped me. My problem is that I installed gnuplot 5 and I have not been able to make it work in the TeXWorks. The figure I have been ...
100 views

### Bodegraph - Plotting higher order transfer function

I need help plotting a higher order transfer function using the package bodegraph. The transfer function is mind is the following: Seing as bodegraph has no way of inputting a higher order than 2 ...
1k 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 ...
845 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 ...