Questions tagged [pgfplots]
51 questions
0
votes
1 answer
How to draw double y-axis barplot graph like this in pgfplot?
I used the table data below to draw the plot using Matplotlib.
name, value_axis1, value_axis2
A, 16, 299239.74
B, 18, 292816.67
C, 3, 72799.22
D, 10, 116248.54

Salah Uddin
- 25
- 1
- 7
0
votes
1 answer
Graph scaling with LaTeX - Circle becomes Ellipse
I have the following LaTeX code that creates a graph and draws a circle. However, the circle doesn't look like a circle, rather an ellipse. I think this is because of how my graph is setup. Is there any way to keep the current look/scaling of the…

itsMeMoriarty
- 125
- 1
- 1
- 9
0
votes
1 answer
Bar plot with logarithmic y axis in PGFPlots: how to shift bar bottoms
I want to make a bar plot in PGFPlots with a logarithmic y axis. The issue I have is that the bar bottoms are drawn relative to 10^0, when I want the bottoms at something below ymin. See below:
In other words, there should be no gap between the…

tsj
- 758
- 3
- 23
0
votes
1 answer
Setting a default plot in Tikz
So I have this code :
\pgfplotsset{myaxis/.style={
axis x line=left,
axis y line=left,
grid=both,
title={lifeguards needed for swimmers},
xlabel={number of lifeguards},
ylabel={number of swimmers},
grid=both,
…

Cliff Stamp
- 531
- 5
- 11
-2
votes
1 answer
can anyone guid me to plot the image in latex using tikz. i have shared the image file
I want to draw this image in a latex file using tikz and pgfplots. I have no idea I to do it. i just need the exact image shown in the image file in latex code

prasobh
- 3
- 2
-2
votes
1 answer
Big-O Notation's Pgfplots Representation
I am looking for graphs of big-o notation terms below;
O(1) is a constant time complexity
O(n) is a linear time complexity
O(log_2(n)) is a logarithmic time complexity (I mean log basis 2)
O(n log_2(n))
O(n^2) is a quadratic time complexity
O(n^3)…

hsnclk
- 77
- 2
- 12