Tagged Questions
4
votes
1answer
260 views
Plotting functions with parameters from an external file using gnuplot/pgfplots/pgfplotstable
If I have a table, how can I get the table values and use them as parameters for plotting in pgfplots in gnuplot? In particular, how can multiple curves be plotted with the same functional form from ...
6
votes
2answers
170 views
Plot x=3 in PGFPlots
I just started to use pgfplots and I'm trying to plot the line x=3 (a line parallel to the y axis where x is 3). I've tried to find an answer on the net, but all the examples always show how to ploy ...
8
votes
1answer
285 views
pgfplot: use pgfmathdeclarefunction defined function within coordinate
This code snippet defines a simple function using \pgfmathdeclarefunction (e.g. f()) and \pgfmathparse. I would like to use the defined function f() within other coordinate, e.g. (0.2, f(0.2)) vs. ...
7
votes
1answer
309 views
How to prevent small values from being plotted with nodes near coords?
I'm trying to finalize my first pgfplots chart. I've managed to get is almost the way I would like it to be with thanks to all examples I found here.
The last thing I can't seem to figure out is how ...
10
votes
3answers
1k views
\pgfmathsetmacro - dimension too large (biggest value allowed?)
I want to import some data with parameters to parametrize some plots. After importing a table, I assign specific variables of the table to a placeholder by using \pgfplotstablegetelem. And it works ...
5
votes
1answer
389 views
How to enforce printing the decimal part in pgfmath macros?
I have the opposite problem to this question. I want the decimal parts of an integer printed for consistency's sake. I already tried specifying the precision but without success. See below.
...
2
votes
0answers
48 views
custom function in pgf doesn't behave consistently [duplicate]
Possible Duplicate:
Is plotting exponential graphs a known source of bugs in TikZ?
I want to use a custom function in pgf plots and in text, like in this example:
...
6
votes
1answer
773 views
pgfplot consistent number format
I am trying to make a the number format in my pgfplots the same, as in the rest of my document. I am normally using the \num from the siunitx package to typeset numbers, and would like to use it in my ...
8
votes
1answer
1k views
pgfplots and calculations; without fpu 'dimension too large', with fpu 'Illegal unit of measure (pt inserted)'
I'm trying to multiply some numbers that will end up in the legend of a plot. I can't get it to work:
If I naively try \pgfmathmultiply, I get a dimension too large error, with the code in MWE 1 ...
4
votes
1answer
191 views
Change “<” to “<=” in pgfmath's and function
I am using this method for Defining a Piecewise Function for PGFplots and want to specifically define the function value at the endpoint to be 1, not 0. When I change the < in the and to <= I ...
6
votes
1answer
1k views
Using ifthenelse in pgfmath
Following questions on constructing functions on the forum, I tried to build some myself. I can't seem to get the ifthenelse function in TikZ/PGF to work. Here is an example:
...
4
votes
1answer
333 views
Pgfplots jump mark error when plotting a floor function
For some weird reason the following code gives me the wrong plot
\documentclass{article}
\usepackage{pgfplots}
\begin{document}
\begin{tikzpicture}
\begin{axis}
\addplot+[jump mark left,samples ...