Questions tagged [pgfplots]

51 questions
0
votes
1 answer

What can I do to smooth the curve? (LaTeX, PGFplots)

I am trying to plot a graph of cos(sin(x)) and the line isn't smooth at all. I've tried to increase the number of samples as well as adding 'smoothing' and messing around with the tension values, but neither worked. Is there any way to fix this?…
0
votes
1 answer

Interpret this Julia error message using PGFPlotsX - key error

I am witnessing strange behaviour with Julia 1.8.5 using the latest of Plots PGFPlots(X) packages. When adding the call pgfplotsx() I am not getting any output. A MWE is using Plots plot(rand(20)) gives the desired output but using…
0
votes
0 answers

Is it possible to limit reading only a section of data file with pgfplots

I have a many-item data file and I want to plot only data from a selected region. I can give as axis parameters the beginning and the end of my data section, but if the selected region is too small, the the program aborts with the message that…
katang
  • 2,474
  • 5
  • 24
  • 48
0
votes
0 answers

Fill between function does not account for areas of other curves

In the below graph, the fill below function works great for filling in between, path B and path C. But it is not so good when I do not want to fill anything below path A (that is I do not want the area under blue line shaded, I do not how to get rid…
0
votes
1 answer

How to draw a circle embedded a plane in a 3d figure using pgfplots?

I'm trying to create a figure in which I plot a mesh. Each 'rectangle' of the mesh should be labelled with a number that has a circle around it. My goal is to rotate this number and circle (or just the circle) so that it lies on the rectangle. As I…
grapher
  • 43
  • 4
0
votes
0 answers

matplotlib's contourf producing error in tikzplotlib

could someone point out to what is wrong with the following code? import matplotlib.pyplot as plt import pandas as pd import numpy as np from matplotlib import cm,colors import tikzplotlib max_r = 20 N_vorfs = 500 scalings = np.linspace(0.1,…
0
votes
1 answer

Remove first and last axis tick in pgfplots

I want to plot a coordinate system like this and I want to get rid of the first and the last tick of the x-axis and the y-axis. Like in my example I also don't want tick labels at the begin and the end of every axis. How can I get rid of the first…
OK_4711
  • 49
  • 5
0
votes
0 answers

Why can't I plot from .csv file

\documentclass{standalone} \usepackage{pgfplots} \pgfplotsset{compat=newest} \usetikzlibrary{external} \tikzexternalize \usepackage{filecontents} \begin{filecontents*}{escalon_de_tension_de_flanco_descendente_5V.csv} t,A,B 0.0438,2.05,4.92 0.0538,2.0…
el_maxx
  • 11
  • 1
0
votes
1 answer

What are the advantages and disadvantages of creating figures with the tikZ/pgfplots packages rather than directly with Matlab?

I'm using Matlab to get figures from data produced with Fortran calculations and I was wondering if it's better to produce them directly with Matlab (I use the .pdf format) or export them with Matlab2tikz and then process them with the tikZ/pgfplots…
g_don
  • 195
  • 1
  • 9
0
votes
1 answer

Bounding box coordinates for pgfplot

How can I get the bounding box coordinates for the pgfplot below? I need the coordiates in pgfplot space. (current axis.south west) and (current bounding box.south west), for example, do not give what I need. I'm expecting something like SW =…
svenpables
  • 99
  • 1
  • 9
0
votes
1 answer

Avoid vertical line at the end of data (LaTeX pgfplots)

I'd like to draw a line plot the years on the x-axis with xmax = 2020 in LateX pgfplots. As my data ends in 2019 I get a vertical line at 2019. It's probably quite easy but I didn't find anything about how to avoid that. Thanks in advance! Example…
Simon P
  • 3
  • 3
0
votes
1 answer

Problems with updating pfgplots inside docker with tds file structure

I have a docker image with texlive installed (via apt not tlmgr). I have a pgfplot in my project which needs a newer pgfplot version. I'm searching for ways to update my pgplots because I can't update it with tlmgr because of base install via…
HeXXeN
  • 1
  • 1
0
votes
1 answer

Create bar chart with bar summ up to 100

I try to create a bar chart in LaTeX with PGFPLOTS with the bars that sum up to 100%. The lower part (let's say 30%) shall be green. The middle part (let's say 20%) shall be yello. The upper part (let's say 50%) shall be red. I can produce plots…
Cyoux
  • 29
  • 2
0
votes
1 answer

Graph in Latex using Tikz and PGFplots

How to draw this graph in LaTeX? I have used TikZ but I can't get it done exactly. This is what I have tried so far: \begin{tikzpicture} \tkzInit[xmax=6,ymax=6,xmin=-6,ymin=-1] \tkzAxeXY \draw[thick] (6,3) -- (-4,5); \filldraw[black]…
0
votes
1 answer

Inserting LaTex Special Characters as xticklabel Values

I'm trying to make a bar chart comparing the distribution of punctuation marks between two datasets. I am trying to get the punctuation mark to appear as the xticklabel for each pair of bars but LaTex keeps assuming I mean to close a pair of $ or…
liamthorne4
  • 315
  • 2
  • 11