Questions tagged [ticks]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
1 vote
1 answer
34 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
42 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
40 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
16 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
55 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{...
  • 361
0 votes
1 answer
55 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 ...
1 vote
0 answers
27 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 ...
  • 804
1 vote
1 answer
41 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,066
0 votes
1 answer
146 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
51 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
40 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 ...
  • 401
0 votes
1 answer
42 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} \...
  • 401
2 votes
1 answer
122 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{...
  • 601
2 votes
1 answer
40 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
130 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,447
1 vote
1 answer
182 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
293 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
47 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
78 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
68 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
308 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
152 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}...
  • 46.8k
2 votes
1 answer
131 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
131 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
86 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, ...
1 vote
1 answer
69 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
89 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,...
  • 345
1 vote
0 answers
102 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
113 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[...
  • 101
2 votes
1 answer
110 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
203 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
45 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
60 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
85 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
157 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
205 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,528
3 votes
2 answers
66 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,447
0 votes
0 answers
109 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
149 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
57 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,015
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
383 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
73 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,734
1 vote
1 answer
375 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
3 votes
1 answer
179 views

Creating a audio volume dial using tikz

I've managed using this stack exchange info to build the following MWE: \documentclass{article} \pagestyle{empty} \usepackage{tikz} \usepackage{geometry} \usetikzlibrary{positioning,calc} \geometry{...
  • 387
4 votes
1 answer
435 views

Remove tick scale label without changing values

I am trying to remove the tick scale label (10^n) without changing the values on the axis. The idea being that I want to give the base as the unit of the graph, not as a scale label. I have the ...
1 vote
1 answer
76 views

Opposite ticklabel positions using middle axes

I need to change the position of my ticklabels because they are not readable: \documentclass{standalone} \usepackage{pgfplots} \begin{document} \begin{tikzpicture} \begin{axis}[axis lines=middle,% ...
  • 1,066
0 votes
1 answer
44 views

How to separate a column bar plot with a differente scale in the same figure?

I have been trying to plot some column bars but some results are overwhelming and make the other disappear from the plot. Is it possible to separate those values in another plot next to the other one? ...
2 votes
1 answer
98 views

make xtick label in multiplication format

Here is what I've got. \begin{tikzpicture}[scale=1.2] \begin{axis}[ xmax=20,xmin=4, ymin=0,ymax=0.6, xlabel=\emph{Number},ylabel=\emph{F1 Score}, xtick={20,16,...,4}, ytick={0,...
  • 1,297