Stack Exchange Network

Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [ticks]

The tag has no usage guidance.

0
votes
0answers
11 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,...
1
vote
2answers
49 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
17 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
25 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
17 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
50 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
20 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
36 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
72 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
50 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
49 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
17 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
41 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
93 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
208 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
57 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
29 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
369 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
371 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
222 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
108 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 ...
0
votes
1answer
102 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
123 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[...
1
vote
1answer
689 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
397 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
113 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
225 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
294 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
128 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
332 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 ...
2
votes
1answer
1k 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
77 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
84 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
324 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
166 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
777 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
104 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
83 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
310 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
64 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
396 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
460 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
164 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......
4
votes
1answer
2k views

pgfplots: how to move extra x tick label vertically down

I have a pgfplot where I added extra x and y tick labels. For the extra y tick labels, I could figure out how to move them a little bit to the left by means of \hspace*{}. I want to get the same ...
1
vote
1answer
189 views

Force ticks to be perpendicular to axis in ternary plot

I understand that for most ppl the ticks in ternary are ok, but I need them to be perpendicular to the axis. The axis in ternary plot are aslope, i want them to be in 90 degrees with the axis.See my ...
2
votes
1answer
614 views

Overlay xticklabel and yticklabel in pgfplots

In the picture below I want to overlay the xticklabel $a$ and yticklabel $f(a)$ in beamer. Is it possible to overlay ticks labels? If it's not possible, I can place de labels as nodes, but in that ...
3
votes
2answers
209 views

How to create a list ticks based on the computation of a given list in pgfplots?

I would like to create lists of ticks on the x and y axises. I noticed a method of generating a new list from this post [How to use a macro inside tick definition in pgfplots]. I modified that code ...
2
votes
1answer
244 views

PGFPlots consistent multiplier at ticks labels

I need a little help with multiplier format in the PGFplots. The MWE is: \documentclass{standalone}% \usepackage{tikz}% \begin{document}% \begin{tikzpicture}[baseline]%, \begin{axis}[ ...