{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

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{...
1
vote
1answer
205 views

change color of line in legend image (tikz pgfplot)

I want to change the color of the line in the legend image, because the line color in my plot is different to the mark color. \begin{figure}[h!] \begin{tikzpicture} \begin{axis}[legend pos=south east,...
7
votes
0answers
278 views

Special effects in TikZ leads to unprintable PDF

So I recently made a picture of the Mexican Hat Potential (related to the Brout-Englert-Higgs Mechanism of particle physics). I am more than satisfied with the graph and everything, but I noticed ...
5
votes
0answers
229 views

Table vs Plot: How to print table of values, with colors representing values

In an effort to collect knowledge that will ultimately allow me to answer this question, I am seeking a way to generate a table where numeric values are plotted as cell-filling colors. The color ...
3
votes
0answers
72 views

LaTeX + Gnuplot on Mac: Plot Not Showing

Right. Total novice here so you might need to go easy. I'm trying to use Gnuplot with TikZ to draw an elliptic curve. Using TeXShop 3.58, Gnuplot 5.0 patchlevel 1... don't know what else is relevant. ...
3
votes
0answers
113 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. ...
3
votes
0answers
653 views

Include R output as pdf in Texmaker

I just switched from texshop to texmaker on Mac OS X. However, now the plots I want to insert from R as pdf in the document are missing the fonts in the pdflatex output. It used to work fine with ...
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, ...
2
votes
0answers
107 views

How to draw irregular 3d shapes in TikZ?

I would like to draw the cylinder-like irregular shape displayed below using TikZ. I know how to plot regular cylinders using TikZ, however the commands I know don't apply for irregular 3d shapes, ...
2
votes
0answers
59 views

pgfplots 3D plots size versus 2D plots size

I wanted to create a 3D plot but it's not possible for me to set the right size. Should I try out until I find the right values for height and width for the 3D plot or is there an easy way to find ...
2
votes
0answers
68 views

Is there a way i can make psfrag replace every number in a plot?

I want to replace every number in the axis of a plot. Can psfrag do this? If not, is there any other tool i can use to get the same effect?
2
votes
0answers
314 views

Automatically generated plots with Mathematica

I am currently using Mathematica to generate several plots later included in a LaTeX document. The process of exporting each of the graphs to eps/pdf and including these in the document is quite ...
1
vote
0answers
24 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 ...
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[]...
1
vote
0answers
61 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 ...
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[...
1
vote
0answers
47 views

strange results when plotting a function that i declared

I've declared two functions, the first of which (Gamma) works fine, but the second gives me really strange results that aren't right (after checking in excel). I've tried changing al the parameters ...
1
vote
0answers
41 views

How do I plot a fourth order system with bodegraph?

I wanted to plot a fourth order system with bodegraph: G(s) = s^2/((s+3)^4) But I dont get how to set the transfer function with bodegraph. \documentclass[border=5mm]{standalone} \usepackage[...
1
vote
0answers
82 views

How to make the column with line scatter graph. (Double Y)

I want to make this graph. I have only excel data.
1
vote
0answers
129 views

3D point plot - visualization

I've some points of the form (a+ib, c) where a,b,c are real numbers. I.e. "(complex number, real number)". I would like to visualize these points in a 3D plot such that the x,y-plane represents the ...
1
vote
0answers
134 views

pgfplot mesh with end arrow decoration

Inspired by this question I tried to decorate my pgfplot mesh with an end arrow. However, this end arrow is not properly positioned so that the end of the line shows behind the arrow tip. Here is a ...
1
vote
0answers
175 views

Tikz: Rational Functions (Hyperbola)

I am aware of similar questions, but as they don't exactly use the same syntax as I am trying to do, I can't see what's different between my way of writing functions down and the others. Here's what I'...
1
vote
0answers
87 views

plot matrix with epslatex

When plotting a data matrix with the plot command and epslatex terminal the generated image is correct. However, the generated latex file outputs also the source path, i.e. 'Date/data_file.txt'. Any ...
1
vote
0answers
282 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....
1
vote
0answers
227 views

how to create scatter of points?

I am going to teach econometrics soon and as some of you might know, there is this concept of regression where we try to fit a a best plot on the data. I know how to make a graph with just one point (...
1
vote
0answers
39 views

Axis Labels for Ridge Trace Plot

I am trying to customize the axis labels for a ridge trace plot but the labels aren't showing up when I compile. How do I get these labels to work? \begin{center} <<fig=TRUE,echo=FALSE,width=...
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 "...
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 ...
0
votes
0answers
69 views

Insert a gnuplot-plot in tikz environment

I cant manage to get my plot into a tikz environment. I am using BaKoma Tex Word with newest MikTex. %&latex \documentclass{article} \usepackage{tikz} \begin{document} \section{About ...
0
votes
0answers
76 views

Making a phase portrait of two autonomous system of differential equations with latex

I am trying to make a phase portrait of two differential equations. The equations are: x'=x-y y'=1-x^2 I have tried to google it, and looked in here, but haven't found a sufficient answer. I did ...
0
votes
0answers
74 views

How to create tikz figures via knitr forcing labels featuring LaTeX's font size modifier-commands?

Is there a way to force knitr to create tikz code which includes font size information? The output would be something like this: \begin{tikzpicture}[every node/.style={font=\footnotesize}] Here is ...
0
votes
0answers
158 views

matplotlib2tikz - compilation error for 2D

Situation: I am using matplotlib2tikz to export a two dimensional plot (comparison). Exported to pdf it looks like this: Including the tikz file (and compiling) yields an error though: Package ...
0
votes
0answers
97 views

Is it possible to include .bmp figure?

Do any need a special package to include .bmp figures in a document? Because it gaves me an error if I try to include them in the document. I tried saving the figures as .jpg, but the quality is ...
0
votes
0answers
175 views

central and non-central chi square distribution in one plot with tikz

What I want is to draw a chi square distribution - both a central and non-central into one plot and draw parts of the surface underneath as solid color. Note: I read Plotting the chi square ...
0
votes
0answers
159 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 ...