Giles Atkinson
1d435daed7
Support use of XSPICE event nodes with iplot.
...
In graf.c, local function set() is renamed setflag() to avoid conflict
with a newly-visible global function with the same name.
2025-04-12 18:20:19 +02:00
Giles Atkinson
fc76d4d63b
Always check for GUI events during simulation, if any graphs exist.
...
Previously this check was only made if an iplot window existed.
The 100W.sp example displayed frozen windows with X11-based plotting.
2025-03-01 13:44:43 +01:00
Holger Vogt
0f5852afdb
Revert "iplot on macOS is totally slow, thus unusable, due to problems with"
...
This reverts commit c79eb348a2 .
2024-12-30 16:27:00 +01:00
Holger Vogt
c79eb348a2
iplot on macOS is totally slow, thus unusable, due to problems with
...
repeated calls to XSync. Skipping them still allows iplotting.
2024-12-30 13:47:01 +01:00
Giles Atkinson
d549b882df
Fix a crash that happens after an iplot window is zoomed and closed
...
while active.
2024-12-27 11:14:53 +01:00
Giles Atkinson
5114d6c2f4
Add an option to the iplot command: -d sets the number of simulation
...
steps before the window is shown. The value can be chosen to
limit rapid resizing when starting and that is used in the PLL examples.
2023-07-15 11:29:32 +02:00
Giles Atkinson
45015f974d
Add a "-w" option to the iplot command. It sets a width for the
...
window (in the current scale units) so that it does not re-scale
on overflow, but instead plots recently-generated data on a fixed scale.
2023-05-27 10:46:45 +02:00
Giles Atkinson
7a5514a1ff
In graf.c change local function set() to do what you might expect,
...
rather than the opposite. Also fix a debug message.
2023-05-27 10:46:24 +02:00
Giles Atkinson
79fcb5d4bd
Fix plotting bug reported by Robert Turnbull: ngspice-devel 2023-02-10.
2023-03-18 14:34:50 +01:00
Giles Atkinson
41e48b954d
Rename a variable so that it does not clash with one in outer scope.
2022-04-26 10:37:28 +02:00
Giles Atkinson
519915202f
Fix Bug #577 "Zooming iplot drops vectors" and three crashes when
...
the iplot window is closed during simulation.
2022-04-26 10:36:55 +02:00
Giles Atkinson
f4285384e7
Add code in graf.c to merge connected lines with the same slope before
...
plotting. This speeds output and reduces file size when the vector
length is much larger than the number of pixels. It should help with
Feature Request #58 :
"Graph plotting under windows redraw very slow and hard to work with",
but is not a full fix.
2022-01-28 12:24:51 +01:00
Holger Vogt
f61ea3aa96
if 'set nounits' is given, plotting of the units is suppressed
...
(they may be added manually to the y and x labels for SI conformity).
2021-03-14 15:32:49 +01:00
Jim Monte
3a72b8e562
const qualifier, graph removed from SetColor,
2020-04-27 10:16:02 +02:00
Holger Vogt
7a7f717574
make flag 'nolegend' localfor each plot
2020-03-15 08:51:17 +01:00
Holger Vogt
14b154f5f3
Copy the scale vector as well and attach it to the data vector.
...
Remove it again when the graph is destroyed.
2020-03-15 08:51:14 +01:00
Holger Vogt
c2cf4d7eda
required for reliable re-plotting, however still has the
...
return line bug no #472
2020-03-15 08:51:13 +01:00
Holger Vogt
acbec3ae81
Preliminary 'fix' to a plotting bug (visible return line in an array of curves):
...
Partially undo code added in commit 10415875f4 /
This will need further discussion or updates
2020-03-15 08:51:13 +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
800cd05f3d
new variable nolegend: with 'set nolegend' plotting of
...
the legend is suppressed.
2020-03-15 08:51:11 +01:00
Holger Vogt
fed7ef378f
add variable ticchar, allow an arbitrary character as ticmark
2020-03-15 08:51:11 +01:00
Holger Vogt
8751092812
Enable separate linewidths for grids and graphs.
...
New variable gridwidth overrides xbrushwidth for graphs.
Fcn DevDrawLine() with boolean flag if grid is plotted.
Postscript, Gnuplot and X11 not (yet) supported.
2020-03-15 08:51:05 +01:00
Jim Monte
8141a634d7
Fixed several issues related to plotting and vector lifetimes and made ownership of vectors clearer. The issues in bugs 419, 423, 425, and 426 were related and were addressed here.
2020-03-15 08:50:54 +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
Holger Vogt
56701e3d10
add rotation angle to text output, currently used only by postscript,
...
ignored by all others
2018-11-18 15:50:56 +01: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
99e864b6bc
graf.c, drop an excess cast
2016-10-15 15:06:18 +02:00
rlar
9652cc46c8
plotting/graf.c, cleanup
2016-03-23 17:04:55 +01:00
rlar
b1d8b99018
skip-ws, #6/6, rename to match inpcom.c
2016-03-22 15:26:10 +01:00
rlar
22875d056b
skip-ws, #5/6, use functional style
2016-03-22 15:26:09 +01:00
rlar
a86f2068c8
skip-ws, #3/6, use TEMPORARY macros, obj-invariant
2016-03-22 15:26:06 +01:00
rlar
6d1171ad6f
skip-ws, #2/6, introduce "ngspice/stringskip.h"
...
with some temporary macros to skip whitespace
2016-03-22 15:26:05 +01:00
rlar
71a7c3459b
use char variants of the <ctype.h> isxxxx() family
2016-03-09 20:24:36 +01:00
rlar
8ce99a3c66
plotting/graf.c, bug fix, dbfree1() is wanted instead of dbfree()
2016-03-09 18:23:22 +01:00
rlar
68bd883535
plotting/graf.c, collect related global variables in a struct
2015-12-27 12:08:48 +01:00
rlar
c405d0ff86
plotting/graf.c, cleanup initialisation, `gr_init()' is in charge to do that
2015-12-27 12:08:44 +01:00
rlar
7bc6374138
cleanup, use '\0' instead of 0 in char context
2015-05-02 10:24:54 +02:00
rlar
19e427e3a5
cleanup, use NULL instead of 0 in pointer context
2015-05-02 10:24:49 +02:00
rlar
6f21c3b9db
use `enum simulation_types'
2015-03-10 18:27:39 +01:00
rlar
7aa454e5b4
rewrite, using tprintf()
2014-04-05 19:10:12 +02:00
h_vogt
7bc879726d
make database dbs local to each circuit
2013-12-31 12:56:53 +01:00
rlar
83e3100917
remove unused variables
2012-12-01 16:05:20 +01:00
rlar
fe1acd3757
src/frontend/** remove superfluous `return' invocations
2012-09-22 19:33:55 +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
d8105873db
remove error.h, use fteext.h for controlled_exit()
2012-06-12 21:26:29 +02:00
h_vogt
b4516b08ca
bug fix, iplot(): Buffer overflow
...
Thanks to Zsolt Makaró for the bug report in
Buffer overflow detected - ID: 3510521
http://sourceforge.net/tracker/?func=detail&aid=3510521&group_id=38962&atid=423915
2012-03-24 18:29:36 +01:00
rlar
a056ea3065
#3/4 switch realpart() and imagpart() args from ngcomplex* to ngcomplex
2012-02-07 19:53:12 +00:00
rlar
d5f6bcbedf
drop some more casts
2012-02-06 20:11:10 +00:00