Holger Vogt
12a93c9fe6
Update to plotting of event nodes:
Distance is now 1.5, scaling and cutouts are possible
(with some lack of precision).
Still missing: y axis labeling (no numbers, but node names).
4 years ago
Holger Vogt
917dab9da7
new flag 'digitop' for the 'plot' command:
Plot digital (event nodes) vertically, separated by 0.1
The grid is adapted acordingly.
set xbrushwidth=3 will yield good results.
4 years ago
Holger Vogt
57f6d41e69
Enable math characters in vector (node) names for plotting
Replace ft_getpnames() by ft_getpnames_quotes().
4 years ago
Brian Taylor
38848259e4
With the ngspice gnuplot command, enable x/y contour plots for 2d Cider save file data. Usage: gnuplot <file> xycontour <expr>. xycontour is a new flag which is ignored if the plot data is not from 2d Cider. For contours, only a single plotarg <expr> is allowed. With <expr1> vs <expr2>, only <expr1> is plotted and <expr2> is ignored.
5 years ago
Holger Vogt
36e2a9af4d
Add variable 'plainplot' to allow plotting without
function support, but with node names incl chatacters like + - /.
Flag to command 'plot' is renamed to plainplot.
Error message added if vector not found.
Example file added.
5 years ago
Holger Vogt
f0090508b0
If new parameter 'plain' is added to the 'plot' command,
all expression handling is skipped, vectors are plotting as is.
This allows nodes names with vectors like v(+vs) or /out
to be plotted without need resorting to double quotes.
5 years ago
Holger Vogt
f03a32287f
If 'set ngbehavior=ki' in .spiceinit or flag 'kicad' on the plot line:
Add " around vector names containing character /
Numerical ivision in plot line then requires spaces around /
6 years ago
Holger Vogt
ba1945d685
enable flags xdelta, ydelta for gnuplot command
6 years ago
Holger Vogt
3a00520071
Improve error message
6 years ago
Jim Monte
3a72b8e562
const qualifier, graph removed from SetColor,
6 years ago
Holger Vogt
f24ed96cbd
plug some memory leaks
6 years ago
Holger Vogt
e53632c368
When plotting arrays of curves, plot lines only in the direction
of (in absolute terms) growing x values.
Example: MOS output characteristics.
In the rare case of plotting versus varying x directions
(e.g. example memristor.sp), one has to add the flag
'retraceplot' to the plot command.
6 years ago
Holger Vogt
8d986e50cc
remove the remains of the old xgraph program
that has not been supported for many years
6 years ago
Holger Vogt
32722ecc57
some missing brackets, typos
6 years ago
Vogt
728ddae41e
Set the color tables and linewidths personal for each graph,
added to strucht graph
Use only these data for plotting.
If zooming a plot windows, set as an extra parameter the graph id
of the 'mother graph'. Copy its color and line data to the new graph.
This is done by an extra parameter sgraphid to the internal plot
command that is issued in fcn PlotWindowProc().
Thus zooming will keep the background, text/line and graph colors.
Function setcolor() will always look into the colorarray of the
current graph.
6 years ago
Holger Vogt
3eb04b2fdc
improve on memory leaks
(not yet completely satisfying)
6 years ago
Holger Vogt
46adeb5eaa
plug memory leaks for the 'plot' command
6 years ago
Jim Monte
57ffe1769f
Fixed "phantom vector" issue with plots and crash when plots are resized. See bugs #419 and #423 for details. Also several parameters were changed from char * to const char * in the plotting functions.
6 years ago
Jim Monte
068df274bf
Made ft_numparse() thread-safe (no internal static variables) and prepared to support ngspice variable type CP_NUM.
6 years ago
Holger Vogt
afdf3ff710
Partially undo commit 016c558d7, 2019-05-01
If sacles for plotting differ, issue a warning.
Skip this plot command only, when strict_errorhandling is set.
7 years ago
Holger Vogt
8af1663bba
Try to detect, if one wants to plot vectors with
different scale vectors into the same graph.
Issue a warning and skip the plot command.
7 years ago
Holger Vogt
94fa272c9d
A hack to repair bug reported by Clyde R. Shappee
8 years ago
Holger Vogt
09c876550f
prevent string overflow by adding the string length
to the cp_getvar parameters. Used only with CP_STRING
8 years ago
h_vogt
d4adb027d2
avoid retrace in output graph by adding label 'noretraceplot'
to the plot command, that creates a lin plot trying to avoid retracing
10 years ago
rlar
141ed61ec8
use memcpy() instead of deprecated bcopy()
10 years ago
h_vogt
841f2846fe
plotit.c, properly free a reversed wordlist
10 years ago
rlar
40a0cea0d2
swap some `SWAP' arguments for readability
10 years ago
rlar
bd0bc3038b
use `SWAP' macro
10 years ago
rlar
df70661c3a
dvec abstraction, #11/11, introduce `dvec_realloc()'
10 years ago
rlar
c2a7821449
dvec abstraction, #10/11, introduce `dvec_trunc()'
10 years ago
rlar
8243696338
dvec abstraction, #8/11, upgrade `dvec_alloc()'
10 years ago
rlar
908c650f72
dvec abstraction, #3/11, use `dvec_alloc()'
10 years ago
rlar
08ad3f6ab5
dvec abstraction, #1/11, reorder
10 years ago
rlar
5a678e38dc
plotting/plotit.c, xtend(), #7/7 reorder
10 years ago
rlar
64d6a5d7c0
plotting/plotit.c, xtend(), #6/7 drop some local variables
10 years ago
rlar
d1a68482a5
plotting/plotit.c, xtend(), #5/7 use `TREALLOC()'
10 years ago
rlar
64b43b0c68
plotting/plotit.c, xtend(), #4/7 support vector of zero length
10 years ago
rlar
7c6fc1343b
plotting/plotit.c, xtend(), #3/7 complex assignment
10 years ago
rlar
13e649209c
plotting/plotit.c, xtend(), #2/7 fix index `i'
10 years ago
rlar
83fc07e770
plotting/plotit.c, xtend(), #1/7 don't free already freed data
10 years ago
rlar
1b62c1f050
plotting/plotit.c, plotit(), `v_length' shall be updated (lpr device, asciiplot)
10 years ago
rlar
a1439f5d4d
plotting/plotit.c, rename local variable `j' --> `y_type'
10 years ago
rlar
f97e4a2a35
plotting/plotit.c, cleanup search for common y_type
10 years ago
rlar
73731bdf77
frontend/plotting/plotit.c, cleanup, reduce scope of `struct dvec *dv'
11 years ago
Marcel Hendrix
02fe549be7
src/frontend/plotting/plotit.c, allow "plot xlog ylog" (equiv to "plot loglog")
11 years ago
rlar
c5e0bcde04
cleanup using `hypot()'
11 years ago
rlar
45cfdde701
src/frontend/plotting/plotit.c, plotit(), fix command line buffer overflow
11 years ago
h_vogt
7d45880654
plotit.c: remove memory leaks
13 years ago
rlar
11579d9369
cleanup, ngspice/config.h is already in ngspice/ngspice.h, #1/2 (easy ones)
14 years ago
rlar
35c0e9eca3
variable rename, unify the source
checked for object file invariance
14 years ago