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.
88 questions with no upvoted or accepted answers
4
votes
0
answers
309
views
Penrose-Carter diagrams with TikZ
I am trying to draw the Penrose diagram for the motion of a particle in a Schwartzschild background. I was able to draw the diagram thansk to This article by Izaak Neutelings
The code is the ...
4
votes
0
answers
261
views
pgfplots: accuracy of the color gradient in matrix plot
I want to plot a matrix with pgfplots to match the style of the rest of my LaTeX document. The desired output is something like this plot from Mathematica:
But when I try to plot this data with ...
4
votes
0
answers
4k
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))
plot(college....
3
votes
0
answers
2k
views
PGF generated plot via Matplotlib and using relative font sizes when input to LaTeX
I can produce plots on matplotlib and export them to pgf successfully. But I believe that by first defining a base font size on matplotlib rcParams (11pt for example), and then defining things like ...
3
votes
0
answers
843
views
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 ...
3
votes
0
answers
739
views
pgfplots: Best practice to avoid "TeX capacity exceeded" when plotting huge data sets?
I want to create some huge pgfplot with three different axis and a lot of data points. In summary there are 20160 lines of data existent.
My problem is: All few hours the values will change ...
3
votes
0
answers
409
views
pgfplots - filldraw disappears after adding plot
I have some plots in my graph and want to mark a special area with a square.
Here's what the plot looks like:
\begin{tikzpicture}
\begin{axis}[axis lines = left, xlabel = {Player 1}, ylabel = {...
2
votes
0
answers
93
views
Embossed bars in 2D bar plot
I like my bars to appear embossed as shown in Figure. Here's the MWE:
\documentclass{standalone}
\usepackage{pgfplots}
\begin{document}
\begin{tikzpicture}{scale=0.3}
\begin{axis}[width=12cm,height=...
2
votes
0
answers
112
views
Symlog for PGFPlots
I'm trying to plot data that ranges from [-1e8,1e8] and I would like to represent it using a symmetric log plot. I've found this solution to my problem but it seems the axes fail as soon as the data ...
2
votes
0
answers
43
views
Equally distanced marker for non-equal distanced data
I have a plot from my data using tikz, where the data is not equally distanced in y-direction. By using mark repeat={10} I can skip the plotted marker, but the markers are not equally distanced. As ...
2
votes
0
answers
240
views
Where is the problem with plotting a graph of function?
Why this doesn't work?
\documentclass[11pt,a4paper]{article}
\usepackage[utf8]{inputenc}
\usepackage{amsmath}
\usepackage{amsfonts}
\usepackage{amssymb}
\usepackage{tikz} % package used for the tikz
...
2
votes
0
answers
67
views
Is there an easy way to encapsulate a tikz drawing using "plot" commands as part of a node style?
I want to overlay a function on top of a block, as shown in "bounded reciprocal" below.
Is there an easy way to do this? Someone had referred me to the approach in my PIctrl shape below
but ...
2
votes
0
answers
371
views
Plotting two functions and their intersection using tikz/pgfplots
I'm new to both tikz and pgfplots, and I am having trouble getting an image of the functions f(n) = 2n^2 and g(n) = 50*n*log2(n) on the same plot. I want the domain to go from n=1 to n=1000, and I don'...
2
votes
0
answers
291
views
pgf matrix plot mask values in colormap
I would like to make a matrix plot with the following script, where all 0 values are displayed in white all other values according to the colormap. Is there a masking feature in pgf plot? Could it be ...
2
votes
0
answers
231
views
Plotting errors bars with "plot" without using axis environment from pgfplots
In the axis environment of the pgfplots package there is a simple way to add error bars:
\documentclass{minimal}
\usepackage{filecontents,pgfplots,tikz}
\usetikzlibrary{plotmarks}
\begin{...