Questions tagged [ticks]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
1 vote
2 answers
78 views

Add unit as single tick label

I want to use the second to last tick label as the place for my unit, as shown below. Is there a way to replace it? MWE: \documentclass{article} \usepackage{pgfplots} \begin{document} \begin{...
  • 530
1 vote
0 answers
30 views

Is there a way to center the output of this assessment table custom environment?

The custom environment is created in the answer by Niel de Beaudrap here: Assessment table. However I can unfortunately cannot center the table in my tex file. I have tried to use centering, \begin{...
0 votes
0 answers
25 views

How do I remove the powers of 10 from log axis? [duplicate]

How do I remove the powers of 10 in the x log aixs? \documentclass[11pt, a4paper]{article} \usepackage{tikz} \usepackage{pgfplots} \pgfplotsset{compat=1.18} \begin{document} \begin{tikzpicture} ...
  • 379
0 votes
0 answers
22 views

Reducing tick label size locally with the anyfontsize package

I'm trying to reduce the size of the tick labels for these figures. So far, I used the anyfontsize package, but got this behavior in which the left figure has the intended tick label size, but all the ...
  • 1
0 votes
0 answers
25 views

Shift second right y-axis label and ticks [duplicate]

I would like to shift the second right y-axis label to the right along with the ticks so it does not interfere with the first right y-axis label and ticks. Here is the code and its output: \begin{...
  • 163
1 vote
1 answer
97 views

Adjust decimal precision of single ticks in tikzpicture [duplicate]

I have a little question regarding the decimal precision of certain single ticks in a plot generated by tikzpicture. Minimal example: \documentclass{article} \usepackage[utf8]{inputenc} \usepackage{...
  • 13
2 votes
1 answer
111 views

PGFplots: x,y ticklabel overlapping with the plot

I'm trying to plot two boxes using pgfplots. However, the tick labels are overlapping with the plot itself, which is quite annoying: Ideally I want them so that, e.g. k_2^- is on the top of the red ...
  • 79
1 vote
2 answers
43 views

How to get rid of unwanted tick?

How do I get rid of unwanted ticks like those specific ones I marked blue in the picture? \documentclass{article} \usepackage{pgfplots} \pgfplotsset{compat=1.18} \begin{filecontents}{data.txt} 1 ...
1 vote
0 answers
20 views

Error in grid of log scaled .tikz file generated by matlab2tikz

I have generated a tikz file by matlab2tikz. The figure has grids in log mode. However, it does not show the grid at 2x10^7 although xmax=3x10^7, as shown here: When I increase the xmax=4x10^7, it ...
  • 43
1 vote
1 answer
70 views

How to draw a bar as a node

Could anyone tell me how is it possible to add "bars" as a node such as in the image below : I would like to implement the "dl" segment : \documentclass{article} \usepackage{...
  • 413
0 votes
1 answer
78 views

pgfplots, multiply values, add ticks without numbers

I am new to Latex and want to add some plots with pgfplots. I want to make musical tempo graphs. So the x-axis indicates the respective beat and the y-axis indicates the bpm value. I need a tick for ...
2 votes
1 answer
51 views

Change to log axis using `contour prepared` in pgfplot

I have data that becomes almost linear when plotting it in a logarithmic contour plot. Therefore I want to generate the contour lines externally and store the data logarithmically. Then I want to use ...
  • 835
1 vote
1 answer
48 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} \...
  • 1,160
0 votes
1 answer
158 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 ...
0 votes
0 answers
133 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", ...
0 votes
1 answer
51 views

Is it possible to have a plot with ticks but without their numbers?

I want to save space when stacking many axes over each other. The plots have common domain, and I don't want to lose space for the same information repeated (the numbers on the x-axis). Is it possible ...
  • 421
0 votes
1 answer
44 views

Ticks formatting in PGF, how to switch to completely decimal without powers of 10 [duplicate]

The ticks are sticking close to each other, almost overlapping. How to change the ticks from $2.5\cdot 10^{-2}$ to just $0.025$ without changing the dimensions of the diagram ? \begin{tikzpicture} \...
  • 421
2 votes
1 answer
225 views

Regular tick marks set to draw=none, but extra tick marks also not being drawn?

In the following code \documentclass{article} \usepackage{tikz} \usepackage{pgfplots} \pgfplotsset{compat=1.17} \definecolor{gold}{RGB}{255, 184, 0} \begin{document} \begin{tikzpicture} \begin{...
  • 701
2 votes
1 answer
85 views

Pgfplot with two y-axes not showing correct ytick values

I am trying to plot a graph with two y-axes but the values keep showing something else than what I intended. Any tips on how to fix this? Appreciate it. \begin{tikzpicture} \centering \...
1 vote
1 answer
184 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 ...
  • 1,531
1 vote
1 answer
266 views

No tick labels in gnuplot epslatex

I am trying to plot a function in gnuplot with epslatex terminal to be included in a Latex file: reset set terminal epslatex color set xlabel '$x$' set ylabel "$f(x)$" rotate by 90 set ...
0 votes
1 answer
451 views

How to shift bars in bar graph?

I have plotted the following figure: I would like to shift the green bars to the right, so they become adjacent on the right of the blue bars. Yet the green and blue bars have the same vertical axis,...
  • 161
1 vote
0 answers
52 views

Tikz Bar graphs with many coordinates per y value [duplicate]

I have a few problems with the following code: \begin{figure} \caption{test}\label{fig:sourceType} \begin{center} \begin{tikzpicture} \begin{axis}[ xbar, reverse legend, ...
  • 11
0 votes
1 answer
151 views

Ticks on the y axis not working as anticipated

I am trying to have a plot where the ticks on the y axis are 1, 1.004, 1.008, 1.012, 1.016, and 1.02. However, only the ticks 1, 1, 1.01, 1.01, 1.02, 1.02 are shown in the figure (see below). I was ...
2 votes
2 answers
76 views

Improving that tikzpicture pgfplot by breaking the domain

I'm trying to improve that figure: \documentclass{standalone} \begin{document} \usepackage{tikz} \usepackage{pgfplots} \begin{tikzpicture} \begin{axis} [axis lines=center, height=46mm, width=120mm, ...
  • 179
1 vote
2 answers
358 views

histogram ticks alignment

I'm trying to create a histogram in latex but the ticks are not aligning with the bars and i'm not sure why. this is what i have so far: \documentclass[12pt]{article} \usepackage{fancyhdr} \...
  • 65
2 votes
1 answer
216 views

Increase the thickness of an arrow in xy and tikz-cd package

We start from these simples MWE. The first is done with xy package, with your tips: \documentclass[a4paper,12pt]{article} \usepackage[all]{xy} \begin{document} \xymatrix{A \ar[r]& B} \end{document}...
  • 49.6k
2 votes
1 answer
188 views

How to define specific styles for each tick?

I want to change the style (such as color, font, size and shape of tick mark) for each tick. In this example I want to change the color of the numbers (2,3,4) to something different and define a ...
  • 21
1 vote
1 answer
201 views

Tick labels not showing when using `contour gnuplot` and `axis line = middle`

The following code is the modified answer of @user121799 in TikZ: Plot contour lines. The difference is that I added axis x line = middle, axis y line = middle in the first line of the axis ...
3 votes
1 answer
125 views

Placing some tick labels on the right in pgfplots

Consider the following plot. \documentclass{scrartcl} \usepackage{pgfplots} \begin{document} \begin{tikzpicture} \begin{axis} [ width=5cm, height=7cm, domain=-90:90, ...
  • 13.7k
1 vote
1 answer
120 views

Logo only in some slides

I am using a presentation available on Overleaf ["TU Chemnitz Beamer Presentation Template"]. A circle has been created in each slide and through the code shown here the logo is inserted ...
1 vote
1 answer
131 views

How to hide axis labels (except some of them) inside axis environment without disabling a grid?

Let's say you want to draw a plot: \documentclass[dvipsnames]{article} \usepackage{pgfplots} \usetikzlibrary{babel,calc,backgrounds,quotes,angles,patterns,decorations.markings,intersections,arrows,...
  • 365
1 vote
0 answers
136 views

rotate numbers on x axis [closed]

I tried a lot, but since gouplot is new, and I can't handle it very well, i couldn't rotate the number on the x_axis. \documentclass[border=5mm]{standalone} \usepackage{pgfplots} \pgfplotsset{...
-1 votes
1 answer
229 views

why I am not able to see minor ticks on one of the axes on log scale?

I am plotting a graph using pgfplots wherein both axes are on the log scale. I am not able to see minor ticks on y-axis, though there is nothing that should prevent it from appearing. \documentclass[...
  • 131
2 votes
1 answer
119 views

How to draw a linear axis with different labels and references

In line with my previous question How to draw a linear axis with tick labels at different alternative distances?, which was answered successfully by @user30471, now I need to make a variation based on ...
0 votes
3 answers
278 views

Tikz no border where rectangles touch

How can i achieve, that the rectangles, where they touch, there is no black border. \begin{figure}[h] \begin{tikzpicture}[xscale=6,yscale=0.5] \draw[thick] (0,0) -- (1,0); \draw[thick] (0,.1) -- (...
1 vote
1 answer
65 views

On fixing the issue with ytick alignment in groupplot

I am experiencing some issues while trying to have a common y axis scale as well as ticks. I tried some solutions like every plot/.style to ensure the range of the axes over the groupplot is the same ...
  • 615
0 votes
1 answer
78 views

How can I make \newcommand work together with \ticknum

I'm trying to make a lot of different variations of PGFplots label styles so I'm trying to define different values and use \ticknum to pick one of them for example \newcommand{\x0}{0.3} \newcommand{\...
  • 53
0 votes
1 answer
97 views

How to draw a linear axis with tick labels at different alternative distances?

I need help to draw a linear axis that have a ticks labels below of axis in progresive diferent distance one from the other like a stair. I try draw this using tikz package, but I don't know do that. ...
1 vote
1 answer
272 views

Changing some specific xticklabel styles

I would like to change some xticklabel styles but not all of them only few and not in specific positions (so it wont be 1st or last always). How could I change only lets say (3,5) labels to (Hello, ...
  • 53
1 vote
1 answer
325 views

pgfplots: How to add steps in xticklabels from table?

I have a plot with too many xticklabels, they overlap side by side. To solve this, I would like to print only each 7th xtick (each week gets one tick.) How can I add a step-logic ti the xtick-labels? ...
  • 8,628
3 votes
2 answers
69 views

Single ytick label not moving

Code: \documentclass[12pt]{article} \usepackage{pgfplots} \usepackage{float} %\pgfplotsset{compat=1.16} \usepackage{tikz} \usepackage{siunitx} \usetikzlibrary{shapes, arrows.meta, automata, ...
  • 1,531
0 votes
0 answers
143 views

Adding axis ticks to a PDF in Latex

I have been trying to find a way to add axis ticks and axis label on a PDF. Thus far I have only found a way to add the axis label. Could someone help me? I am trying to go from this: to axis ticks,...
  • 123
0 votes
1 answer
214 views

Disabling scaled x ticks causes "Dimension too large" in pgfplots

I want to change my x axis tick labels to read 0K 20K 40K 60K 80K similar to my y axis tick labels in this chart: My LaTeX MVP generating the image: \begin{filecontents*}{data.csv} iter;prod 0;-...
2 votes
0 answers
62 views

Minor log y ticks dissapear randomly

Does anybody know how to force y log minor ticks? In the following example, the ticks do show up: \documentclass{standalone} \usepackage{pgfplots} \begin{document} \begin{tikzpicture} \begin{...
  • 1,035
0 votes
0 answers
16 views

pgfplots: use dimensions instead of ticks [duplicate]

I need to build a graphic in pgfplots with symbolic distances between the keypoints, as shown in the figure below. I know how to use symbolic coords, but if I was to represent the x coordinates as ...
0 votes
1 answer
31 views

How can I keep pgfplots bar chart from autoskipping unused axis labels?

I'm making a bar chart. This is the code: \begin{tikzpicture}[xscale=.7] \begin{axis}[ symbolic x coords={2, 3, 5}, xtick={2, 3, 5}, ytick={0,1,2,3,4,5}, ...
  • 15
2 votes
2 answers
539 views

Draw invisible axes with visible labels

I was fiddling with how to plot raw signals to LaTeX and it turned out that there is no good solution (tikzexternalize, R+kniter, matlatb2tikz are cool but exhaust TeX memory if is really raw data)... ...
  • 161
1 vote
0 answers
102 views

How to offset and fill extra tick labels with same size boxes

in the code provided below, I wanted the extra x tick labels to show up better by including an opacity filled box around the text so that the text shows up better with the boxes above the x-axis and ...
  • 8,898
1 vote
1 answer
398 views

How to individually customise tick marks and labels in histogram

I need to mark three x values in a histogram. I thought a way would be introducing extra x ticks and customising major tick length and thickness so they show up more conspicuously. Is it possible to ...
  • 105