{plot} is for questions concerned with plotting data or functions using TeX. For questions specific to the pgfplots package, use the {pgfplots} tag.

learn more… | top users | synonyms

1
vote
1answer
36 views

Horizontal bar chart with different colors for each bar

I want to create a horizontal bar chart with different labels on the y-axis for each bar. Also, the value should be displayed on the right-hand side of each bar. Fx: "Test A" ... red bar ... 400 "...
1
vote
0answers
26 views

PGF Plot: Different Graphs/Plots in one file

I want to plot my benchmark results from Celero (C++ benchmarking library) in latex, via PGF Plot: I get a csv file with all data in the form of (here with example data): Now I want to plot the ...
0
votes
1answer
48 views

Layout of bar charts in Latex

I created a bar chart, but it does not look good: Problems: the values above the bars does not look good. I want to have it on top of the bars and with slightly smaller font size. 2. The lay-out ...
3
votes
1answer
49 views

Pgfplots with GNUplot - data from CSV file - Current plot has no coordinates

I have a following code: \documentclass[a4paper, landscape]{article} \usepackage{amsmath} \usepackage{pgfplots} \usepackage{graphicx} \usepackage{underscore} \usepackage{adjustbox} \usepackage{...
2
votes
1answer
31 views

Pgfplots - large plot - TeX capacity exceeded

I have a following code, which is supposed to generate some output and one large plot from the file data5.csv: \documentclass[a4paper, landscape]{article} \usepackage{amsmath} \usepackage{pgfplots} \...
1
vote
0answers
117 views

Draw qualitative plot

I use LaTex regularly, but I'm new to the whole drawing thing. I'm writing my thesis about neural networks, and to illustrate a spike I want to plot something like this: In this case I'm not ...
1
vote
0answers
40 views

center plot function with tikzpicture

I've to plot this function: y=-0.002822*x^2 + 1.456*x - 89.314 in the x domain between 75 and 200, and y domain between 0 to 100. If I use \begin{tikzpicture} \begin{axis}[xmin=75,ymin=0] \addplot[]...
3
votes
1answer
53 views

Pgfplots - automatically distinguish multiple plots in one figure

I'm writing some app, which generates a TeX code. My program creates variable number of plots and I'd like to use visualize them using pgfplots. In the old version of this app (not created by me), ...
8
votes
1answer
74 views

How to skip a ticklabel on a tkzAxe?

The picture below shows my problem: I want to skip the "2" on the x_2-axis. How can I do that? Here's the corresponding code: \documentclass[11pt,a4paper]{article} \usepackage{tkz-euclide} \...
3
votes
1answer
43 views

Adding axes labels to LaTeX figures

I have almost managed, With this code: \begin{figure}[htb] \hspace*{-5cm} \begin{minipage}{0.5cm} \rotatebox{90}{\textcolor{red}{$y$-axis label}} \end{minipage}% \begin{minipage}{\dimexpr\linewidth-...
0
votes
0answers
20 views

Pgfplots with gnuplot - list of coordinates, not file

I want to do a simple graph, where its points will be assigned by a list (NOT a file) of coordinates. So, I know, that I can do something like this: \addplot gnuplot [raw gnuplot, color=blue]{plot "...
4
votes
1answer
71 views

Dimensions too large on plot

I'm trying to plot a Gauss function/normal distribution, based on the answer to this question, however my domain is 0:10000 and the sample size is 95. This is resulting on the following error: ...
5
votes
1answer
191 views

How to improve visibility of a black and white plot?

I'm plotting information from 10 sets in the same plot. The result is very messy since the lines for each game intersect and overlap with each other, and the width of the final image is small. Here's ...
1
vote
1answer
102 views

I wont to draw this plot, how can I draw it? [closed]

I need exactly this curve in LaTeX:
3
votes
2answers
127 views

How to use Tikz/Pgfplots to plot an algebraic curve on a restricted domain?

I want to plot for example equation y^2 x + x^3-3y^2-2x^2+x=0. But at the same time I need to gray out some parts of the plane (see shaded area). Is there a way to do this?
2
votes
1answer
58 views

Use the tikz package to plot two overlapping, semi-transparent circles with labels

I need to produce something similar to this with latex I am not familiar at all with the tikz package. However I was able to find a code that I think could be adapted to fit with my needs: \begin{...
9
votes
1answer
135 views

TikZ — joining a plot and a line segment

Is there a way to join a plot and a line segment in TikZ? Here is a shape I'm trying to draw: I almost happy with the result, but there is a gap between the plotted segment and the rest of the ...
2
votes
0answers
29 views

Making a plot of a sumfunction

I want to make plots for different values of k of this function: $\mathbb{P}[A=n] = \frac{1}{k} \cdot \sum_{l=0}^{n} \frac{l^{n-1} (k-1)^{n-l}}{e^{kl} \cdot l!(n-l)!}$ Can anyone help me? Best, ...
1
vote
1answer
45 views

pgfplot: plot non-numerical data from CSV file [duplicate]

I have a csv file like: column1,column2 string1,value1 string2,value2 … Values are integers, strings are alphanumeric. I tried to plot it, with strings on x axis and values on y axis. After some ...
1
vote
1answer
55 views

PgfPlots - Plot semilogx of a matched filter

I tried to plot a frequency response of a matched filter, which its response defined by: H(f) = Since x (=f) runs from very big negative value to very big positive value, and y (=H(f)) runs only ...
4
votes
1answer
108 views

Financial graph LaTex style

I am used to work with LaTex, but I am totally stuck trying to plot the following graph and include it in my paper using a LaTex layout. Here below I am also reporting the dataset (markdown does ...
7
votes
0answers
65 views

pgfplot error with mathematical equation [duplicate]

I'm new to this site and I'm searching for the help. I'm trying to plot an adsorption isotherm described with specific equation. I used pgfplots package with following commands: \documentclass{...
2
votes
1answer
51 views

Macro for pictures with generated labels

Good day, I would like to write a macro (using Latex3/expl3) that posts pictures and can take several key-value parameters for generated labels/captions etc. I already found code that can do this, ...
1
vote
0answers
62 views

Plotting Heat Map - problem

I'm trying to plot a heat map with this data. I expected to create a heat map like the one given in the answer of this. (Although my plot will be only a quarter of it 0 to 90 degrees). But when I run ...
7
votes
1answer
111 views

Strange behavior of abs(x) in PGF Plots

I have the following code: \begin{tikzpicture} \begin{axis} [ axis lines = {center}, width = {0.6\linewidth}, ylabel = {$y$}, xlabel = {$x$}, ytick ...
2
votes
1answer
41 views

Can't properly fill area below my function

I can't figure how to properly fill the area below my function (between f and 0) with TikZ. Here is my code: \begin{center} \begin{tikzpicture} \begin{axis}[ axis lines=left, scaled ticks=false,...
1
vote
0answers
11 views

surface plot — end points get connect connected (tikzpicture) [duplicate]

It's the first time I'm asking a question here, but I've been using this side a lot on my way to get my head around Latex. I am currently working on something which I can't seem to figure out: I am ...
1
vote
1answer
87 views

Graph with multiple Y axes

How do I create a graph multiple Y axes(more than 2) stacked one over the other with a common X axis? See attached figure. Each zero in y direction represents the beginning of new y axis.
4
votes
1answer
43 views

Monetary Values on tikzpicture axis

How can I get the following; (a) The euro sign in front of each axis label. (b) Every number to two decimal places, so 145.50 appears as 145.50 rather than 14.5 \documentclass[12pt]{article} \...
1
vote
0answers
23 views

error function graph [duplicate]

Is there a simple way to plot the error function in latex? Something like the graph shown in the wikipedia page would be great. The function doesn't seem to exist in pgfmath. https://en.wikipedia.org/...
5
votes
1answer
92 views

tikz 3d graph with circular domain

I have got a pretty simple function to make a 3D graph of. The function is defined as: Plotting this was not that much of a problem with the follwing code: \documentclass[border=10pt]{standalone} \...
3
votes
1answer
66 views

Coding brachistochrone curve in Metapost

I need a picture like this one (without vector s, start and end) in metapost. The blue curve is an inverted cycloid, the green one is an arc of circle. I have no idea how to do it, so any kind of help ...
0
votes
1answer
104 views

How can I plot a graph in beamer step by step

I want to plot this graph in beamer and I don't know how! I want plot step by step this graph.. Step 1: Step 2: Step 3: Step 4: I write this follow \documentclass{beamer} \usepackage{tikz}...
2
votes
1answer
98 views

Color correspondance in tikz and pyplot

I draw a graph with pyplot, which I save in pdf format. I then want to draw a line with the same color in tikz, however colors mismatch. I get this result: I create my graph with: #!/usr/bin/env ...
2
votes
1answer
31 views

Graph is plotted wrong with pgfplots

currently trying to make a graph with the forumla 0.5+(2x/3) but it does not seem to be correct? This is the code I am using (sorry if it looks bad :D) \begin{tikzpicture} \begin{axis}[ ...
4
votes
2answers
67 views

Plotting a recursive defined set of functions with conditional base function

I'm trying to visualize the construction of B-Spline functions by showing step by step how the curve is created. This involves painting curves similar to these: The function that creates the curve, ...
1
vote
0answers
72 views

How to explain the intuition of distributional moments using a figure [closed]

I want to create figures to explain the meaning of the (first four) moments of a distribution (with this I mean: Mean, Variance, Skewness, Kurtosis). The goal is to use this in teaching stats. I am ...
4
votes
1answer
70 views

problem with tikz function plot

I have an error in a function with trace tikz I draw three functions of the form 1/2 (Acos (w * t + phi) + abs (Acos (w * t + phi))). the three functions are shifted 120 ° the route of these three ...
2
votes
1answer
86 views

pgfplots boxplot first column as draw position

I have data like this in a file. 1 0.1 0.2 0.3 0.8 ... 5 0.3 0.5 0.6 0.9 ... 10 0.2 0.3 0.7 0.10 .. ... How do I tell boxplot to use the first column as draw position and compute the box for the ...
2
votes
1answer
66 views

How I can change values on the Y-axis

\documentclass{article} \usepackage[sc]{mathpazo} \usepackage{pgfplots,amsmath} \usepackage{tikz} \usepackage{tkz-fct,tkz-base} \usepackage{tkz-tab,tkz-euclide} \usepackage[miktex]{gnuplottex} \...
7
votes
2answers
185 views

Area Bounded by 4 Curves

I would like to plot the area bounded by the following four curves: x^2 - y^2 = 4 x^2 - y^2 = 1 xy = 1 xy = 2 I'm fond of pstricks but tikz is fine too, whichever is simpler would be best. I ...
1
vote
0answers
47 views

Please help me plot this graph [closed]

How do I plot the following? Plot phi_(1)(t) vs t with the initial conditions phi(0)=0=[phi(0)]' for the equation [phi(t)]"+ 4.7124 [phi(t)]'+88.8268sin[phi(t)]-115.4749 cos(6.2832 t)=0 Plot log|...
1
vote
0answers
57 views

How can I plot a google maps in sharelatex?

I found a way to do this but not in Sharelatex, it is possible? The problem is activate \write18 in sharelatex, how can I do this? \documentclass{article} %\usepackage[latin1]{inputenc} %\usepackage[...
0
votes
0answers
15 views

bringing legend in next line

how do i bring the legend in the next line. I am facing a problem with very long legend strings. How can bring some string in the next line. Ex:- plot "datafile" using 1:4 with linespoints lw 3 pt 6 ...
1
vote
1answer
171 views

How to draw parallel curves using TikZ?

Does anyone know how can I draw the curves in picture using TikZ? What I have done so far are only two curves which intersect each other but I cannot go further that that. Here's my code \...
1
vote
2answers
122 views

How to draw intersecting two lines on a plane?

I tried to draw linear graph on a plane with intersection (2, 1) as the above referring to the following website: http://pgfplots.sourceforge.net/pgfplots_unstable.pdf But mine doesn't even appear. ...
1
vote
0answers
25 views

Fixing horizontal axis in pgfplots [duplicate]

I have the following plot and I would like to have the horizental axis fixed, but it scales and therefore I cannot see the details of the values between 0-50. To be more specific, in the horizental ...
3
votes
1answer
70 views

Exponential Function with “wrong” Plot in PGFPlots

While experimenting with PGFPlots, I found out a little weird issue: I want to plot the function given by f(x) = 2^x, so I type: \begin{tikzpicture} \begin{axis}[ axis x line = center, ...
2
votes
1answer
59 views

Adding emphasis to a PGFPlots function

I have a function plotted with PGFPlots, and I'd like to add some emphasis to some maximum values and to some minimum ones, like the image below. How can I achieve that? (Sorry if duplicated, but my ...
2
votes
2answers
118 views

How Can I Decorate a Parametric Curve?

I'm trying to draw a special parametric curve, but my results are not good enough, because I'd like to decorate it. So, I've tried this: \documentclass[10pt]{article} \usepackage{pgf,tikz} \...