Questions tagged [ticks]

The tag has no usage guidance.

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

Setting Pi as colorbar tick with pgfplots

I am trying to set the colorbar ticks as -pi and pi. Is this possible within the colorbar style settings? This is what I have tried so far but it doesn't work. colorbar style={ %at={(0,1.0)}, ...
1
vote
1answer
44 views

Tell pgfplots to put tick labels between tick marks

Is it possible to tell pgfplots to put tick labels between the tick marks instead of at the tick marks? MWE: \documentclass[margin=5pt]{standalone} \usepackage{tikz} \usepackage{pgfplots} \begin{...
1
vote
1answer
57 views

pgfplots: How to set xticklabel date year as YY instead of YYYY?

By default, xticklabel = \month/\year, will be displayed as 04/2019. However, I want to display it as 04/19 instead of 04/2019. Minimum Working Example (MWE): \documentclass{standalone} \usepackage{...
2
votes
1answer
53 views

pgfplots: How to set xticklabel as two line?

I want to design xticklabels as two line texts: First line: Date, e.g. \month/\day Second line: Time, e.g. \hour:\minute Minimum Working Example (MWE): \documentclass{standalone} \usepackage{...
1
vote
1answer
31 views

How to remove Tikz pgfplot ticks from the top, bottom and right borders?

I am creating a histogram, which I've managed to do with the following code: \begin{tikzpicture} \centering \begin{axis}[ ymin=0, ymax=50, minor y tick num = 2, axis background/.style={...
0
votes
1answer
29 views

Removing ticks from top, bottom and right-hand side of column chart and rename x-axis labels

I am trying to make a nice looking histogram of my data, and have managed to produce the following so far: \begin{tikzpicture} \centering \begin{axis}[ ymin=0, ymax=8000, minor y tick num = 2,...
0
votes
2answers
97 views

How to add ticks in a circle in TikZ

Referring to the question How to make add tick to node in tikz, how do I extend this to a circle shape in TikZ. A simple approach is to draw lines as ticks by calculating the coordinates. Sample ...
2
votes
1answer
22 views

Ticks not showing up as intended in a group plot

I am working on a groupplot (still in progress). The problem I have here is that the ticks are not showing up as expected. I have looked into my code and I don't seem to understand how to fix them. ...
1
vote
1answer
29 views

pgfplots: How to force datetime to only display xticks with even times (18:00) instead of odd times (18:34)?

Assumed we have the following plot from user darthbith to display a pgfplot with a time axis: Minimum Working Example (MWE): \documentclass{standalone} \usepackage{pgfplots} \usepgfplotslibrary{...
1
vote
2answers
25 views

xticklabel distance for math expression

I have a pgfplot and the labels in the x axis are not centered as I expected and this is because one of them is higher than the other because of the superscript. \documentclass[]{article} % Use the "...
2
votes
1answer
59 views

TikZ 3D plot : how to add spaces between tick labels to prevent them from colliding?

I have a 3D plot with colliding yticklabels, which I have been unable to fix for now. Here is my minimum working example: \documentclass[10pt]{standalone} % \usepackage[utf8]{inputenc} \usepackage{...
0
votes
1answer
23 views

How to get rid of small ticks at the top of pgfplots

I am looking for a way to get rid of the small ticks at the top of my figure (the small grey ones), but keep them intact along the x-axis? My code is the following: \begin{figure}[h] \caption{...
2
votes
1answer
38 views

why do the first and last ticks of my pgfplot graph have different width?

I have noticed that when I choose the tick marks of my graph to be outside, the first and the last ticks are thinner. Anybody know how to fix that? Here is the code I used. Below is the screenshot of ...
2
votes
2answers
94 views

A diagram with matrices

I want to draw the following diagram which contains two matrices (2x2 on left and 4x4 on right) and a box. Could someone help?
1
vote
1answer
67 views

Adding different Greek characters to individual axis tick labels in pgfplots

I've been scouring the web and the pgfplots manual trying to find an example of labelling different x-axis ticks with different Greek characters. The closest i've found is using xticklabel={$\...
1
vote
1answer
70 views

Scale ticklabels

How can I scale the ticklabels in Tikz to replicate the Matlab command set(gca, 'XTick', xt, 'XTickLabel', xt.^3) As an example, the xtick labels should be converted to the following xtick={10,15,...
1
vote
1answer
21 views

Individually moving z labels gives error in pgfplots

If I add the vertical blue plane to this tikzpicture I lose the ability to individually move the z tick label, i.e. I get the error Undefined control sequence. <argument> (\tick ...
3
votes
1answer
42 views

Moving Tick Markers in a TikZ Picture

How can I move the marker <2A> slightly up in the picture? \documentclass [12pt, a4paper, onecolumn, fleqn] {article} \usepackage [portuguese] {babel} \usepackage [utf8] {inputenc} \usepackage ...
3
votes
1answer
117 views

How to lift ticks=none for plots

Hi tikzpicture experts. I am having trouble re-instating ticks after I suppress it. See how in the second graph(the one with feasible region), all the tick labels are missing even though I am ...
10
votes
2answers
249 views

TikZ being fickle about manually drawing tick marks for marking congruent angles

I am marking two angles of a cyclic quadrilateral on a TikZ diagram with "||". (I am doing this manually; I am not using the angles package.) It didn't look right. I drew the angle bisectors with a ...
0
votes
0answers
70 views

pgfplots: Reduce number of minor ticks in a log log plot

I want to reduce the number of ticks in my log log plot to exactly 3. But I can't tamper with the max space between ticks option, otherwise I'll lose the minor ticks on the y axis. I tried to give ...
1
vote
1answer
32 views

Set the secondary x axis limits the same as the first one on a data plot

I want to plot a data with two x axis (top and bottom) and a y axis. The first x and y axes are set from data. The second x axis limits should be same as the first one. I also need to label some ticks ...
3
votes
1answer
496 views

yticklabels and ytick wont work

I am plotting a graph using TikZ, but the yticks and yticklabels wont be set correctly. This is the code that I use: \documentclass[dvipsnames]{standalone} \usepackage{pgfplotstable} \pagestyle{...
2
votes
1answer
494 views

Change position of individual tick label

Using a ycomb plot which goes below 0 means one of my tick labels is obscured by the line. How do I move this individual tick to above the x axis? Is there a way to do it without having to use the ...
2
votes
1answer
281 views

Two y axes in bar plot with different scales

I am trying to visualize measurements in seconds on the lower x axis, while the upper x axis is supposed to display a different variable (message count). I read the similar questions, but they did not ...
2
votes
2answers
112 views

Get the units of a pgfplot between ticks on both axes (DIN 461)

As in thread Get the auto generated tick distance of a pgfplot (DIN 461) already asked, i am searching for a way to get the units between last two ticks. The solution from the mentioned thread works ...
1
vote
1answer
129 views

Draw a rounded corner frame on all pages using tikz package

I made a standard frame. It should appears on all pages of my document. \documentclass{article} \usepackage[utf8]{inputenc} \usepackage{tikz} \usetikzlibrary{calc} \usepackage{eso-pic} \...
1
vote
1answer
160 views

Dateplot doesn't work if xmin/xmax are specified

Here is a simple datafile data.csv: Time,Value "2017-01-31 12:51:05",500 "2017-01-31 12:51:05",820 "2017-01-31 13:48:14",820 "2017-01-31 13:48:14",500 Here is a simple plot of it: \documentclass[...
2
votes
1answer
797 views

How to remove minor tick marks while keeping grid lines?

I have created the following plot, but I am unable to remove the minor y ticks on the y-axis and keeping the grid lines. Is there any method to achieve this? I searched for a solution, but I believe ...
4
votes
4answers
508 views

pgfplots: How can I customize number formatting styles for log plots based on the numbers?

We have seen in another question how to set the tick numbers on logarithmic axes in a sans serif font when the style is for 10^x numbering. Pgfplots offers additional options for numbering log ticks, ...
2
votes
1answer
123 views

How to remove mantissa on semilogarithmic pgfplots graph (while retaining modifications for sans serif tick font)

Semilogarithmic plots normally mark major ticks with powers of 10 and no mantissa or separator, e.g., 10^3, 10^4,..., rather than 1.10^3, 1.10^4, etc. Pgfplots provides this capability through ...
1
vote
1answer
257 views

How can I remove 10^(−n) notation for values less than 1 in pgfplots?

I have the following semi-logarithmic plot (y-axis() that has the ticks with 10 raised to non-integer powers as shown in figure. I have referred to both these answers [1,2]. However, both failed to ...
3
votes
1answer
309 views

Get the auto generated tick distance of a pgfplot (DIN 461)

I would like to set up my pgfplots to comply with the German Standard "DIN 461". To make it short: We are asked to place the unit of the axis between the last and the second last tick label or replace ...
3
votes
1answer
144 views

Minor xtick marked incorrectly?

I am using the following code to plot same experimental data, and for some reason, minor xticks appear to be misaligned from their intended position. As the x value incrases, there is more and more ...
1
vote
0answers
373 views

pgfplots log axis to show linear style tick labels

I have created a semilogxaxis to plot my data, however I have problems showing the ticks on the x-axis the way I want. At the moment, the ticklabels are shown in the 10^n notation, however I prefer ...
0
votes
1answer
66 views

pgfplot tick mark removed when x axis deleted

I'm making a diagram with only a vertical axis and I want all the tick marks but the "0" tick mark does not occur because I removed the x axis. So I want that tick mark back and all thicker tick marks ...
3
votes
1answer
2k views

pgfplots - Remove tickmarks on right and top of plot

Hello TEX/PGF/Tikz community, I have trouble with tikz as I would like to remove the tick marks on the right and on the top of this plot see the ugly red 'circle' markings in the picture :). I know ...
2
votes
1answer
79 views

Add third line of labels to axis in TikZ

I have a TikZ figure, where one axis is a bit overpopulated. My solution is to add further lines to the labels using extra x ticks={...}, extra x tick label={...}, extra x style={tick label style={...
1
vote
1answer
90 views

Endogenous ticks in pgfplots created by data generating process

I have a two dimensional Data set which is created by an outside program (matlab). I want to plot this using pgfplots. I am only interested in two data points on the x-axis. These should get ticks. ...
1
vote
1answer
374 views

Alignment negative x tick labels PGFPlots

I'd like to ask if there is a way how to align negative xtick labels (those with "minus" sign), so they are alligned as like as positive ones (green box on the picture). I mean the number is aligned ...
2
votes
1answer
181 views

Extra yticks interfering with label distances

I have a series of graphs with similar formatting, but I'm finding some of the labels are positioned too far from the axis numbers, as shown in the screenshots below. The below code reproduces the ...
2
votes
1answer
959 views

pgfplots: Gap Between Axis and Axis Label With Extra Tick on Top: Remove How?

Desired Outcome I'm trying to create a plot with xticks and xtick labels on the lower x axis, along with an extra x tick on the upper x axis. The desired outcome is (almost) this: MWE \...
2
votes
0answers
111 views

How to setup tikz/pgfplots to not put ticks labels outside the axis area?

I have the following figure: I want to remove the -5 tick label or any tick label that is outside of the axis area by default using \pgfplotsset. Is there any way to do that.
1
vote
0answers
92 views

yticks right aligned

I have a problem with a tikz-picture concerning yticks. The plot contains two y-axes and it seems as if tikz cannot cope with that properly. I have already found this link (Aligning ticklabels in ...
5
votes
1answer
1k views

Primary, secondary and tertiary ticks

What options exist for adding 3 (or more) different types of ticks to a graph axis? An example of this formatting would be something like what you see on a standard ruler, where you have the major ...
2
votes
1answer
344 views

Logarithmic axis with more ticks

I have a problem with y-axis of my graph produced with this code: \documentclass{book} \usepackage{tikz} \usetikzlibrary{datavisualization} \begin{document} \begin{figure}[htbp] \centering \begin{...
0
votes
1answer
66 views

How to preserve APA graph ticks direction with center axis line?

Using this answer https://tex.stackexchange.com/a/113669/37570 I tried to apply the same setup to a graph, but it did not work with the center axis lines. The first graph is set up as in the linked ...
1
vote
1answer
432 views

Styling a particular y tick on tikz plot

I want to change the style of a single y axis tick mark. The y-axis is for a car's speed in mph, and I want the speed limit to be a single bold line. I currently have major, and minor ticks set up. I ...
2
votes
1answer
500 views

Trouble with tick label format in pgfplots

With pgfplots I'm experiencing some trouble with tick label format with some "higher" value of coordinates. Here a sample code which is working fine: \documentclass{article} \usepackage{pgfplots} \...
3
votes
1answer
186 views

Number Line with X tick intervals greater than 1

I'm creating a simple number line using the example Labeled Number Line. Where I'm getting stuck is that I want the x axis to start at 120 and go to 280 and only display intervals of 20 (120,140,160......