Questions tagged [pgfplots]

51 questions
1
vote
0 answers

How to add an item to an array within an Antlr Context in C#

I'm trying to generate LaTex for PGFPlots graphs using Antlr from a C# project. So far, I've created this grammar for the axis, which is essentially a set of kvps: grammar PgfPlots; axis : 'axis' '[' keyValPairs ']' ; keyValPairs :…
ScottishTapWater
  • 3,656
  • 4
  • 38
  • 81
1
vote
0 answers

How to draw a graph with pgfplots in LaTeX

What is the simplest way to draw graph like this in Latex? I tried but I don't know how to write a code for that. \documentclass{report} \usepackage{tikz} \begin{document} \begin{tikzpicture} \draw[help lines, color=gray!30, dashed] (-4.9,-4.9)…
niksirat
  • 217
  • 2
  • 8
1
vote
1 answer

Why is the Graph clipped at x = 5?

I have just started to work with the pgfplots package. I want to draw a graph but it is clipped at the right at x = 5. I have set xmax = 6 because I want it to be drawn to x = 6. What am I doing wrong? This is my…
OK_4711
  • 49
  • 5
1
vote
1 answer

Latex pgfplots do not show dots in my plot

I am trying to make a plot which meant to be looking like this I used overleaf as my editing tool It works when I separate it in a clear file without any other things But when I combine it with other things in my project, it turned out to look…
1
vote
2 answers

Horizontal pgfplot (xbar) remove bar labels

I want to create a horizontal barchart in latex. I already have the following but I want to remove the value labels at the end of the bars. Can someone help we with this issue? Thanks in advance! My code: \documentclass[a4paper,…
1
vote
1 answer

Latex: \closedcycle Package pgf Warning: No path specified that can be filled on input

In the following plot, I am getting a warning. I know it has to do something with the coordinates but can't solve it for sure. If anyone can guide me in the right direction, it would be really helpful. Package pgf Warning: No path specified that…
t.abraham
  • 108
  • 1
  • 9
1
vote
1 answer

For loop is "stucked" inside a pgfplot

I am trying to produce some plots in latex using pgfplots; because of the fact that I have several different plots to produce, I am trying to use a for loop. Unfortunately, without success. Indeed, the code is executed three times but the value of…
SteP
  • 262
  • 1
  • 2
  • 9
1
vote
1 answer

pgfplots "Soft clip" of "Fill between" not working with loglogaxis

I am struggling with soft clipping a fill between when using a loglogaxis. The soft-clip domain seems to be completely off; i.e. setting soft clip={domain=1:1} yields the same result as no domain at all. Yet a domain soft…
1
vote
1 answer

Two graphs in the same axes \addplot3 (pgfplots)

I want to draw two graphs using pgfplots. Here's the first one: \begin{tikzpicture} \begin{axis}[ xmin=-pi, xmax=pi, ymin=-pi, ymax=pi, zmin=0, zmax=2.5, xlabel={$\varkappa_x$}, …
1
vote
1 answer

How to avoid "! LaTeX Error: Environment axis undefined" when using include_tikz with pgfplots?

I have successfully included in an R/exams .Rmd file several graphics made in TikZ. The same does not happen when I try to include a plot under pgfplots using include_tikz(). Whenever \begin {axis} and \end {axis} are included, beware of the error…
1
vote
0 answers

PGFPlot axis scale

i want to plot a time signal plot and i have problems with the correct tick label style: here is my code: \begin{axis}[ yscale=0.5, ymin=0, yticklabel style={scaled ticks=false, …
Pr0metheux
  • 11
  • 3
1
vote
0 answers

Using a csv file for plots and tables in LaTeX

I am new to LaTeX and am hoping to use it for plotting graphs for my thesis. For the most part I find it easy to use. I have no problem plotting a function, but I cannot get it to plot from an external csv file. I've seen numerous tutorials and…
Kayla
  • 21
  • 1
  • 4
1
vote
0 answers

Package pgfplots Error: Could not read table file 'Heat_sources_SH_trial.csv' in 'search path=.'

I have recently started using LaTeX for creating graphs for my thesis. So far I've just been focused on using pgfplots...plotting a function is no problem but I am having serious issues plotting a csv file. \ I always get the same error: "Package…
Kayla
  • 21
  • 1
  • 4
1
vote
0 answers

Filter rows in csv file (pgfplots)

I create a plot (pgfplots) with the following command. I would like to filter some of the rows in myFile.csv according to some conditions. E.g value in col myZcol > 3 or myZcol=3. Is it…
Tom Ron
  • 5,906
  • 3
  • 22
  • 38
0
votes
0 answers

PGFPlots: Importing data using a \def\Filename{}

Using \def\FileName{Zone B Stuff.txt}, \addplot[black,mark=square*,mark options={scale=1,fill=white,black}] table[x=Year,y=MedianCap] {\FileName}; fails.. Of course, using \addplot[black,mark=square*,mark options={scale=1,fill=white,black}]…
user39678
  • 73
  • 7