{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

2
votes
2answers
57 views

using mathematica plots in LaTeX

I would like to use plots created with Mathematica inside my LaTeX environment. Is it possible to plot the Mathematica code completely inside the LaTeX environment? If it is not possible, does anyone ...
2
votes
3answers
100 views

Plotted line in tikz stops in middle of grid

The plotted line stops and doesn't go on till the border of the grid: This is my code: \documentclass{article} \usepackage{tikz} \usepackage{amsmath} \begin{document} ...
6
votes
1answer
77 views

PGFplots: How to add a legend to “superimposed” plots

I have "superimposed" different plots on the same graph (i.e., I have two axises environments in one tikzpicture environment.) Now I would like to add a single legend for both of the plots and ...
0
votes
1answer
72 views

How do I create a certain graph using pgfplots?

I can't create this graph or something similar to it. I use pgfplots for plotting.
1
vote
1answer
92 views

Plotting a chart and chart line?

How I can Plot this curve in Latex {revtex4-1}? \begin{center} \begin{tikzpicture} \begin{axis}[bar width=18pt, xtick=data,ymin=0,ymax=45,x tick label style= {rotate=90,anchor=east}] \addplot[ybar] ...
1
vote
0answers
62 views

Convert image to code (TikZ? PSTricks?)

I have a ... pdf file, which contains figures of plots such as the following: Now the second plot isn't too hard to draw on TikZ (I assume... I hope? I don't have any experience apart from ...
-4
votes
0answers
83 views

including graph in latex [duplicate]

Please help me, to create this graph in Latex. Please if you can only send me latex code of this graph (other I don't want), Also create graph in Latex same parameters. I send also excel -link . Below ...
-2
votes
0answers
100 views

Excel graph to convert Latex code [closed]

https://drive.google.com/file/d/0B6scef4N4Zx_bnRGY1JMOTBFMXM/view please help me , to create this graph in writer Latex only. Please if you can only send me latex code of this graph (other I dont ...
6
votes
1answer
74 views

Equivalent to “shorten <=” for intermediate points

Halo everybody, I try to plot a data set using tikz & pgf. I want that the points in the plot are connected, but the line shouldn't touch the points. I can achieve this for the first and the last ...
4
votes
1answer
70 views

Graph doesn't stay within grid

I've plotted two simple functions in Latex using tikz. It looks like this: As you can see, the curve doesn't stay within its grid. How can I fix this? This is my code. I'm using documentclass ...
3
votes
1answer
111 views

Complex function plot using TikZ or PGFPlots

I need to plot some steps of this approximation http://mathoverflow.net/a/27127 but don't know how to start.
1
vote
1answer
62 views

How to make this bar plot visible?

I am trying to visualize about 21 data points, each which gives a different value for 3 different tasks, so there are 63 unique values to plot. I have tried using pgfplots colored bar plot, but I ...
5
votes
2answers
243 views

How to draw 3d vector field on a line?

How to draw 3d vector field on a line? I want to visualize the vector field $( m_x(x), m_y(x), m_z(x) )$. After searching "visualize vector field", I find that most plotting software either plotting ...
6
votes
3answers
1k views

Error: “Dimension too large…” when plotting EXPONENTIALS with TikZ

Despite having read answers to 4-5 relate questions, I still can't get why my code does not compile. Here it is: \documentclass[11pt,twoside]{book} \usepackage[paperheight=24cm, paperwidth=35cm, ...
1
vote
0answers
20 views

Vertical spacing in tabular environment with graphs/math

I have problem getting this to look nice. I need help with spacing and alignment of text: \begin{tabular}{lll } \toprule \multicolumn{1}{l}{Activation Function} & ...
11
votes
2answers
847 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 ...
1
vote
0answers
32 views

Force Knitr Figure on same page

I am using Knitr on RStudio. <<glmall, include=TRUE, fig.align='center', fig.cap='Diagnostics plots for full-model with GLM (Poission)', fig.show='asis'>>= par(mfrow=c(2,2)) ...
2
votes
1answer
35 views

Undefined error when plotting from data

I have been trying to create a LaTeX plot for my own data. To get me started I have copied the code from this website (ShareLaTeX) into my TeX editor. All the graphs come out exactly like they look on ...
20
votes
2answers
4k views

Fill between two curves in pgfplots.

How to accomplish fill between two curves in pgfplots? For example, I have ... \addplot coordinates {(0,1) (1,1)}; \addplot file {something.dat}; ... and I would like to have filling between those ...
1
vote
0answers
24 views

draw plot \x^2, sign error [duplicate]

I try to plot quadratic fonction. \documentclass{article} \usepackage{tikz} \begin{document} bad, negative square equal...negative! \begin{tikzpicture} \draw plot (\x,\x^2/4/1.0); ...
5
votes
2answers
357 views

How to plot the graph below?

May I know how to draw the graph as shown below? below is a code I have try but with look and feel that is quite far away from the example: \begin{tikzpicture} \begin{axis}[ legend pos=north ...
2
votes
2answers
137 views

drawing convex envelope of a function

I am writing an introductory chapter to my thesis report. I want to add a figure that illustrates the convex envelope of a function no matter what function, though, it has to be continuous. I'm not ...
6
votes
2answers
294 views

drawing smooth path through symmetric points, gives non symmetric curve

I want to make a graphic going through some points. I've choose the points symmetric, to have a symmetric curve, but the curve is not. I could define some extra points, but their must be a better ...
2
votes
0answers
52 views

Creating Tikz Legends in the Caption

i'm having a few issues with creating a legend in the caption of an image. I've made a lot of graphs using matlab2tikz and i've externalised them to reduce my compiling time and memory usage. ...
6
votes
2answers
96 views

Scale the Axis in Tikz

I have the following problem: \begin{center} \begin{tikzpicture}[scale=0.5, >=latex] \draw[->] (-6,0) -- (6,0) node[right] {\scriptsize $x$}; \draw[->] (0,-5) -- (0,15) node[above] ...
4
votes
1answer
362 views

Scatterplot with data from CSV file and trendline

I have created a scatterplot with code from this previous asked question. \documentclass[varwidth=true, border=2pt]{standalone} \usepackage[utf8]{inputenc} % this is needed for umlauts ...
2
votes
0answers
59 views

How can I make concentric circles as grid for a polar plane?

But I need to delimitate the circles for x, y in [-2,6]. \begin{tikzpicture} \draw[yellow!10, fill=hkvbluelogo!5](-2, -2) rectangle (6, 6); \foreach \s in {0, 1, 2} { \draw [lightgray] (0,0) circle ...
0
votes
1answer
35 views

Plotting with literals

I can plot functions with numbers using pgfplots but how can I plot something like the next image? The curved part corresponds to an exponential with negative argument.
3
votes
1answer
103 views

Tikz - Rotated Gaussian

I would like to plot a rotated curve (gaussian) but I've got no idea how. I searched in the internet and found that I have to define the gaussian curve because it's not included. But how can I plot ...
7
votes
3answers
300 views

How can I plot the F distribution

I wish to plot the F distribution by declaring its density function. However with the following code I get an error saying that fdst has not been declared: \documentclass[border=5mm]{standalone} ...
6
votes
1answer
128 views

Plotting multiple lines with a colormap in pgfplots

I have a similar question to Steve Hatcher from this thread: Spectrum colormap for multiple curves I have a data file (mwe_data.txt) which contains multiple columns. The first column is the x-axis, ...
1
vote
1answer
120 views

Tikz plot not precise enough

In the plot pictured below the two curves should cross at (4,3) but they do not. Is there some way to fix this? I tried to load the fixed point arithmetic library hoping to increase precision but the ...
4
votes
1answer
142 views

Plot a linear function with pgf plot?

Hi I would like to plot a graph of load voltage vs load current, I have been trying to do it with a tikzpicture, but wonder if maybe it can be done with a tikzplot? The bellow code is sort of what I ...
5
votes
3answers
522 views

How to generate a simple cartesian plane system?

I need to make a cartesian plane for plotting the straight line joining the points (-3,1) and (6,-2). This is a very simple cartesian plane plotting. When I looked at the manual for tikz the graphics ...
0
votes
1answer
30 views

how to make a plot with consecutive numbers in x and y axis?

I made this plot but I want consecutive numbers from 1 to 10 in the labels for the x and y axis. The current plot shows 0 then jumps to 5 and 10. \tikzpicture \begin{axis}[ axis y line=center, axis ...
5
votes
3answers
255 views

tikz plot of two sine waves, showing the phase difference

What I am trying to achieve here is to plot two sine waves, and with some dotted lines on the peaks showing a \Delta t in the middle, as the phase difference. Any help appreciated.
1
vote
0answers
75 views

What do you use for plotting? [closed]

I use Latex now for about two years and have written a couple of larger documentations with it. When it comes to plotting (simple or complex, functions or data) I used gnuplot or R. The later more and ...
0
votes
0answers
87 views

Visualizing Cluster Data

the question in the headline is formulated very abstract, because I am still not sure what the best way of visualizing the Data I have is. The problem is that I have two mappings of a dataset which ...
4
votes
1answer
74 views

Changing axes' origin adds weird whitespace

I would like to display points in a Tikz picture, whose y components are all negative. That is per se no problem, but I want the y axis to be a bit higher than the x axis to emphasize the negative ...
4
votes
1answer
116 views

Draw plots with tikz

I would like to do the following graphic in tikz. But I do not konw how to proceed... How could I do that? EDIT So far, I have tried simpler things (before getting to this bigger problem). I have ...
4
votes
2answers
326 views

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. ...
4
votes
1answer
82 views

pgfplots: symbolic coordinates with line skipping

I am trying to skip lines inside the symbolic X coordinates of the following pgfplots Bar Chart : \documentclass[a4paper]{article} \usepackage[utf8]{inputenc} \usepackage{color} \usepackage{amsmath, ...
2
votes
1answer
46 views

How do I arrange 2 subfigures on top of 1 subfigure?

I'd like the arrange these figures so there are two figures next to each other and one below, like an upside down triangle, so that they all fit on one page and are a reasonable size. How do I do ...
3
votes
1answer
173 views

Creating performance profiles

A performance profile is a kind of plot used in the optimization community; here below is an example from http://www.gamsworld.com/performance. For an introduction, see Section 22.4 of Higham and ...
9
votes
3answers
613 views

Drawing spherical harmonics with pst-3dplot

For my lecture notes in theoretical physics (namely quantum mechanics) I'm trying to visualize the spherical harmonics. I got Mathematica to plot them an this is what I did: ...
6
votes
1answer
362 views

How do I stack two figures on top of each other, rather than side to side?

I'd like my figures to be one on top of the other, rather than next to each other, so that they are larger and spread along the page width. How do I do this? Here is my code: \begin{figure}[H] ...
36
votes
2answers
1k views

How can I draw nomograms in LaTeX?

What is a nomogram “A nomogram, also called a nomograph, alignment chart or abaque, is a graphical calculating device, a two-dimensional diagram designed to allow the approximate graphical ...
2
votes
1answer
113 views

pgfplot: how to render 3dplot with colors black, white and gray

I my previous question, I rendered a 3d plot, but as I want to print my plots they should be in black, white or gray coloring format. How should I change the coloring scheme? ...
11
votes
4answers
2k views

How to plot atan(x), sqrt(x) using PSTricks?

For example, this code works: \documentclass{minimal} \usepackage{pstricks} \usepackage{pst-plot} \begin{document} \begin{pspicture}(-5,-5)(5,5) \psgrid[griddots=10,gridlabels=0pt, subgriddiv=0, ...
5
votes
5answers
263 views

How to plot a complicated multi-variable function in a tex document automatically, not just importing an image

I have the following Tex functions and I want to plot them in my tex thesis, but I don't know how. I mean, I want the Tex to draw the function, not just to include an external image to it. ...