4
votes
1answer
67 views

Small Axis arrows in PGFplots

I would like to draw small arrows (through a macro probably), to show the coordinate directions like the plot below. It would be nice to have the option to turn on/off the grids as well. The MWE for ...
9
votes
2answers
127 views
+250

Decorating a path's edge with a hatch pattern in TikZ

Problem I would like to indicate an infeasible region in one of my pgfplots by manually drawing a path in the canvas. This should be a hatched pattern that is decorated on the path, something like ...
3
votes
2answers
88 views

TikZ inside pgfplot axis environment

I am trying to use the TkZ command MarkRightAngle in an axis environment, however I cannot get it to work. I get a "Missing character: There is no ; in font nullfont!" error and "Line 21: Package pgf ...
1
vote
1answer
51 views

How to hide the legend in a tikz picture

I am trying to hide the legends in the following tikzpicture code. However, after I use every axis legend/.code={\let\addlegendentry\relax}, it messes up the picture. Could someone help me how I can ...
2
votes
1answer
46 views

How to reuse data from one addplot table for plotting in another axis?

Is there anyway to reuse the data of a \addplot table for plotting in another axis environment? I would like to avoid putting the data into a separate file. Is there any way to refer to the data in a ...
1
vote
0answers
23 views

\draw via \pgfplotstableforeachcolumnelement fails outside {axis} environment, but works inside?

Consider this MWE: \documentclass{article} \usepackage{pgfplots} \usepackage{pgfplotstable} \usetikzlibrary{calc} \pgfplotstableread[col sep=space,row sep=newline,header=true]{ ts val 0.0 0.0 1.0 ...
1
vote
1answer
47 views

Marking (resampling) a point on a pgfplots curve, interpolated from table data?

I was looking for this in the pgfplots manual, unfortunately the term "resample" is not mentioned, and "sample" hits the samples key, which refers to analytical functions, not to table data; so I ...
1
vote
1answer
31 views

after end axis messes up pgfplots axis position

Latex and Tikz are going to get the life out of me... I saw Need to do some changes to pgfplots axis #39099, and that example was working fine for me; so I modified it a bit, and came up with the ...
3
votes
1answer
49 views

pgfplots \closedcycle command inside \foreach returning error

The following code demonstrates the problem. It builds fine, but if I add the commented \closedcycle command, it won't build (undefined control sequence). \documentclass[tikz]{standalone} ...
3
votes
1answer
70 views

Polar pgfplots diagram adds additional whitespace with units library loaded

When doing polar plots in pgfplots (v1.10) I get additional whitespace when loading the units library. How can I get rid of that? I did not observe this before since it is related to the direction of ...
4
votes
1answer
48 views

Error cross-referencing when tikz mode is graphics if exist

I am getting the error "Undefined control sequence" when using \tikzset{external/mode=graphics if exists} and the label does not exist (It should produce a warning not an error, though because the ...
2
votes
1answer
45 views

Pgfplots axis environment, loop for function works but not for plotting options

My question is related to this one, \foreach not behaving in axis environment , but the solution there does not work in my case and unlike the related question, the loop works well in the axis ...
2
votes
0answers
20 views

Passing changing (in a loop) parameters to Pgfplot function [duplicate]

Usually I just use TikZ for plots but was hoping Pgfplots would simplify life (axis, labels, etc...) but I can not find what is the right syntax to pass parameters to the function. Here is the MWE: ...
1
vote
0answers
89 views

Embedded axis Pgfplots

So I need to display data as follows: every day for a month I have a set of values obtained in different hours. I want the axis to contain the date but between a date an another I want to have the ...
9
votes
1answer
177 views

How can I fit the original data with exponential or polynomial functions via pgfplots?

I am trying to plot the following data with a curve fitting via pgfplots. It seems linear regression is not suitable for my case. So I would prefer to have exponential or polynomial curve fitting on ...
2
votes
0answers
36 views

Location and size of pgf plot axis in a tikzpicture - with tikz positioning library?

This could be a second part to Positioning pgfplots axis in tikzpicture , I guess ; consider the following MWE: \documentclass{standalone} \usepackage{pgfplots} \usetikzlibrary{positioning} ...
1
vote
0answers
45 views

how to draw a unfinished data point bar in pgfplots?

I want to present some experiment comparisons. One of the candidate (SHJ) takes too long to run. Could anyone give me some suggestions on how to present such data point in a bar chart? Thanks in ...
2
votes
1answer
58 views

pgfplots: strange opacity in surf plot

I do have the following code to get a surf plot which gives me for some reason the 'backside' of the plot with full opacity. How can I change this behavior? Actually, I think this feature is very ...
1
vote
1answer
124 views

Bars with same x index in stacked barplot

I'm reading data that is structured as an outer group (the x indices/rows) with different inner categories (multiple columns) that are composed of multiple values themselves again. The goal is to ...
7
votes
1answer
206 views

pgfplots: Using Sans Serif Fonts for Numbers and Text (not Variables) in Figures and Diagrams

I want to use a sans serif font in figures and diagrams. This also applies to tables (related question). The normal text should remain roman (with serif). Here is the normal way one would try to ...
11
votes
2answers
188 views

Double Smithchart with pgfplot

I'm trying to plot a smithchart, which has negative impedances, too. This is how far i got till now: \documentclass[]{standalone} \usepackage{tikz} \usepackage{pgfplots} ...
2
votes
2answers
75 views

y minor ticks not showing with pgfplots

I want some minor ticks on the y axis, but it doesn't work. I already tried minor y ticks num but it didn't help. Thank you in advance. \documentclass[11pt,a4paper,oneside ]{article} ...
2
votes
1answer
85 views

Axis tick options, ticks and labels inside axis area

I know the title can be misleading, but I don't know how to put it better. I will correct it when I get better proposals. I try drawing plots from external tables with pgfplots. Alas, the template I ...
2
votes
2answers
76 views

doing 3x3 subplots with the colorbar located northside

I wanted to have my nine (2d) matlab plots shown as 3x3 subplots in latex with the colorbar located northside. I have no idea how to do this especially that I have the colorbar saved separately from ...
4
votes
1answer
87 views

Conditionally transparent surface in PGFPLOTS

I am plotting 3D bars using PGFPLOTS, following the example and using the script given by Anton in his answer (the second one) to this question: 3-dimensional histogram in pgfplots. My code is the ...
3
votes
1answer
153 views

Deformed drawings in loglogaxis

I constructed a graph by means of a loglogaxis with xmin=5e0, xmax=1e4, ymin=1e-16, ymax=1e0 and am trying to make an annotation by means of a circle. For this, I use \draw[color=red] (axis ...
7
votes
2answers
298 views

How can I represent the curved shape of a surface?

How can I give third dimension to the green surface, with shadings of color or light effects, using tikz or pgfplots? The matter is that the green surface looks (is) flat as the red one, while I ...
1
vote
0answers
65 views

Special decoration for TikZ pin feature

I try to achieve the curvy pin style I sketched below. It would help to distinguish pin lines from grid and other lines in the diagram. How can I realize a decoration that automatically draws such ...
1
vote
1answer
83 views

Seeking an explanation for a tikzpicture code

I have found the following solution in stackexchange. It has been perfectly answered here by @Jake. \documentclass[border=5mm]{standalone} \usepackage{pgfplots} \pgfplotsset{compat=1.8} ...
1
vote
0answers
40 views

Plotting a signal along with its harmonics in one figure [duplicate]

I would appreciate it if someone could help me plot a figure similar to the following picture. I want to draw the fundamental signal along with a few first harmonics using pgfplots.
1
vote
1answer
92 views

Make blue box appear after pause command in beamer presentation

I am trying to the following in a beamer presentation. Slide 1: This is Slide 2: This is a test Slide 3: This is BLUEBOXa testBLUEBOX (BLUEBOXa testBLUEBOX should be written "a test" with a blue ...
4
votes
0answers
82 views

pgfplots: howto read touchstone files (s1p, s2p, s3p,…)

With pgfplots you can simply create nice plots that seamlessly integrate into your tikz figure. As a high frequency engineer you will inevitably use a network analyzer to measure S-parameters. The de ...
3
votes
2answers
98 views

pgfplots - Zero lines draw over anything else, especially node/pins

For adding zero lines to every plot produced by pgfplots, I used the code provided by percusse here. (A quick note after 2 replies were provided: this is a "global" solution. If one likes to add the ...
4
votes
2answers
144 views

Using tikzpicture or pgfplots to draw a uniform grid

I want to use pgfplots or tikzpicture to draw a uniform grid as illustrated in below. The grid size in the figure is 8×8. I want to be able to define a parameter that gives me the ability to draw ...
4
votes
1answer
61 views

Usage of /pgf/number format/cd

I'm trying to fix the amount of digits the colorbar has, because the plot is shrinking in size and I wish to animate this plot, so a fixed height and width is mandatory. I still want LaTeX to do the ...
2
votes
2answers
85 views

Wrong placement (and/or size) of picture / plot with groupplot of table (… and discontinuity)?

Consider this MWE: \documentclass{article} % \documentclass{standalone} \usepackage{pgfplots} \pgfplotsset{compat=1.5.1} \usetikzlibrary{pgfplots.groupplots} \usepackage{pgfplotstable} ...
7
votes
3answers
121 views

Tikz and pgfplot problem with plotting

I'm using pgfplots. The graph is clipped where it shouldn't, how can I fix it? \documentclass{article} \usepackage{tikz} \usepackage{siunitx} \usepackage{pgfplots} \begin{document} ...
3
votes
1answer
77 views

PGF Math Error: Could not parse input

Trying to plot a BER vs SNR function using erf function. However I get an error saying " Package PGF Math Error: Could not parse input '' as a floating point number, sorry. The unreadable part was ...
3
votes
1answer
59 views

Align bar charts from different sources with one xlabel each

I have a pgfplot that reads from two files. I want a bar chart where the values (bars) of one file appear over one xlabel and the values from another file over another (A and B in this example). My ...
1
vote
1answer
104 views

Engineering notation (scientific) as tick labels with pgfplots (maybe via siunitx)?

I would like to have numbers on the ticks labels formatted in engineering notation -- but unlike in How to control pgfplots axis scaling for engineering notation (multiple of 3 exponent)?, I would ...
5
votes
2answers
114 views

Animating a plot with pgfplots

I'm creating a beamer presentation and I want to animate a plot with pgfplots. This is a MWE of the graphics: \documentclass{beamer} \usepackage{tikz,pgfplots} \begin{document} \begin{frame} ...
1
vote
0answers
49 views

pgfplots: Explicitly Setting 'Line and Mark Intersection' In Plot

Is there a way to specify where a line intersects a 'mark' on a pgfplot? MWE: \documentclass{article} \usepackage{tikz} \usepackage{pgfplots} \begin{document} \begin{figure}\begin{tikzpicture} ...
6
votes
1answer
101 views

Graphing an astroid - parametric curves in pgfplots

So I am trying to create a plot of an astroid in pgfplots which has the parameterization x = cos(t)^3 y= sin(t)^3 and tikz is giving me an error that it is giving up on a path and wondering if I ...
3
votes
0answers
33 views

Independent coloring of contour and 3D plot in pgfplots [duplicate]

I have a problem with pgfplots where the addition of a contour plot at the bottom of a 3D plot changes the coloring of the surface plot. This is a simple example: ...
3
votes
3answers
138 views

Problem aligning multiple pgfplots due to different axis label sizes

I have two plots that comes back to back in my paper. One of these plots is generated from 1000 data samples while the other one from 320. The problem that I'm, facing right now, is that plots are ...
1
vote
1answer
95 views

String column tick labels and plotting selected samples on y axis with groupplots?

I have seen other relate questions (like Basic bar chart with text as x axis labels), but still cannot figure out where the problem is in my example. The MWE below contains a snippet of a .csv table ...
23
votes
1answer
333 views

How to get a Waddington landscape?

The idea is to make a plot like this Source: http://figshare.com/articles/_Waddington_s_8220_Epigenetic_Landscape_8221_/620879 But only with 2 wells in the front, not 4. Also the colors don't ...
2
votes
1answer
62 views

Add single bar to a stacked bar plot

In order to show the difference between three measurements against a single one, I need to combine a regular bar plot and with a stacked one. However, once I use a stacked bar plot, the single datum ...
8
votes
2answers
120 views

pgfplots: Syntax of Piecewise Defined Functions

I read about piecewise defined functions today and saw this post which was actually about something else: Label plots in pgfplots without entering coordinates manually This is taken from there. ...
5
votes
1answer
85 views

TikZ “scale” key not behaving at all in the expected way when scaling tikzpicture

I am having difficulty with TikZ remembering node positions, or just reconciling things between different coordinate systems (such as nodes named within a given coordinate system and then refered from ...