Questions tagged [ticks]

The tag has no usage guidance.

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
131 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
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
0 votes
1 answer
29 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 ...
user avatar
  • 213
0 votes
1 answer
31 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} \...
user avatar
  • 213
1 vote
1 answer
56 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{...
user avatar
  • 525
2 votes
1 answer
28 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 \...
user avatar
1 vote
1 answer
110 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
1 vote
1 answer
73 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 ...
user avatar
0 votes
1 answer
164 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,...
user avatar
  • 161
1 vote
0 answers
32 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, ...
user avatar
  • 11
0 votes
1 answer
41 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 ...
user avatar
2 votes
2 answers
66 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, ...
user avatar
  • 155
1 vote
2 answers
257 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} \...
user avatar
  • 65
2 votes
1 answer
118 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}...
user avatar
  • 46.2k
2 votes
1 answer
89 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 ...
user avatar
  • 21
1 vote
1 answer
92 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 ...
user avatar
3 votes
1 answer
62 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, ...
user avatar
  • 12.5k
1 vote
1 answer
60 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 ...
user avatar
1 vote
1 answer
78 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,...
user avatar
  • 345
1 vote
0 answers
77 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{...
user avatar
-1 votes
1 answer
47 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[...
user avatar
  • 101
2 votes
1 answer
102 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 ...
user avatar
0 votes
3 answers
119 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) -- (...
user avatar
1 vote
1 answer
32 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 ...
user avatar
  • 615
0 votes
1 answer
48 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{\...
user avatar
  • 53
0 votes
1 answer
76 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. ...
user avatar
1 vote
1 answer
107 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, ...
user avatar
  • 53
1 vote
1 answer
150 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? ...
user avatar
  • 8,458
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, ...
user avatar
  • 1,427
0 votes
0 answers
91 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,...
user avatar
  • 123
0 votes
1 answer
99 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;-...
user avatar
2 votes
0 answers
42 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{...
user avatar
  • 1,005
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 ...
user avatar
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}, ...
user avatar
  • 15
2 votes
2 answers
281 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)... ...
user avatar
  • 151
1 vote
0 answers
65 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 ...
user avatar
  • 8,614
1 vote
1 answer
345 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 ...
user avatar
  • 105
3 votes
1 answer
169 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{...
user avatar
  • 387
4 votes
1 answer
325 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 ...
user avatar
1 vote
1 answer
75 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,% ...
user avatar
  • 1,056
0 votes
1 answer
43 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? ...
user avatar
2 votes
1 answer
77 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,...
user avatar
  • 1,297
3 votes
1 answer
267 views

remove the tick mark but keep the label

I am working on a bar chart. Would like to remove the tick mark on x-axis as shown in the picture. I have tried xtick = none but that remove the label completely. So how can I remove the tick marks ...
user avatar
  • 1,297
2 votes
1 answer
106 views

Tick generation with and without scale label (DIN 461)

Some time ago, I requested your help on creating axis labeling, that is compliant with the German standard DIN 461 (my older question). Thanks Jake for the good answer, that is working well in most ...
user avatar
  • 75
2 votes
1 answer
357 views

axis x line* = top with axis line on the bottom

My question is almost the same as this, but in the linked question the user (an the answer) manually drawn the bottom line of the axis. The problem with that is that the tick marks aren't drawn as ...
user avatar
  • 1,452
12 votes
3 answers
757 views

Graph with cropped letters

If I compile this file: \documentclass{article} \usepackage{pgfplots} \pgfplotsset{compat=1.16,every axis/.append style={ axis x line=middle, axis y line=middle, ticks=none}} \pagestyle{empty} \...
user avatar
0 votes
0 answers
182 views

Pgfplots mixes scientific and decimal labels as plot ticks [duplicate]

I am creating a simple plot like this \begin{tikzpicture} \begin{axis}[% width=14cm, ] \addplot table{% -0.02 0.976511902149045 0.02 0.974250140430107 0.06 0.92759014496851 0.10 ...
user avatar
  • 1
1 vote
1 answer
38 views

change plot axes

Any idea how to change X axis to 0-100? And also delete that 10^-2 and change Y axis to 0-0.025? Thanks. \begin{figure} \resizebox{\linewidth}{!}{ \begin{tikzpicture} \begin{axis} \...
user avatar
3 votes
1 answer
334 views

pgfplots: Missing one group of bars

I'm trying to draw a bar diagram with 4 value groups each consisting of 5 bars. I think it's a scaling problem, so not all the groups were drawn. I already had a look at the documentation but I couldn'...
user avatar
  • 543