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.

1164 questions
27
votes
4 answers

What is the best way to plot coordinates in Latex?

I need to plot some points in a graph; just a simple list of x and y values and then connect them with line segments. Currently, I am graphing it in excel and importing the image into latex and it doesn't look good. Is there any way to plot…
7
votes
1 answer

Decent-looking plot with Standard Deviation

I want to create a picture with 3 (or more) plots, which will have a their standard deviation over hundreds of samples. This is my Latex picture: It doesn't look very nice because of the high amount of samples. Here's the same picture in…
7
votes
1 answer

Visualizing a set of complex numbers

Suppose I have an infinite unbounded set of complex numbers, for example all the numbers outside the unit circle. Is there some good way to visualize that set using LaTeX with some drawing library?
6
votes
2 answers

Plotting 3-dimensional Sets

I am using MikTex and Texworks with pgfplots to try and plot 3 and 2-dimensional sets Could some of you nice fellas help me out? I am trying to plot: I can print out the page and draw per hand too, actually I'd like to know how to print a blank…
user46794
  • 131
5
votes
1 answer

curve of x*e^(1/x) - e^((1-x^2)/x) - x - 1 on [0, +\infty[ tikz

I constructed the curve of the mentioned function but it is not displayed correctly. \documentclass{standalone} \usepackage{pgfplots} \usepackage{amsmath} \begin{document} \begin{tikzpicture} \begin{axis}[ xlabel=$x$, ylabel=$y$, …
Dots
  • 169
  • 5
5
votes
5 answers

Plotting exponential functions

Can anyone give me a clue on how to plot this function: It can be with any package, as the ones I've tried to use don't work (pgfplots gives me TeX capacity exceeded, sorry), my attempts with other packages aren't even remotely working :( The graph…
5
votes
2 answers

how to plot multiplication of two functions in latex

I'm new to latex and am trying to plot f(x)=sqrt{2/pi}*exp{-x^2/2} I managed to plot the exponential part easily but when I multiply it by the square root 4 errors occur. This is my code: \documentclass{standalone} …
Sara
  • 53
5
votes
3 answers

How do I draw graphs?

I'm new to Latex and I think I am going to use it for my physics classes in school. I have found a really good template: https://www.sharelatex.com/templates/journals/aip/ (I use sharelatex) which is great equationwise and such, but I don't seem to…
4
votes
3 answers

Horizontal parabola

How does one draw a horizontal parabola, left or right oriented? I can easily draw: \draw[blue, line width=1.75pt, domain=-2.00 : 3.00, samples=1500] plot[smooth](\x, {\x*\x - \x - 2}); and even trick a horizontal parabola in origin using two…
Diegis
  • 1,107
4
votes
3 answers

Implicit plot - ellipses

I need to draw a pencil of conics: Given two ellipses $\left( \frac{x}{a_1}\right)^2 + \left( \frac{y}{b_1} \right)^2 - 1 = 0$ and $\left( \frac{x}{a_2}\right)^2 + \left( \frac{y}{b_2} \right)^2 - 1 = 0$, I shall plot $$ t_1 \left( \left(…
user44413
  • 601
4
votes
2 answers

Plotting a function in Latex

How do you draw functions that look like this? I apologize for not providing you with an attempt to solve this problem - I am a second-day user of Latex. Greatly appreciate your help. \documentclass[paper=a4, fontsize=11pt]{scrartcl}…
Olga
  • 480
3
votes
1 answer

How to draw a harmonic plot in latex?

I am trying to plot the graph shown below (even arrows or lines to show important frequency points would be enough) I have been searching for hours, but I cannot find a sample code that can help me plot it. Could you help me?
3
votes
0 answers

Drawing airfoils from .dat external file

I am trying to include plots of airfoils in my report and have tried using this method: http://www.texample.net/tikz/examples/airfoil-profiles/ Initially, I had multiple errors and the document would not display. The problem I discovered, was that…
3
votes
4 answers

Is it possible to draw this graph in latex?

I drew this graph in Gimp. However, I wanted to draw this in the latex. Can you help me?
2
votes
1 answer

Multiple plots under a same caption error

I want to plot multiple figures under a same caption but the code doesn't work. This code doesn't appeared in plot: \begin{figure}[htp] \centering \subfloat[a]{% …
user1885733
  • 187
  • 5
1
2 3 4 5