We’re rewarding the question askers & reputations are being recalculated! Read more.

Questions tagged [plot]

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

Filter by
Sorted by
Tagged with
3
votes
1answer
1k views

Plot function with discontinuity

I apologize if this question is similar to this one Plot non-continuous function with TikZ. In fact, in order to plot the following function between $-5$ and $+5$, by highlighting the $ (0, -2) $, $ (...
2
votes
1answer
282 views

Drawing Line Plot with uncertainty

Does anyone have an idea how to generate a graph with the 'uncertainty' area like in the picture shown: i have no idea where to start! Thanks for any inspiration! Cheers! Martin
2
votes
1answer
58 views

tkz euclide How to give arrowheads on both sides to axes?

I'm using tkz-base and trying to plot inequation on x axis. I wanted to show arrowheads on both sides but when drawing X axis I get arrowhead only on right side. How do I get on both sides? I tried ...
2
votes
3answers
215 views

TikZ PGF: How to hide parts of 3D graph when lower than surface?

Assumed we have this kind of 3D surface: Minimum Working Example: \documentclass[tikz]{standalone} \usepackage{pgfplots} \begin{document} \begin{tikzpicture} \begin{axis}[zmin=0,zmax=0.5,...
2
votes
1answer
2k views

How can the size of an epslatex terminal plot with gnuplottex be altered?

Are there any other options to set the size of a plot with the epslatex terminal of gnuplottex than the scale option? I noticed that pgfplots doesn't have this effect, but for continuity I want all ...
2
votes
0answers
58 views

Plot data points with 'linespoints' but lines should have gaps [duplicate]

I have asked following question on stackexchange regarding a gnuplot solution: Plot data points with connecting lines but which leave gaps. The question is about using following linestyle for data ...
2
votes
2answers
690 views

Not able to plot a parabola

I am making a multiple choice problem. (Here, I display two of the choices.) I am trying to plot parabolas using pgfplots. Why is TikZ not compiling my code? I put a % in front of the parabolas ...
2
votes
1answer
1k views

Plotting area in the plane where two inequalities in two variables hold

I would like to plot the area in the plane where two inequalities hold, both involving two variables. I would like to do it the way Wolfram Alpha does it, but within a LaTeX document. I have looked ...
2
votes
1answer
541 views

LaTeX barplot: one x-axis, two y-axis

I want to plot a bar plot with LaTeX with the layout that you can see in the picture that I've done with PowerPoint: I don't want to do a subplot kind of graph since the datasets include the same ...
2
votes
1answer
116 views

Plot two curves on the same figure, axis without ticks

I tried to plot two curves on the same figure, but without ticks on axis. Latex gave me an error "Dimension too large" (it allows me to plot only a single curve). What can I do to remedy the situation?...
2
votes
1answer
140 views

plot always plots relative to origin

I am trying to use plot to draw a sine somewhere in a picture. I expected the coordinates to be relative to the current coordinate, but they seem to be relative to (0,0). Below is an MWE that does not ...
2
votes
1answer
6k views

Simple Line-Plot with date on x-axis

I need to do a really simple line plot and my data is looking like this: Date Value Apr2013 0.06 Mai2013 0.08 Jun2013 0.1 Jul2013 0.2 Aug2013 0.4 Sep2013 1.5 Okt2013 2.0 Nov2013 4.1 Dez2013 8.1 ...
2
votes
1answer
398 views

Plot a data/Table from Mathematica using `pgfplots`

I use data1 = Table[] in Mathematica 9 (M9) to generate a table of values. The thing is that when I read the data file, there's only one column! How can I plot this data file in LaTeX using pgfplots? ...
1
vote
2answers
167 views

How do I label the axis of a sinus using pi? [duplicate]

I am plotting a sinus function using a pgfplot and would like that the tick of the x axis was labeled using multiplers of pi (pi/4, pi/2, 2*pi...), for they are the "important" x values to visualize ...
1
vote
2answers
104 views

How to use intersections in PGFplots as x-ticks?

I am pretty new to PGFplots, but I am already loving it very much! I want to have a plot, where the intersection of two curves or when the data reaches a certain y-value is labeled on the x-axis as ...
1
vote
0answers
82 views

How can I improve the drawing of Thomae's function? [closed]

I 'm trying to draw Thomae's function (in black). I want the plot below. I used marmot's code from here. \documentclass[tikz,border=3.14mm]{standalone} \begin{document} \begin{tikzpicture}[scale=8] ...
1
vote
1answer
561 views

Specify brewer-color in addplot

What I have: A plot in which I want to assign a specific color of colorbrewer scheme "Set1" to a plot curve (instead of using them in their 'line of order'). This means the curve of "Simulation 1" ...
1
vote
1answer
2k views

How do I plot a Cumulative Distribution Function (CDF) of Discrete Numbers in LaTex Environment?

The overall achievement vector of a person/household is designated by x=(x_1 \cdots x_n). To demonstrate, imagine that there are five persons in a society with over all income $25, $18, $15, $33, $31. ...
1
vote
1answer
210 views

Connecting pairs of points from separate plots

I have two scatter plots coming from one single csv file. no,id,x,y,x_proj,y_proj 1,1,565,417,565.6,393.3 1,2,315,234,334.8,193 1,3,949,355,944.8,346.3 I would like to link each point that has the ...
1
vote
2answers
612 views

How to paint plot background below grid lines?

I need to show a plot whose background is painted in different colors at certain X intervals. I tried fill but it paints over the grid and the interval markers on X and Y axis. I know I can draw them ...
1
vote
2answers
464 views

How to decorate the intersection of two figures on TpX

There is a way to plot something like that on TpX?
1
vote
2answers
2k views

Wide space between picture and caption

For some reason my v-space does not show up correctly! Does somebody know wy? \begin{figure}[h!] \centering \resizebox{.5\linewidth}{!}{\input{Figures/NIRS/Extinction}} \caption{Characteristic ...
1
vote
1answer
2k views

How to adjust the width of the legend box to match the box of the plot?

I want to enlarge the width of the legend box to the width of the box of the plot. The result should look like this: I tried to adjust the width by using legend style={minimum width=xx cm}, but ...
1
vote
1answer
174 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, ...
0
votes
1answer
130 views

Random bar graph in tikz

Is it possible to generate a random bar graph in latex? The only way to do this seems to be using the tikz package. Is there any code for this Thanks and regards
0
votes
2answers
63 views

I don't know, why does it not work (plot) [duplicate]

\documentclass{article} \usepackage[a4paper,bindingoffset=0.2in,% left=1in,right=1in,top=1in,bottom=1in,% footskip=.25in]{geometry} \usepackage[magyar]{babel} \usepackage[utf8]{inputenc} \usepackage{...
0
votes
1answer
621 views

Plotting chi square distribution [closed]

How to plot the picture above? This question is about; plotting a chi-square distribution shading an area of distribution annotating the figure
0
votes
1answer
129 views

Create one linear line plots from each row of data in table

I have a table where the data has the following format: | x | y | dydx | |------|------|-------| | x1 | y1 | dydx1 | | x2 | y2 | dydx2 | | x3 | y3 | dydx3 | I want to create a ...
-1
votes
4answers
918 views

Plot Graph with axis

Lower curve is given by function y=$\left\lfloor {\frac{x+2}{2}} \right\rfloor$ and Upper curve is given by formula y=4 for x=2,3 while y=$2 \left\lceil {\frac{x}{3}} \right\rceil$