Brian Taylor
fdf1a7d791
Merge branch 'pre-master-45' into bt_dev
2025-04-18 08:55:47 -07:00
Giles Atkinson
cd6784a079
Event nodes can be plotted with offset by "iplot", like the
...
digitop option for "plot". Offsets may be explicit or automatic with "-o".
A variable to set the offset is shared with "plot". In plotcurv.c
suppress some warnings that should not apply to event nodes and do
not falsely claim that some vectors have only one x-value.
2025-04-12 18:20:19 +02:00
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
Brian Taylor
e7a7e8c64c
Merge branch 'pre-master-45' into bt_dev
2025-03-01 17:35:38 -08: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
Brian Taylor
932f834a4c
Merge branch 'pre-master-45' into bt_dev
2025-01-26 10:00:29 -08:00
Giles Atkinson
8a9fd1eff2
Using XFlush() instead of XSync() avoids a round trip to the X server
...
on each call to DevUpdate(). That speeds plotting when using XQuartz
on Macintosh and makes iplot useable there.
2025-01-08 19:54:52 +01:00
Brian Taylor
0368a71f62
Merge branch 'pre-master-45' into bt_dev
2024-12-31 17:30:00 -08: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
Brian Taylor
d631d7bc04
Merge branch 'pre-master-44' into bt_dev
2024-12-15 09:08:44 -08:00
Holger Vogt
deb3cd9809
Replace all BOOLEAN, BOOL, _Bool by bool
...
Remove all #undef bool (set in conjunction with #iclude <Windows.h>)
2024-12-15 10:25:28 +01:00
Holger Vogt
5a3071dbf4
Replace all BOOLEAN, BOOL, _Bool by bool
...
Remove all #undef bool (set in conjunction with #iclude <Windows.h>)
2024-12-09 16:07:36 +01:00
Holger Vogt
773c0b51f8
Revert "Create gnuplot process and wait for its end (Currently Windows only)"
...
This reverts commit fbc17e7df9 .
2024-11-27 18:14:54 +01:00
Holger Vogt
fbc17e7df9
Create gnuplot process and wait for its end (Currently Windows only)
...
before deleting the input files.
2024-11-27 15:34:54 +01:00
Holger Vogt
368c59466b
Allow plotting a single point in an ascii plot
...
(command .asciiplot)
2024-11-02 22:42:42 +01:00
Brian Taylor
eb51bc90f7
Add save_files_only option to the gnuplot command.
...
The .plt and .data files are saved but gnuplot is not invoked.
For example:
gnuplot name save_files_only plotargs
2024-10-10 15:21:10 -07:00
Holger Vogt
878ac0076a
Allow plotting a single point in an ascii plot
...
(command .asciiplot)
2024-10-09 16:58:20 +02:00
Giles Atkinson
2ec5944dd4
Use all available precision when creating a "plot" command for a
...
zoomed window. That prevents an unexpected zoom-out in one dimension
caused by a zero-height (or width) window being requested when zooming
with already high magnification.
2024-02-07 14:56:59 +01:00
Holger Vogt
01bdd44ef9
Modify the previous commit a616a0abe:
...
no spaces in the first column
2023-09-15 23:41:12 +02:00
Vogt
a616a0abe3
Add variable wr_onspace to allow printing the vetor name with
...
one space delimiter
2023-09-14 15:22:14 +02:00
Holger Vogt
62f803dfa5
Remove gcc compiler warnings
2023-08-12 15:11:04 +02:00
Giles Atkinson
1c1a53bac8
Set default colours for the button box in the X11 plot window that
...
match the default dark background of the plot.
2023-07-15 11:30:29 +02: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
e5a931e537
Improve commands for vector scales. "setscale" can now change
...
or clear the scale of an individual vector and "compose" can
explicitly create a vector from XSPICE event node history.
2023-07-15 11:28:48 +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
2233e2f825
Fix Bug #624 - "Destroy All Fails with an Open Plot Window" for X11.
...
Move XftDrawDestroy() call to a point where the window still exists.
2023-03-18 14:34:20 +01:00
Holger Vogt
a5eaac128a
For monotonic plotting find out the majority of increasing or decreasing
...
x-axis values, add a warning to add 'retraceplot' to plot all if more than
10% of the values deviate from the majority.
2022-12-11 15:37:14 +01:00
Holger Vogt
7f65a68ad6
Improve (a little) the plotting of digital data with plot option digiplot:
...
Repair scaling on MS Windows:
Suppress y axis lettering and unit:
Allow or dis-allow grid.
2022-10-07 13:05:56 +02:00
Giles Atkinson
88481d4bfb
Further change for #578 "Crash while plotting single complex vector".
...
Move the check on vector lengths to ensure all cases are covered.
2022-05-09 10:07:33 +02: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
c65155880c
Make "nogrid" plotting option work. The deleted code was in the original
...
commit, so the reason for it can not be traced.
2022-04-26 10:32:39 +02:00
Holger Vogt
20d5919e59
Terminal setting to X11 fails in macOS, and is not required
...
on Linux.
Setting terminal here is redundant, so remove this setting.
2022-02-22 15:22:21 +01:00
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).
2022-02-21 20:19:56 +01:00
Holger Vogt
0557bc60bf
Prevent crash if nsp is evaluated to 0
2022-02-21 16:56:16 +01:00
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.
2022-02-19 17:25:57 +01:00
Brian Taylor
b774d03162
Change the y-axis direction for a 2d Cider gnuplot. The device surface is at the top and downwards is into the material, which is the normal presentation. Note that the x/y mesh commands in a Cider model also affect the orientation.
2022-02-17 15:45:28 +01:00
Holger Vogt
62f326b9d0
Fix a bug from previous commit: min -> MIN
2022-02-07 22:39:27 +01:00
Holger Vogt
640fa7e17b
bug 578 crash when scale is too short
...
Warning message if scale and vector length do not match.
Restrict number of points plotted to the smaller of both.
2022-02-07 15:59:43 +01:00
Holger Vogt
4f82a24df2
Add parameter 'isgrid' to plotting of arcs.
...
Smithgrid and polar plots could not discern between xgridwidth and
xbrushwidth. This is now available, similar to straight line plotting.
Tested also for PS and SVG.
2022-02-01 12:23:29 +01:00
Giles Atkinson
6494befb2f
Request backing store for X11 plot windows. When supported by the X server
...
windows are redrawn vey quickly without replotting.
2022-01-28 12:24:58 +01: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
Brian Taylor
8e75cad453
Fix missing initializer warning.
2021-12-13 21:50:30 +01:00
Holger Vogt
57f6d41e69
Enable math characters in vector (node) names for plotting
...
Replace ft_getpnames() by ft_getpnames_quotes().
2021-12-13 21:41:28 +01:00
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.
2021-10-30 13:21:32 +02:00
Holger Vogt
58bdf9e0e6
Remove 'goto end' and 'end:' statements.
2021-07-05 14:11:48 +02:00