Jim Monte
3a72b8e562
const qualifier, graph removed from SetColor,
2020-04-27 10:16:02 +02:00
Holger Vogt
f24ed96cbd
plug some memory leaks
2020-03-15 08:51:15 +01:00
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.
2020-03-15 08:51:14 +01:00
Holger Vogt
8d986e50cc
remove the remains of the old xgraph program
...
that has not been supported for many years
2020-03-15 08:51:12 +01:00
Holger Vogt
32722ecc57
some missing brackets, typos
2020-03-15 08:51:12 +01:00
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.
2020-03-15 08:51:12 +01:00
Holger Vogt
3eb04b2fdc
improve on memory leaks
...
(not yet completely satisfying)
2020-03-15 08:51:08 +01:00
Holger Vogt
46adeb5eaa
plug memory leaks for the 'plot' command
2020-03-15 08:50:57 +01:00
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.
2020-03-15 08:50:54 +01:00
Jim Monte
068df274bf
Made ft_numparse() thread-safe (no internal static variables) and prepared to support ngspice variable type CP_NUM.
2020-03-15 08:50:52 +01:00
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.
2019-08-13 23:27:15 +02:00
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.
2019-08-13 23:26:58 +02:00
Holger Vogt
94fa272c9d
A hack to repair bug reported by Clyde R. Shappee
2018-10-27 12:28:01 +02:00
Holger Vogt
09c876550f
prevent string overflow by adding the string length
...
to the cp_getvar parameters. Used only with CP_STRING
2018-07-22 14:57:49 +02:00
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
2018-05-18 17:08:27 +02:00
rlar
141ed61ec8
use memcpy() instead of deprecated bcopy()
2016-07-30 20:58:19 +02:00
h_vogt
841f2846fe
plotit.c, properly free a reversed wordlist
2016-04-01 18:05:40 +02:00
rlar
40a0cea0d2
swap some `SWAP' arguments for readability
2016-03-22 15:23:05 +01:00
rlar
bd0bc3038b
use `SWAP' macro
2016-03-22 13:04:13 +01:00
rlar
df70661c3a
dvec abstraction, #11/11, introduce `dvec_realloc()'
2015-12-28 20:34:42 +01:00
rlar
c2a7821449
dvec abstraction, #10/11, introduce `dvec_trunc()'
2015-12-28 20:34:42 +01:00
rlar
8243696338
dvec abstraction, #8/11, upgrade `dvec_alloc()'
2015-12-28 20:34:42 +01:00
rlar
908c650f72
dvec abstraction, #3/11, use `dvec_alloc()'
2015-12-28 20:34:42 +01:00
rlar
08ad3f6ab5
dvec abstraction, #1/11, reorder
2015-12-28 20:34:42 +01:00
rlar
5a678e38dc
plotting/plotit.c, xtend(), #7/7 reorder
2015-12-27 11:21:46 +01:00
rlar
64d6a5d7c0
plotting/plotit.c, xtend(), #6/7 drop some local variables
2015-12-27 11:21:45 +01:00
rlar
d1a68482a5
plotting/plotit.c, xtend(), #5/7 use `TREALLOC()'
2015-12-27 11:21:44 +01:00
rlar
64b43b0c68
plotting/plotit.c, xtend(), #4/7 support vector of zero length
2015-12-27 11:21:43 +01:00
rlar
7c6fc1343b
plotting/plotit.c, xtend(), #3/7 complex assignment
2015-12-27 11:21:42 +01:00
rlar
13e649209c
plotting/plotit.c, xtend(), #2/7 fix index `i'
2015-12-27 11:21:41 +01:00
rlar
83fc07e770
plotting/plotit.c, xtend(), #1/7 don't free already freed data
2015-12-27 11:21:40 +01:00
rlar
1b62c1f050
plotting/plotit.c, plotit(), `v_length' shall be updated (lpr device, asciiplot)
2015-12-23 10:30:47 +01:00
rlar
a1439f5d4d
plotting/plotit.c, rename local variable `j' --> `y_type'
2015-12-15 19:58:11 +01:00
rlar
f97e4a2a35
plotting/plotit.c, cleanup search for common y_type
2015-12-15 19:57:12 +01:00
rlar
73731bdf77
frontend/plotting/plotit.c, cleanup, reduce scope of `struct dvec *dv'
2015-10-04 15:38:27 +02:00
Marcel Hendrix
02fe549be7
src/frontend/plotting/plotit.c, allow "plot xlog ylog" (equiv to "plot loglog")
2015-05-14 15:56:45 +02:00
rlar
c5e0bcde04
cleanup using `hypot()'
2014-12-06 20:41:11 +01:00
rlar
45cfdde701
src/frontend/plotting/plotit.c, plotit(), fix command line buffer overflow
2014-11-30 22:15:37 +01:00
h_vogt
7d45880654
plotit.c: remove memory leaks
2012-12-15 22:59:47 +01:00
rlar
11579d9369
cleanup, ngspice/config.h is already in ngspice/ngspice.h, #1/2 (easy ones)
2012-10-06 12:12:08 +02:00
rlar
35c0e9eca3
variable rename, unify the source
...
checked for object file invariance
2012-10-01 17:59:40 +02:00
h_vogt
0bdc33db40
grid.c: prevent crash if real low and high values are close
2012-09-26 20:58:58 +02:00
rlar
7454a6d486
src/frontend/**, whitespace, indentation, ...
...
untabify
delete-trailing-whitespace
braces
...
checked for object file invariance on linux
2012-09-20 20:30:53 +02:00
rlar
46980f2cc6
plotit.c #9/9, whitespace
2012-08-05 21:41:25 +02:00
rlar
4803d8bba2
plotit.c #8/9, braces
2012-08-05 21:41:25 +02:00
rlar
6a334da2b4
plotit.c #7/9, braces
2012-08-05 21:41:25 +02:00
rlar
f587553217
plotit.c #6/9, braces
2012-08-05 21:41:25 +02:00
rlar
088e88d9b2
plotit.c #5/9, localize
2012-08-05 21:41:25 +02:00
rlar
5f1387892c
plotit.c #4/9, line wrap
2012-08-05 21:41:25 +02:00
rlar
ed4ad1c0dd
plotit.c #3/9, drop some comments
2012-08-05 21:41:25 +02:00