LaTeX-PGF-Diagram2D
view release on metacpan or search on metacpan
doc-src/diagram-en.tex view on Meta::CPAN
using a linear scale. Grid lines are drawn for a distance of 1 (line 20),
grid values are printed for a distance of 1 (line 21).
The left \(y\) axis (l: left) covers a range 0,0\ldots{}0,3.
We draw grid lines for a distance of 0,05 and create grid values
for a distance of 0,1 (lines 22 and 23).
The \textit{axis()\/} method of the diagram object returns a reference
for an axis object. A number of axis object methods is used to
set up the axis. Each of the methods returns the axis object reference,
so the methods can be cascaded.
The \textit{plot()\/} method of the diagram object creates a new
plot object and returns the reference to it (line 23).
The \textit{set\textunderscore{}xy\textunderscore{}fct()\/} method
configures the plot object to use the \textit{I()\/} to calculate
the values (line 26).
We save the diagram to file ``../examples/test001a.pgf'' (line 28).
\includepgfimage{../examples/test001a}{Current depending on resistor value.}
( run in 0.508 second using v1.01-cache-2.11-cpan-49f99fa48dc )