Skip to main content

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.

0 votes
0 answers
18 views

(pgfplots) How to plot every Nth entry from a large CSV file? [duplicate]

I have a large csv file (20,000 entries) and I am having compiling issues. I figure a good way to solve this is to skip certain entries e.g. plotting only every 100th entry. However I am unsure how to ...
mathematurgist's user avatar
0 votes
1 answer
40 views

How to make a bold Z

\documentclass{standalone} \usepackage{tikz} \begin{document} \begin{tikzpicture} % Define the outer Z \fill[white, draw=black, thick] (-2, 2) rectangle (2, 1); \fill[...
user1942348's user avatar
  • 1,101
0 votes
0 answers
21 views

Pgfplots mesh is being rendered with one line only

I am trying to plot a mesh 3d plot with pgfplots, but it is rendering in a way witch is strange in my opinion. It looks lik it's using only one line zig-zagging and so it's difficult to see the graph. ...
André Bueno's user avatar
2 votes
1 answer
35 views

Understanding Spiral Function (potentially 3D) for tikz

I am trying to create a tikz diagramm that shows the precession movement of the LLG equation. Here is an example from wikipedia: So far I have managed the spiral and centre arrow like this: \begin{...
Matis's user avatar
  • 43
0 votes
1 answer
29 views

Using Latex with two plots next to each other error with subfigure

i am running the following code: \begin{figure}[htbp] \begin{subfigure}[b]{0.48\textwidth} \centering \begin{tikzpicture} \begin{axis}[ axis lines=left, ...
SebNik's user avatar
  • 101
1 vote
1 answer
42 views

Colormap along the line curve rather than the axes

Using data from a file, I would like to color the line curve using a custom gradient. However, I would like the gradient coloring to span the line curve rather than the axis. To better illustrate the ...
Meclassic's user avatar
  • 1,827
5 votes
2 answers
292 views

Use for loops to generate TikZ coordinates corresponding to linear combinations of vectors

I am trying to draw linear combinations of vectors. I started defining coordinates manually, but it's too time- and space-consuming: \begin{center} \pgfplotsset{compat=1.15} { ...
EthanAlvaree's user avatar
  • 1,421
1 vote
0 answers
39 views

Plot the fractional part function

To plot the fractional part function f(x)=x-floor(x), I use the following code: \documentclass{article} \usepackage{pgfplots} \pgfplotsset{compat=1.17} \begin{document} \begin{center} \begin{...
Dimitris's user avatar
  • 1,561
1 vote
0 answers
34 views

tikz: remove the * 10^4 at the end of the xaxis [closed]

im plotting a tikzpicture and want to remove the annotation at the end of my x-axis. (*10^4) do you know how to fix it? here is my tikzplot: \begin{tikzpicture} \definecolor{darkgray176}{RGB}{176,176,...
Andre's user avatar
  • 11
2 votes
1 answer
50 views

How do I avoid 'TeX capacity exceeded' error, even though I have a small dataset?

I'm trying to make a scatterplot of some measurement data, which is only a <100 datapoints. So here is my code, hopefully you can help me solve this issue: \documentclass[12pt]{article} \usepackage{...
Benzv2001's user avatar
0 votes
1 answer
65 views

Scatter plot with discontinuity

I have a lot of these scatter plots to produce. I am not able to get the discontinuity correct on both axes an line up labels on both axes My MWE \documentclass[tikz, margin=3mm]{standalone} \...
Jon's user avatar
  • 539
1 vote
1 answer
60 views

Fine tuning: TikZ, pgfplots and Lennard-Jones potential

I'm trying to recreate a faithful copy of the graph shown here. I'm trying and trying again, but I would like to make the curve tend to infinity more quickly for x=0 and tend to 0 more quickly for x=...
user3204810's user avatar
  • 1,539
0 votes
2 answers
36 views

Plot the graph with labels

\documentclass{standalone} \usepackage{pgfplots} \begin{document} \begin{tikzpicture} \begin{axis}[ title={Effect of Positive Checks on Population}, xlabel={Time}, ylabel={...
Botho Chinga's user avatar
1 vote
1 answer
80 views

Graph hardly readable - pgfplots options difficult

I am trying to create a plot representing the number of articles about resilience over a period of time. The data comes from a txt file, looking like this: Publication Years Record Count % of 141519 ...
Orsu's user avatar
  • 113
2 votes
1 answer
53 views

Fill area under curve points

So, I have this code and I need to fill area under curve points. How can I do that? a) First, I need to fill area under curve points from x = 1 to x = 5 b) I need to complete fill area. Thanks. \...
Pedro Salgado's user avatar

15 30 50 per page
1
2 3 4 5
79