{pgfplots} is a package for creating 2D and 3D plots of mathematical functions and numerical data, using the PGF graphics framework. For questions about the inbuilt plotting functionality of TikZ/PGF, use {tikz-pgf} instead.

learn more… | top users | synonyms

0
votes
1answer
51 views

How can I place an inset inside a pgfplots axis using the parent axis coordinates?

I'd like to place an inset axis inside a parent axis with pgplots. The position, width and height of the inset axis should be specified using the data coordinates of the parent axis. This is what I ...
0
votes
1answer
99 views

Plotting vertical lines for every point on x-axis and adding them

I am trying to generate a plot like 'fig-A'. I am a new user of Latex. So, i tried to find code on lines but I got the nearest one look like 'fig-B', which is not the one I am looking for. here is ...
0
votes
0answers
90 views

Rotate a 3d Pgf plot

Please, I need to know how to rotate a 3d Pgfplot. I am trying to draw a 3d surface using the following points : (1,0,0) (0,1,0) (0,0,1).
0
votes
0answers
85 views

Convert from rectangular coordinates to polar coordinates

The following code gives me the display that I want. The only modification that I want is to specify the points in polar coordinates with the same radius. (These points are on a unit circle centered ...
0
votes
0answers
80 views

Graph functions & color area under curves [duplicate]

Could anyone help me with the attached images below as far as coding the axis's and shading the area? I'm new to anything graphing in LaTeX and would love to have some guidance.
0
votes
0answers
66 views

Using tikzlibrary spy without magnifying line width and/or mark size with groupplots

This question has been asked before here: Using tikzlibrary spy without magnifying line width and/or mark size However, I have a problem with its solution. I tried both solutions posted and I would ...
0
votes
0answers
32 views

How to compile creating externalized figures files from pgfplots in a given folder?

I'm working on a project on LaTeX which includes heavy externalization of pgfplots figures, so I've hidden everything in a tex subfolder of the main one and work only there. Every time, though, I have ...
0
votes
0answers
67 views

Tikz/pgfplots problem: change x-axis counting at certain x-coordinate

In order to create a particular diagramm, I need the possibility to change the x-axis-counting at a certain x-coordinate so that x runs from 0-10 in steps by 1 and then changes at 10 put in further ...
0
votes
0answers
67 views

Resize tikzpicture without change \node position

I'm using tikzpicture to create some graphs. But I have a problem, when I change graph size for better position on text, all \node goes to wrong position. Here is my code. This are my .dat. ...
0
votes
0answers
49 views

A line not plotted

Here, I am trying to get TikZ to plot the line y=x. I get an error. \documentclass[10pt]{amsart} \usepackage{tikz} \usetikzlibrary{calc,angles,positioning,intersections,quotes,decorations.markings} ...
0
votes
1answer
51 views

A line is not plotted

I have a plot of a triangle and its reflection across the line y=x. The code is not compiled because there is an error in the command to plot the line y=x. Here is the command. ...
0
votes
0answers
91 views

TikZ Externalization Cannot Find Output File

I tried to use TikZ's externalization feature to speed up my compiling time, but for some reason it did not work as expected. This problem seems to be quite common and I've spent some time looking ...
0
votes
0answers
51 views

Perpendicular line to a line on a 3D plane

\documentclass{standalone} \usepackage{pgfplots} \usetikzlibrary{calc} \pgfplotsset{compat=1.10} \begin{document} \begin{tikzpicture} \begin{axis}[ view={125}{35}, axis lines=center, ...
0
votes
0answers
87 views

XML and LaTeX, including figures PGF plots

I am about to submit an article to a scientific journal. This journal provides some guidelines for those who want to submit the work in LaTeX. Requirements, however, are quite restrictive: Do not ...
0
votes
0answers
109 views

Can I plot an average-line plot like this with PGFPlots?

I would like to create a plot like this (maybe a bit better looking - this is my attempt): Here is how the data for the plot looks: x,min,max,avg 0,800,3600,2628.571429 1.5,2000,3600,2942.857143 ...
0
votes
0answers
70 views

Pgfplots externalizing figures: (inconsistent) white borders

I'm using the external library \usepgfplotslibrary{external} \tikzexternalize[prefix=tikz_figures/] to externalize my figures from one document and include them in another. The problem is that the ...
0
votes
1answer
248 views

pgfplots move colorbar scaled label to top right

Hi I was wondering how to shift the scaled label on the colorbar to the top right? The has been autogenerated by matlab2tikz, but I would like to move the .10^-3 to the top right like it was ...
0
votes
0answers
117 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 ...
0
votes
0answers
33 views

Using tikzscale along with correct references in externalized tikzpictures

It is not advised to use tikzscale package along with mode=list and make based on Patrick's comment here: http://tex.stackexchange.com/a/89595/24167 However, the references (e.g. \cite) does ...
0
votes
0answers
80 views

pgfplots update Texlive2014

I am currently using Texlive' 2014 on Ubuntu 12.04LTS machine. The problem I am facing is updating different packages (eg. Pgfplot). I have tried changing repositories, and this does not seem to ...
0
votes
0answers
105 views

Pgfplots 2 horizontal barplots, back to back, share y-axis, have different x-axis

Is it possible to have 2 horizontal barplots which share a common y-axis with one plot reversed, ie. back to back. The x-axis would be scaled differently. I have 2 items in my data that are scaled ...
0
votes
0answers
26 views

Change line to “dashed” without changing markers [duplicate]

I use pgfplots and I would like to have a dashed or dotted line that still has solid markers. When I use dashed, it also affects the markers. That looks weird, and I would like to have solid markers ...
0
votes
0answers
53 views

How to draw linear inequalities in LaTeX [duplicate]

I want to draw the following inequalities in LaTeX. This set of inequalities define a region. I want to plot this set of inequalities. How can I do this? I want to achieve something like this. ...
0
votes
0answers
80 views

Loading table with zero values in pgfplots

I'm trying to create a stacked bar plot where the data is loaded using the pgfplotstableread command. I want to use a logarithmic scale rather than a normal scale. However, when I change theaxis ...
0
votes
0answers
262 views

matlab2tikz not maintaining subplot dimensions

The following Matlab script gives me the two plots of the time series object T204 a1=subplot(3,1,[1,2]) plot(T204) a2=subplot(3,1,3) plot(T204) It looks like this in Matlab: Then I use ...
0
votes
0answers
276 views

Break y axis for values exceeding range [duplicate]

Related to this question regarding values that exceed the axis range (which also provides the code for a MWE), I would like to modify the output slightly: instead of displaying the numbers above the ...
0
votes
0answers
56 views

Stacked Barplot inside Table in Latex [duplicate]

I would like to plot stacked bar plot inside table in latex. I have code which plots two different bar plots inside table. But i want to plot single barplot with stacked bars. How can I do it in ...
0
votes
0answers
104 views

Choosing location of legend entries in Pgfplots

I am fairly new to using pgfplots and have been combing the manual for a couple hours now and I can't find an elegant solution to my problem. I would like to have two columns of legend entries and ...
0
votes
1answer
567 views

Trouble with pgfplots and ubuntu [duplicate]

Using writelatex (because I was at work where I had to use a windows machine which did not have a working Latex setup) I was able to produce some relatively nice-looking graphics using pgfplots. My ...
0
votes
0answers
57 views

x axis label on pgfplot [duplicate]

Hey all! I can't get rid of the 10:2 base at the x axis. I tried changing the precision, defining the ticks manually via xticks={...}. Everything works well on the y axis, I just can't figure out ...
0
votes
1answer
851 views

label font size in matlab->matlab2tikz

Does anyone knoy how can we increase the labels fontsize when we use the matlab2tikz (see this link) function from the mathworks file exchange? I always have to access the *.tikz generated file and ...
0
votes
0answers
73 views

Dimension too large in TikZ [duplicate]

I have some problems with drawing plots in TikZ. I use GeoGebra to build two curves and then export code into TikZ. So I get following: \definecolor{ffffqq}{rgb}{1,1,0} ...
0
votes
0answers
60 views

pgfplots: undefined control secquence in a foreach loop [duplicate]

I am getting an undefined control sequence when using \col in a \foreach loop. ! Undefined control sequence. \pgfkeyscurrentkey ->\col \documentclass[tikz, dvipsnames]{standalone} ...
0
votes
0answers
28 views

How to install pgfplots in Ubuntu 12.04.3 LTS? [duplicate]

How to install pgfplots in Ubuntu 12.04.3 LTS from Terminal? I have the following: a@a-Compaq-Presario-C700-Notebook-PC:~$ pdflatex --version pdfTeX 3.1415926-1.40.10-2.2 (TeX Live 2009/Debian) ...
0
votes
1answer
211 views

PGFPlots: How to use a parameter t when plotting in 2D

I would like to plot some characteristic curves of the wave equation with parameter t which is time. x - \frac{\omega}{k}t = c where \frac{\omega}{k} is the phase velocity and c is constant. In my ...
0
votes
0answers
32 views

externalizing the caption together with legend [duplicate]

I have the following plot: \begin{figure} \centering \begin{tikzpicture} \begin{axis}[ scale only axis, width = 0.8\columnwidth, height = 0.8\columnwidth, enlargelimits = 0.15, xlabel = {\# Classes ...
0
votes
0answers
70 views

Configuring Decimal Separator in pgfplots [duplicate]

Possible Duplicate: number format in pgfplots axis I'm using pgfplots package to create graphs. I would set up the decimal pointer. As default comma , is set up. I would have the point . ...
0
votes
0answers
58 views

Pgfplot with two ordinates y tick base position [duplicate]

Possible Duplicate: position of axis multiplier and one other I have a plot with two ordinates. The tick base for the "right" y-axis is "10^-3". However, the "*10^-3" is placed on the left ...
0
votes
0answers
50 views

How can I divide a legend to second part? [duplicate]

Possible Duplicate: multiple legends in pgfplot I want to divide a legend to several (two) part?(like below figure)
-1
votes
1answer
155 views

Multi figure in one page

edit same as you but dont help------ \documentclass{article} \usepackage{pgfplots,tikz} \usepackage{caption} \DeclareCaptionLabelSeparator{fullstop}{.\quad} ...
-1
votes
1answer
66 views

Dashed line in pgfplots not working

Please look at this document: https://www.overleaf.com/2201174ypzqyy You can see that the bottom figure has a dashed line while the top does not, even though they both have dashed in their addplot ...
-1
votes
1answer
105 views

rebuild a plot giving an image [closed]

I don't know if this is the right place where to post this request. It could be weird but I will do my best to explain it. The pic below shows two plots. What I would like to make is to recreate them ...
-2
votes
1answer
106 views

Create graph in LaTeX writer [closed]

How I can to create this graph in LaTeX writer? Please send me code of this graph for LaTeX. Thank you.