Questions tagged [axis]

For labels, markings, or other information, related to an axis of a graph

Filter by
Sorted by
Tagged with
1 vote
1 answer
31 views

Why aren't empty ticks working with empty plots?

I need to do an empty plot for my students to fill. Surprisingly the options xtick=\empty and ytick=\empty do not work when the plot is empty: \documentclass{standalone} \usepackage{pgfplots} \...
user avatar
  • 1,056
0 votes
1 answer
120 views

missing a tick label that has been named

So I made this graph, and this graph can't show me the tick $\frac{5}{2}\pi$ at 7.85. I've tried to enlarge the x max range, give extra ticks (and extra tick label) but nothing works. Anyone can help ...
user avatar
2 votes
1 answer
50 views

pgfplots: shift the xlabel in the middle of the diagram

What do I have to set, to get the xlabel exactly in the middle of the diagram? \documentclass[]{book} \usepackage{pgfplots} \begin{document} \begin{tikzpicture}[font=\footnotesize] \begin{axis}[ ...
user avatar
  • 6,217
0 votes
0 answers
13 views

Setting y axis discontinuity at a certain value

I got the following diagram, that I want to make discontinous at a certain value, so that the "unneccessary" parts are skipped. I already tried adding an "axis y discontinuity", ...
user avatar
3 votes
0 answers
113 views

Minor ticks in log axis missing

I'm missing some minor y ticks in a logarithmic pgfplots axis: This has been generated with: \begin{tikzpicture} \begin{axis}[ ymode=log, ymax=31, ] \addplot[only marks] coordinates {(0,0....
user avatar
  • 2,390
0 votes
2 answers
28 views

Axis numbers overlapping. Any way to reduce the amount of ticks? [duplicate]

Just want to solve this problem, don't need any fancy solution for now, just reducing the amount of ticks should be enough, but couldn't get any close after looking for a while in the PGF manual. ...
user avatar
0 votes
1 answer
40 views

Shortened axis in axis environment

With the axis enviroment in TikZ, how can I make the "shortened" horisontal axis? TIA.
user avatar
  • 423
1 vote
1 answer
39 views

Pgfplots, reverse y dir has no effect in 3D matrix plot

In the PGFPlots manual, matrix plots are not listed among the 3D plot types. However, they seem to work just fine, especially to plot planar data, except for, apparently, the y dir=reverse option ...
user avatar
0 votes
2 answers
53 views

White background behind axis ticks [duplicate]

I couldn't find any solution to this specific problem, just with nodes. I want to make a white background behind all xlabel ticks, so the labels can be read again. My minimal code: \documentclass[...
user avatar
0 votes
1 answer
69 views

Bar graph with tikzpicture

I have this bar chart, but I can't see all the labels in the x axis. What am I missing? Also, entropy bar is not in the right place. Thank you. \begin{figure}[h!] \begin{tikzpicture} \small \begin{...
user avatar
0 votes
1 answer
45 views

Color list not working

When I try to color the addplot using cycle list name=color list it doesn't work for some reason, the color of all the lines stays black. Here is my code: \documentclass{standalone} \usepackage[utf8]{...
user avatar
  • 33
1 vote
2 answers
128 views

How to draw a cartesian plane like this?

I read some topics but I still don't know how to draw this cartesian plane, someone could help? My difficulty is how to draw the intersection.
user avatar
0 votes
1 answer
42 views

How to draw ROC plan with horizontal and vertical legends?

I would like to know how to make an axis identical to the one in the picture with all captions and grids. I have tried a few ways, but I can't make it. If someone can help me it would be great
user avatar
10 votes
3 answers
1k views

Labeling axis in π increments

i would like to lable my x-axis on a tikz-picture in π/4 increments, like in the wikipedia sin and cos graphic 1. This is my code (but it doesnt work): \documentclass{scrartcl} \usepackage{lmodern} % ...
user avatar
  • 103
1 vote
2 answers
96 views

pgfplots 3D: z-buffer not working, showing objects in wrong depth-order

I'm trying to create a simple 3D figure, using the following MWE: \documentclass{standalone} \usepackage{tikz} \usepackage{pgfplots} \pgfplotsset{compat=1.9} \begin{document} \begin{tikzpicture} \...
user avatar
  • 145
1 vote
1 answer
35 views

Hide Axis labels in pgfplots - problem with the xticklabels=\empty

I followed the conversation at Hide tick numbers in a TikZ/PGF axis environment.. However, the xticklabels=\empty appears to not cover the exponential part. Here is the code. \documentclass[12pt]{...
user avatar
0 votes
2 answers
49 views

How to draw an angle on a graph

So I have tried a variety of methods. \scope seems to move my graph to the side, as does the usage of tikz-euclide, as opposed to drawing over my graph. \begin{tikzpicture} \begin{axis}[xlabel=...
user avatar
  • 159
1 vote
1 answer
81 views

coordinates on the x axis of tikz plot are incorrectly displayed

I am trying to draw a function as well as a shaded grid on the same axes. Although I use a step size of 1cm in the grid between -3 and 0, the xticks, as well as the shaded region look misplaced. how ...
user avatar
1 vote
2 answers
52 views

PGFplots: force thicks labels

I need your help. my ticks labels are inside the graph but I need outside, please, help me. my code is: \begin{center} \begin{tikzpicture}[scale=1.3] \centering \begin{axis}[legend pos=...
user avatar
0 votes
2 answers
98 views

How to put fancy axes around a picture with TikZ? [duplicate]

I want to add axes around a picture with TikZ as shown in the following image. I think I can handle positioning the axes, but how can I set them to have this kind of look, rather than being just usual ...
user avatar
  • 13
0 votes
1 answer
26 views

\tkzPointShowCoord not showing its xlabel

I'm trying to plot a std normal distribution filled to a certain point $z_\alpha$, the problem is that \tkzPointShowCoord label doesn't appear in the plot, the following is the code i used: \...
user avatar
0 votes
0 answers
69 views

LaTeX timeline graphic for Phanerozoic Eon

I'm looking for a LaTeX (tikz?) timeline graphic for the Phanerozoic Eon (See GSA GEOLOGIC TIME SCALE v. 5.0), preferably with a single horizontal axis, similar to the timeline formats presented at ...
user avatar
0 votes
0 answers
37 views

Tikz - Custom number of points on axis and equally linespace

How can I reproduce this plot? This is for now my code. I miss only add an equaly linespace on x-axis and the points (k-f_s(k)). \documentclass[crop,tikz,convert={outext=.svg,command=\unexpanded{...
user avatar
1 vote
0 answers
74 views

Pgfplots: plot exponentially halving x values at regular intervals

I want to plot a dataset with pgfplots. In my dataset, 0 < x < 1 and everything interesting happens for values of x close to 1. In particular, the interesting points happen at halving intervals ...
user avatar
  • 11
4 votes
1 answer
81 views

pgfplot polaraxis y tick labels overlapping

I am just trying to create a polar axis plot with yticks being 0.5,0.75,...2.5. However, when I go through with it using: documentclass{article} \usepackage[utf8]{inputenc} \usepackage[a4paper, margin=...
user avatar
1 vote
0 answers
47 views

PGF plot with two y-axis and time format x-axis [closed]

I am having trouble setting the axes for a plot that I want to do. My goal is to have time on the x-axis in format hh:mm:ss and two different y-axes. Somehow, the compilation is weird. Also, I will ...
user avatar
0 votes
1 answer
69 views

Years on TiKZ plot axis are wrong

im building this plot: I finished it successfully, but as you see years on X-Axis are shown incorrectly. Instead of 2017 it shows 2,017 . Please help me! \begin{tikzpicture} \begin{axis}[xlabel={ 1 ...
user avatar
  • 13
0 votes
1 answer
51 views

Fixing histogram drawn using pgfplots [duplicate]

I need to fix my histogram by: Setting the x coords vertically so that the text will be readable without pushing each other. Removing the exponential notations. Also I'm not getting why the vertical ...
user avatar
0 votes
2 answers
48 views

axis lines (spines) of axis offset, and extents to fit last ticks

Consider the image below. There are two properties I would like to replicate with PGFplots Some spines (i.e. axis lines) should be removed (top and right) The spines are pushed outward such that the ...
user avatar
1 vote
3 answers
75 views

pgfplots add xtick from array

I have \points array and I want to add xtick and ytick on my axis automatically from it. How can I do that? \documentclass{article} \usepackage{pgfplots} \begin{document} \begin{tikzpicture} \def\...
user avatar
  • 1,849
1 vote
1 answer
43 views

Set Global Axis Options PGFPLOTS

for some reason setting global options using pgfplotsset while drawing a global legend using the tikz library matrix, does not work. The legend actually does not show at all, so something is wrong. I ...
user avatar
  • 25
0 votes
1 answer
32 views

Overlap of function with number on the axis (pgfplots)

I am plotting a function with pgfplots and I get an overlap of the function with a number on the axis like this: This is the code I am using: \documentclass{article} \usepackage[utf8]{inputenc} \...
user avatar
  • 195
2 votes
1 answer
94 views

How to draw the image in beamer?

I intend to draw the following image in beamer presentation. May you please help me to draw that? I intend to use the following code but it gives an error about package. Of course, the code is not ...
user avatar
0 votes
0 answers
37 views

Generate bar chart with pgfplots with doubling ticks [duplicate]

I am trying to generate an easy bar chart with 4 bars in pgfplots. I don't know why, but the x coordiantes are now twice on the x axis without an actual value. What I wanted to have was only 4 bars ...
user avatar
0 votes
1 answer
64 views

2 3D plots in one graph: changing colors and z bounds are ignored?

I am trying to plot two 3D plots in one graph, but Latex stops recognizing the zmin and zmax values for some reason, so it doesn't compile because dimensions are too large. Reducing the number of ...
user avatar
  • 161
0 votes
0 answers
21 views

Axis with 4 columns

I would like to create something like this picture: but on the axis XY like this: How can I build such a figure divided into 4 parts? And how to place these additional fields on them, in this ...
user avatar
  • 1
0 votes
0 answers
36 views

PGFPLOTS incomplete grid, missing minor grid both right and up directions [duplicate]

I am making a file with pgfplot package and I want the grid to be with minor grids line complete from both sides, this is my trial: \documentclass{standalone} \usepackage{filecontents} \usepackage{...
user avatar
1 vote
1 answer
109 views

Imaginary unit automatic setup in tick marks for imaginary axis

I have seen solutions like this and this (in the question section), but they don't use the axis subenvironment in the tikzpicture environment. If I make a 2-D plot, the ticks, tick marks, and tick ...
user avatar
  • 1,427
3 votes
1 answer
66 views

tikz: Clipping everything outside the axis

Clipping everything outside the axis is doable in pgfplots, but drawing lattices has not been great for me there because \foreach doesn't quite work inside axis environment. The code I came up with is ...
user avatar
0 votes
2 answers
40 views

Center axis labels above axis arrows in coordinate plot

I need a coordinate system with four quadrants and what to center the labels over the x- and y-axis arrows. I am able to do this manually using xshift and yshift but I would prefer to have something ...
user avatar
1 vote
1 answer
65 views

pfgplots tick label alignment

I am trying to generate economics graphs using pgfplots. The default for tick labels is to be centred. Is there any way that I can get a tick label to be aligned to the left or right? My aim is to ...
user avatar
  • 51
3 votes
1 answer
55 views

How do I make a operation inside a node?

I have a graph that's out of scale, but I want to use it for a class I'm preparing. For me to use it, I'd need just to change the numbers in the axis. I'd like to make every x multiplied by 2. I tried ...
user avatar
1 vote
0 answers
45 views

Smithchart affects me the axes of other tikzpiture graphics [closed]

Smithchart affects me the axes of other tikzpicture graphics. Place the x axis up, it does not allow to move the x-axis. I've already tried everything and just basic smithchart affects it. It is not a ...
user avatar
1 vote
1 answer
74 views

How to create a histogram with intervalls and symbols with pgfplots?

I am trying to recreate a histogram with pgfplots in TeX that i have orignaly created with Excel: The problem that i have is that i don't know how to recreate the x-axis with pgfplots. So far I have ...
user avatar
  • 101
0 votes
1 answer
31 views

Making y-axis jump 2 on every tickmark

I'm trying to mak af graph, my problem is that I would like to make the y-axis marks go from -2, 0, 2, 4, 6, 8, 10, 12.... for every mark. But I can not succed. Here is my code. \documentclass[tikz, ...
user avatar
2 votes
4 answers
160 views

How to plot atan2(x,y) like?

How do i plot atan2(y,x) like the Wikipedia picture https://en.wikipedia.org/wiki/Atan2#/media/File:Atan2_diagram.svg I tried \documentclass{standalone} \usepackage{pgfplots} \pgfplotsset{compat=1.10}...
user avatar
  • 359
4 votes
1 answer
97 views

Use year as label for monthly data histogram

I have data in the format year,month and amount. I want to illustrate this data using a histogram. Since the data covers multiple years, printing the months just stacks everything. I try to use the ...
user avatar
0 votes
1 answer
40 views

Scale axis to be 1:1 scale in pgfplots

I am trying to draw a plot as following: \documentclass{standalone} \usepackage{pgfplots} \pgfplotsset{compat=1.17} \begin{document} \begin{tikzpicture} \begin{axis} [ axis lines=...
user avatar
  • 3,039
0 votes
1 answer
130 views

Undefined control sequence inside \foreach in tikz axis

I get an error when running the following code: \begin{frame} \frametitle{MWE} \begin{tikzpicture} \begin{axis}[declare function={f(\x)=\x^3-3*\x^2+\x;}] \addplot[red] {f(x)}; \...
user avatar
  • 145
2 votes
1 answer
164 views

pgfplots move axis label together with axis line

I would like to have the y axis labels of all plots in my document above the y axis line. Usually that is above origin but sometimes I have to move the line out of the way. What I am looking for is a ...
user avatar

1
2 3 4 5
7