Tagged Questions
4
votes
1answer
34 views
pgfplots: Splitting xlabel on two lines
I want to split xlabel into lines. My MWE is below:
\documentclass{standalone}
\usepackage{pgfplots}
\pgfplotsset{compat=1.7}
\begin{document}
\begin{tikzpicture}
\begin{axis}[
% xlabel ...
9
votes
2answers
103 views
How to add legend to contour plots?
The following does not work:
\documentclass{standalone}
\usepackage{tikz,pgfplots}
\begin{document}
\begin{tikzpicture}
\begin{axis}[view={0}{90},legend entries={foo,bar}] % 'legend entries' causes ...
0
votes
1answer
51 views
Where is the pattern list gallery for pgfplots?
Where is the list, or gallery of the patterns available for pgfplots?
3
votes
1answer
45 views
How can I display tick marks on only one axis of a pgfplots graph?
How can I display tick marks on only one axis of a pgfplots graph?
Here is some simple code to work with:
\documentclass{article}
\usepackage{tikz}
\usepackage{pgfplots}
\begin{document}
...
1
vote
0answers
73 views
Plotting a histogram from a dat file using pgfplot
I want to create a histogram from a dat file with two columns, error and frequency. It also has a large amount of bins, 501.
I have followed instructions provided elsewhere on this site but the data ...
6
votes
1answer
83 views
Using nan values in pgfplots
I use addplot to plot a data set which has nan values.
The data file contains 5 columns.
First column is the x-axis (time), the second and fourth is the wavelenght (same element, but 2 measurements) ...
0
votes
1answer
61 views
pgfplots: How to fix the number of yticks?
With max space between ticks= it is possible to set space between ticks, but I would like to setup the number of ticks, so all my graphs will look similar. I would be happy with 4 ticks, so if y vary ...
2
votes
1answer
67 views
How to tell pgfplots to keep empty “series”?
I have a plot with xticklabels defined as symbolic.
In a modified version of my plot, I want to set ymin value. When doing this, my plot is automatically updated: all x series having only points ...
3
votes
1answer
57 views
tikz plot change one value of x axis
I'm not so familiar with tikz plot. The plot looks actually like it should, but I would like to change the last position value 300 to n in the plot.
Is this possible ?
\documentclass[]{article}
...
6
votes
1answer
80 views
Pgfplots: Drawing Arrows Along Contour Plots
I would like to draw "stealth" arrows in place of the "0" labels along the trajectory in the phase portrait pictured below. I decided to draw the trajectory using the contour functionality of ...
3
votes
1answer
53 views
TikZ/PGF \closedcycle to y axis
Consider the following MWE:
\documentclass{article}
\usepackage{tikz, pgfplots}
\begin{document}
\begin{tikzpicture}
\begin{axis}
\addplot [domain=0.7:1.6,samples=20, fill=red!50!white]
...
7
votes
1answer
138 views
Define error bar color in scatter class
I'm using scatter/classes to define color and markers for a plot, and I would like to specify the error bar color this way as well (to match the marker color). I have seen the error bar colors in ...
1
vote
1answer
43 views
Set xstep and ystep pgfplots
I have this MWE. My question is how can set xsep and ystep in the axis so that they will properly appear, and without have to know in prior the range of values: xtick={0,0.1,...,1}, ...
2
votes
1answer
65 views
pgfplots grouped bar chart from file
I am trying to create a grouped bar chart with pgfplots from a file that contains a data table. However in the resulting picture the bars are not grouped but on top of each other.
Every working ...
5
votes
1answer
102 views
Fill the area enclosed by multiple functions in a single plot
I wish to fill the area enclosed by four functions, as indicated by the hatching in red in the figure below:
So far I've been able to fill the area between each pair of functions, as shown below:
...
5
votes
1answer
105 views
Align pinned nodes in PGFplots
I'm working with plots generated from matlab2tikz and I have several plot lines close to each other. Labeling them is proving difficult, but I believe a good looking solution could be to list the ...
1
vote
0answers
65 views
Issue with PGFPlots text
I'm trying to generate some plots using TikZ, with the following code:
It's not about babel, fontenc, or inputenc; I've tried removing them to no avail.
\documentclass[a4paper]{article}
...
3
votes
2answers
118 views
LaTeX - PGF groupplot - polar axis
I can't find the answer anywhere, is it [and how] possible to make a group plot of multiple polar graphs? For grouping, I use pgf.groupplot library, for polar axis, I use \begin{polaraxis} from pgf ...
4
votes
1answer
135 views
Put numbers in legend using pgf pie
I would like to have the numbers that are inside the pie chart to be in the legend. How can I make that happen?
Here is the MWE:
\documentclass{article}
\usepackage{pgf-pie}
\usepackage{tikz}
...
1
vote
1answer
87 views
Pgfplot figure off-center
I create a tikzpicture in standalone mode (see code below). Then import the resultant .pdf file into my document via \includegraphics (see pic). However the axis labels are cut off and part of the ...
2
votes
1answer
155 views
tikzpicture and pdf - x axis partially disappears
I would like to know why the x axis partially disappears, given the following code. Is it a PDF problem? Also, is there any option to connect the midpoints automatically but not in a smooth fashion?
...
7
votes
1answer
109 views
How to change xticklabel or yticklabel style to Percentage?
When using tikzpicture in the pgfplots package, how can I change use PERCENTAGE for xticklabel or yticklabel.
Here is a simple example:
\documentclass[a4paper]{article}
\usepackage{pgfplots}
...
3
votes
1answer
70 views
How to increase numbers precision in TikZ histogram
I entered fixed point numbers in the following code:
\begin{tikzpicture}
\centering
\begin{axis}[xbar,bar width=0.2cm,legend style={at={(0.5,-0.15)}, xmin=0,xmax=0.8,anchor=north,legend ...
3
votes
0answers
139 views
Adding a normal vector to a curved mesh area
How can I put a normal vector on the outer blue mesh?
TeXample
\documentclass[12pt]{article}
\usepackage{tikz}
\usetikzlibrary{positioning}
\usepackage{amsmath}
\usetikzlibrary{arrows}
...
2
votes
0answers
19 views
node at sloped path and/or not respecting every path/.style [duplicate]
I'm producing a schematic Nyquist plot, and I want to create an arc between the x-axis and a straight line, which should be denoted PM (phase margin). I use the intersections library to find the ...
5
votes
1answer
64 views
question about pgf-blur package in xelatex
Here is my code:
\documentclass{article}
\usepackage{pgfplots}
\usetikzlibrary{shadows.blur}
\begin{document}
\tikzfading[name=fade down,
top color=transparent!30,
bottom ...
1
vote
0answers
59 views
error generating separate pdf from pgfplots [closed]
When I followed the chapter 7pgfplots manual (Revision 1.8) to generate seperate pdf files from the pgfplots figure I could not get the required pdf files.
MY file name is test.tex
Here is the ...
5
votes
1answer
79 views
Two fills between functions calculated by pgfplots
This question resembles fill the area between two curves calculated by pgfplots, however I'm not able to use the stack plots solution.
I want to fill the left part of the lined area with one fill, ...
5
votes
1answer
132 views
ellipse intersecting a circle
I am trying to draw an ellipse which intersects the sphere of influence, that is, the dashed circle around the moon. The ellipse needs to pass through (-170.864:.7cm) location along the v0 vector and ...
2
votes
2answers
129 views
barchart in pgfplots looks really bad
Problems:
The bar value "90" is written over a black line, almost impossible to read
The value "58" is written over an x tick, hard to ready
Bar spacing is bad. There is too much space between the ...
2
votes
0answers
52 views
Plot doesn't care about axis setting [closed]
I have a Pgfplot and for some reason it does not care about my y-axis settings... I have set ymax to 15 but for some reason it only goes up to ymax is 14 or something...
Can anyone explain why? And ...
2
votes
1answer
122 views
Intersecting planes not shown correctly with TikZ
I made a plot in MATLAB of a deformed and an undeformed model. I converted the figure to TikZ using matlab2tikz and added it to my .tex file. I then noticed that the two configurations, which are ...
1
vote
1answer
69 views
adding complexity to a hyperbolic trajectory
Jubobs generated this code from Drawing a hyperbolic trajectory.
If we draw a horizontal line that intersects the hyperbola (I really dont want to add this to the picture), we would have some angle.
...
3
votes
1answer
180 views
Drawing a hyperbolic trajectory
In Drawing the Celestial Sphere with Tikz Package, they use pspicture. Is there a way to use pspicture inside of tikz? I want to have a hyberbola pass by the Earth with a periapsis of 500km (scaled ...
7
votes
2answers
124 views
half of a hyperbola
Only top portion of half my hyperbola is coming in correctly. The other half is doing something strange:
\documentclass{article}
\usepackage{tikz, pgf}
\begin{document}
\begin{center}
...
3
votes
0answers
89 views
pgfplots — Patterns are not displaying correctly in PDF version 1.4 [closed]
I am using this method to plot a pattern in-between two curves. If I save the file as PDF version 1.5 everything looks great. Unfortunately the journal that I am submitting the paper to requires PDF ...
4
votes
1answer
100 views
Good-looking luminosity function plot
I'm trying to make a good-looking photopic luminosity function plot. So I want to make colored plot, but its colormap should depend on X values. Is it possible with pgfplots?
I'll also appreciate any ...
2
votes
1answer
123 views
How can I get the grid done correctly?
I'm trying to put the grid in my graphic, and I'm getting this problem below. The grid style must be help lines, and dashed, this I know how to do, but the problem remains in put the grid correctly.
...
2
votes
1answer
145 views
Need help in drawing the following Stacked Bar Graph
I want your help in drawing the following figure. I think it is called as stacked bar graph.
6
votes
1answer
74 views
How to take off the marks of a graphic made with a CSV file
I'm importing a CSV file and I want to take off the marks of the graphic,how can I do this?
\documentclass{minimal}
\usepackage{pgfplots}
\usepgfplotslibrary{dateplot}
%\usepackage{filecontents}% ...
1
vote
0answers
39 views
Node only partially rendered near edge of plot
I'm trying to draw a relatively simple chart of a number line, and when one of the nodes is too close to the edge of the plot, it gets cut off.
The code:
\documentclass{article}
\usepackage{natbib}
...
3
votes
1answer
135 views
Plotting a 2D gaussian sample
Can you please help me with making a 2D Guassian sample with specified means and variances?
I only know how to make a guassian curve :D
\documentclass{article}
\usepackage{paralist,pst-func, ...
1
vote
1answer
94 views
PGFPlots slow down compilation when plotting from external files
I am writing a report containing multiple plots of spectroscopic data by way of PGFplots which is fetching data from external files. It used to do the work, and after a few minutes of compilation it ...
6
votes
1answer
112 views
Why does pgfplots plot functions only until x = 5 and y = 5?
Why does pgfplots plot functions only until x = 5 and y = 5, but not any further?
\documentclass{article}
\usepackage{tikz}
\usepackage{pgfplots}
%%%<
\usepackage[active,tightpage]{preview}
...
5
votes
1answer
49 views
Plot the \coordindex in alphabetic order
I need to replace the index numbers in the plot by alphabetic sequence. For example, on the following graph instead of 0,1,2,..., I want to see a,b,c,...
\documentclass{standalone}
% This file is an ...
1
vote
0answers
99 views
How to remove the frame of a plot in tikz but keep the axes?
I want to have a plot in tikz, with the horizantal an vertical directed axes, without numbering and without frame.
Right now my code is as follows:
\documentclass{article}
...
4
votes
1answer
89 views
Bar charts: Change the vertical order of different plots and corresponding legend entries
I want to compare percentages of two different years using horizontal bar charts.
The values for the 2 years (1996 and 2011) are given via a pgfplots table. I want the 1996 values to be shown in top ...
5
votes
2answers
282 views
TikZ Function Number Too Big
I want to draw two beta distributions comparing a prior and posterior distribution but it seems that the coefficients are too large for LaTeX? How do I fix it without changing the function? It has a ...
3
votes
1answer
86 views
How to fill a rectangle with two corners on the function
I would like to be able to apply the same thing in the following figure for any function:
Right now my code is like this(which is an edited version of some post here in Tex.sx):
Wich only fills ...
2
votes
0answers
92 views
Stacked bargraph nodes near coords too bunched up vertically tikz
How do I center the coordinates in their bars vertically? This shows horizontally in ybar
\documentclass[tikz,border=12pt]{standalone}
\usepackage{pgfplots}
\pgfplotsset{compat=newest}
...





