Questions tagged [axis]

For labels, markings, or other information, related to an axis of a graph

Filter by
Sorted by
Tagged with
1
vote
0answers
38 views

[ngerman]babel + pgfplots + axis + text height = ☇

Feeding \documentclass{article} \usepackage[ngerman]{babel} \usepackage{pgfplots}\pgfplotsset{compat=1.14} \begin{document} \begin{tikzpicture} \begin{axis}[ xmax = 5.5, ...
0
votes
0answers
25 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,...
2
votes
1answer
64 views

Push tikz nodes to the axis limits as much as possible

I would like to place nodes to straight lines as close as possible to the axis limits but still in the axis, regardless of the length of the node text. While I was able to do this for labels that ...
2
votes
1answer
57 views

How to plot only positive region in tikz

I've got the following code here (Drawing Sinusoids with Phase difference), but now I have the parameter 'time' on the x-axis, therefore I'm trying to have only the positive region but I'm having ...
0
votes
0answers
34 views

How to draw this sine function with TikZ axis [duplicate]

ok, I have a problem with drawing this, can anyone help me, I need a full code for identical graph.Thanks in advance. :(
0
votes
1answer
50 views

Fill between two circles in Tikz with addplot

I want to draw the following graph with specific region filled This is my code, I only get the result right of the x-axis. when I change clip={domain=0:3} to clip={domain=-3:3} it didn't work \begin{...
0
votes
1answer
24 views

use table data within text and in an axis environment

In a long table they inform me about an experiment with particles, in the first column I have radio data and in the second column, I have energy data. In my document, I need to call randomly some ...
1
vote
2answers
29 views

How to get grouped x-label with curly brace exactly align with the axis co-ordinates?

How to get the grouped labels with curly braces exactly in concurrence with the tikz axis, I could mange to align with arbitrarily value, is there any other way to align automatically?. For example, ...
1
vote
2answers
45 views

How to place inline two graphs

I have two graphs side by side, but when I add \caption{some my caption text here} the second graph goes to the next line. How to fix that? \documentclass{book} \usepackage{pgfplots} \pgfplotsset{...
0
votes
2answers
36 views

Problems in showing all scale values in a plot

I have written this latex code that generates a plotting of lines. How can i make the sides have every value instead of only the even values ? Thank you. Code: \documentclass{article} \...
0
votes
1answer
62 views

How to draw sine wave graph

How to draw sine wave graph which starts at (-5, 0.5) and ends at (5, 1.5)? \begin{tikzpicture}[scale=0.8] \begin{axis}[xlabel=$x(t)$, ylabel=$t$, grid=major,xmin=-5 xmax=5, ymin=-2, ymax=2, domain=...
1
vote
0answers
52 views

how to remove lines [closed]

Which option should I use to remove the axis lines, except the t and x(t) axis
0
votes
1answer
24 views

pgplot how to hide yaxis negative part

I have made this pgfplot but not able to remove yaxis negative part. I want yaxis to start from 0 above. The complete running code and picture is attached. Kindly guide me in this regard. \...
0
votes
1answer
15 views

problem with y label and x label

I have a problem with the axis labels. When I scale down the graph it changes my location and they don't look like they should. If I set the scale to 1 it looks good but I change the scale and mess up ...
3
votes
1answer
108 views

How can I make this graph?

I have a problem with this graphic. \begin{tikzpicture} \begin{axis}[ axis lines=center, grid={major},clip=false,grid style={dashed}, y axis line style={very thick,-Stealth},x axis ...
1
vote
1answer
26 views

Z axis position in a 3D plot

I probably missed it on pgfplots.sourceforge but how can I have the z axis positioned as the red and not in front ? MWE \documentclass{standalone} \usepackage{pgfplots} \usepackage{tikz} \...
1
vote
1answer
21 views

Axis, real scale

I have a problem with the scale of my graphic. i need that it's a real scale(symmetric). \begin{tikzpicture}[scale=1] \begin{axis}[ axis x line=middle, axis y line=left, y axis line style={...
1
vote
1answer
33 views

Tikz: Declaring a function in tikzpicture is messing with my axes

I am trying to create some diagrams illustrating Riemann sums and am having trouble getting my axis lines to be centered when I declare a function. Note: I am using some code I found online that ...
0
votes
0answers
24 views

Making an axis break

so I'm working on a graph in pgfplots and in my data there is are a few outliers as you can see here so I was wondering how can I break the y axis as to enlarge the difference between the other 3 ...
2
votes
1answer
41 views

Two y-axis graph problem with ylabel and legend - PGFplots

I have problems with using a two y-axis graph. \documentclass{article} \usepackage{tikz} \usepackage{pgfplots} \begin{document} \begin{tikzpicture} \begin{axis}[ axis y line*=right, ...
2
votes
1answer
68 views

the y-axis is crazy

i have this graph where the axis is wrong! the y-axis is separated.. I think that it's wrong "axis x line" and "axis y line",but i can't fix it \begin{tikzpicture} \begin{semilogxaxis}[ axis x ...
1
vote
1answer
66 views

help with this semilog scale

I have this semilogarithmic scale in Latex: \documentclass{standalone} \usepackage{tikz} \usepackage{pgfplots} \begin{document} \begin{tikzpicture} \begin{semilogxaxis}[xmin=1, xmax=1e5, domain=1:...
0
votes
1answer
27 views

Set axis ratio / scale in pgfplots axis in TikZ

I've got the following tikzpicture setup where I'm drawing a circle on top of an x-y plane. I'm using the axis environment from the pgfplotpackage, however by setting the x and y limits my graph is ...
0
votes
2answers
27 views

PGFPlots - When setting ymin on bar plot, gap occurs between bars and the x-axis labels

I'm sing PGFPlots in pdflatex, I'am trying to set the minimum value of the y-axis to be 0. However, when i use the ymin=0 command, I get a gap at the bottom of the graph, between the bars and the ...
0
votes
2answers
71 views

How to insert 6 tikzpictures in a landscape page?

I inserted a landscaped page in my document to containing 6 figures. I want 4 small figures in the first row and 2 big figures in the second row. I have tried many ways but can't find a beautiful ...
3
votes
1answer
44 views

X-Axis break for boxplot with groupplot

I'm currently stumped in how to proceed to get an x-axis break for my boxplot. From going through slightly related tex.stackexchange posts, I'm guessing this should be achievable with groupplot, but ...
1
vote
1answer
95 views

Tikz pgf loglog y-axis and log x-axis for use as Weibull probability network (german: “Weibullwahrscheinlichkeitspapier”)

I am trying to implement a Weibull probability network (german: "Weibullwahrscheinlichkeitspapier") with tikz-pgf. Please take a closer look at the left y-axis: it is not log, it is double log! I ...
1
vote
1answer
28 views

How can I have extra space for x axis in this line plot?

I am trying to construct a line plot as follows. I need extra space for the symbolic x axis so that I can add notation $\tau=\bar{Y}{1,1}-\bar{Y}{1,0}$ next to the brace. is there anyway to do this? ...
1
vote
1answer
33 views

How do I position the x and y labels simultaneously for adjacent tikz plots?

I have code that produces two tikz plots, one above the other. It uses pgfplotset to define a custom style for the axes, which is applied to both plots. I'm trying to change the position of the x ...
0
votes
2answers
45 views

Max x-ticks are not displayed correctly even though xmin/xmax is used

I have been searching for an answer to my problem but I can't seem to find one.The x-axis ticks do not display the min/max tikz and I do not understand why. As you can see, the max x-as values -120 ...
1
vote
2answers
57 views

Is there a way to ignore a plot for the axis limit calculation in pgfplots?

I have two data files, one with measurement values (data.dat) and a second one with model data that describes how the values in data.dat are expected to behave (model.dat). Values in data.dat are ...
1
vote
1answer
20 views

Label certain value on axes for pgfplots

I am new to Latex, and am drawing an exponential function like this: However, when my preview shows me this instead: Here's my code: \documentclass{article} \usepackage{graphicx} \usepackage{tikz} \...
1
vote
1answer
42 views

More gridlines in plot

How can I get more gridlines, fx. on the x-axis for -10,-9,-8,...,14,15 and not as in my pictur -10,-5,0,5,10,15. How do I do that? \documentclass[10pt]{article} \usepackage{pgf,tikz,pgfplots} \...
0
votes
0answers
43 views

Why is there strange $\cdot 10^4$ in this pgfplot?

Consider: \documentclass[article,oneside]{memoir} \usepackage{pgfplots} \begin{document} \begin{tikzpicture} \begin{axis}[title = FOO, ybar, bar width=2pt, axis x line*=bottom, axis y line*...
1
vote
1answer
60 views

Different behaviour of pgfplots xticks and extra x ticks

I am having some issues with extra x ticks in semilogarithm plot. I want to add few extra ticks to x axis but then x ticks are overlayed with the extra ticks 10^ potential. Here is the code: \...
1
vote
1answer
34 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 ...
1
vote
1answer
45 views

How to move x-axis labels?

In this figure two of my x-labels overlap with functions. I would like to either move the labels to the top or perhaps give them a white box? Not sure what looks better. How can I do that? \...
2
votes
3answers
179 views

Line not exactly on the x-Axis

My problem: The plotted line does not lie exactly on the axis... Here is my output: and here is the code to generate it: \documentclass[tikz,border=2mm]{standalone} \usepackage{pgfplots} \begin{...
1
vote
1answer
26 views

Assing specific shifting values to yaxis tick labels and keeping 'apparent' separation distance

I want to make specific tick labels on yaxis to shift far enough so they do not overlap bars in a stacked bar chart, but also I would all labels to keep the same 'apparent' separation distance (this ...
2
votes
2answers
33 views

Why is only every other symbolic axis coord showing up?

\documentclass{article} \usepackage{pgfplots} \pgfplotsset{ compat=newest, axispower/.style={ xbar, y axis line style={ opacity=0 }, axis x line=none, tickwidth=0pt, xmin=0, ...
1
vote
1answer
60 views

Simplification and circles pointing to axis help of multiple coloured yaxis pgfplot

I have generated the below plot how I want. Can this be simplified? However I found it very convoluted to colour the y axis, labels and tick labels, whilst keeping the x axis black. Setting the ...
1
vote
1answer
73 views

Can't get a line on a graph from a .csv file

I am trying to generate a plot from a .csv file. My .csv file contains the following data and it is named HeightsAndWeights.csv: To generate the plot I use the following code: \documentclass{...
0
votes
1answer
53 views

Switch condition (IfStrEqCase) - no match & use inside pgfplot axis

I am trying to learn how to use switch conditions to apply in a document I am creating that contains plots. Here is an extract to create a MWE : \documentclass[border=2pt]{standalone} \usepackage[...
2
votes
1answer
36 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 ...
2
votes
1answer
76 views

multido: vertical vector

From the first page of multido documentation we can see a horizontal vector with a fixed-point addition system. Can I create the same vector, but vertically? Alternatively, are there better ways to ...
1
vote
0answers
49 views

tikz: put figure (no graphic) inside axis environment

Is it possible put a code-made figure (not loaded externally) inside an axis environment? In barely words, a code-made figure in place of a "ordinary" plot. In this code, there is what I would like to:...
2
votes
1answer
55 views

tikz: axis values overflow

I need to enter values in the vertical axis: this is my attempt \documentclass{article} \usepackage{modiagram} \usepackage[version=3]{mhchem} \usetikzlibrary{positioning} \usepackage{chemmacros} \...
2
votes
1answer
198 views

tikz: molecular orbitals for ICl

While modiagram is bugged (LaTeX3 Error in MOdiagram package) I decide to make my own molecular orbitals diagram for iodine chloride ICl based on this. Could you suggest how to add the relative ...
1
vote
1answer
153 views

Only display max/min values on axes in Pgfplots

I have the following function in pgfplots: \begin{tikzpicture}% coordinates \begin{axis}[xlabel=$x$,ylabel=$y$, axis lines = center, every axis plot/.append style={ultra thick}, ymin=-1,ymax=7] \...
2
votes
1answer
117 views

pgfplots: How to set true dimensions of axis

I would like to have axis dimensions in real TeX units. \documentclass{article} \usepackage{pgfplots} \begin{document} \begin{tikzpicture} \begin{axis}[ xmin=0, xmax=1, ymin=0, ...

1
2 3 4 5