h_vogt
531c229b0e
Add library xft for allowing text rotation.
Setting variabe 'old_x11' will retain previous behaviour.
9 years ago
h_vogt
dbd0a5743a
Enable utf-8 and UNICODE for string handling.
preprocessor flag EXT_ASC resets handling to old behaviour.
Add utf-16 wide char to all Windows string i/o.
Add translation between utf-8 and utf-16.
Add angle to fcn DevDrawText.
9 years ago
Jim Monte
2d9110bf65
Add const to some parameters, made function static
6 years ago
Holger Vogt
b7012065ae
remove compiler warning by setting variables to 0
6 years ago
Holger Vogt
46adeb5eaa
plug memory leaks for the 'plot' command
6 years ago
Jim Monte
a7946474fa
Additional freeing of device-dependent information for bug #419 and related bugs.
6 years ago
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.
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
05f02f3662
On Linux: allow calling gnuplot without invoking a terminal.
Reported by Terry Pilling
6 years ago
Holger Vogt
ec6d676920
Make CopyGraph safe against NULL argument.
Otherwise memcpy will fail.
7 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
31db4228f5
fix a typo, correct writing to files under Linux
7 years ago
Holger Vogt
52584312c3
delete the plt and data files after writing eps or png
(only if gnuplot_terminal is set to eps/quit of png/quit)
7 years ago
Holger Vogt
8efa08602a
no plotting, only saving to file
if gnuplot_terminal is eps/quit or png/quit
7 years ago
Holger Vogt
601dfbd781
sprintf -> snprintf: prevent buffer overflow
7 years ago
Holger Vogt
ec4625eda6
redo gnuplot_terminal: Do not save eps/png automatically
none 1: do not print an eps or png file (default)
png 2: print png file, keep command window open
png/quit 3: print png file, quit command window
eps 4: print eps file, keep command window open
eps/quit 5: print eps file, quit command window
7 years ago
Holger Vogt
2344e3d012
patch no. 30 by astx:
don't show command window if gnuplot_terminal is set to png/quit
7 years ago
Holger Vogt
65ee87e0a2
grid.c, windisp.c, vertical text for postscript and WINGUI
Arial as standard font for WINGUI
8 years ago
Holger Vogt
56701e3d10
add rotation angle to text output, currently used only by postscript,
ignored by all others
8 years ago
dwarning
cc4e4d9bad
verify pointer before utilization
8 years ago
Holger Vogt
94fa272c9d
A hack to repair bug reported by Clyde R. Shappee
8 years ago
Holger Vogt
e3b2b395b9
fix an ancient bug in retrieving the data with the cursor
from a log y graph: use y-offset instead of x-offset
8 years ago
Holger Vogt
8fbcb16a57
add fourth parameter to cp_getvar(), in functions missing so far
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
Holger Vogt
417dbfef72
undo the previous commits dealing with snprintf,
use the C99 compliant function also with MS Visual Studio
8 years ago
Holger Vogt
3b4640dee4
_snprintf in Windows 7 does not automatically put a '\0'
to the end of the buffer, only if there is space available.
That will change in the future if Snprintf is used.
8 years ago
h_vogt
c8cd763314
gnuplot.c, add 'noretraceplot' to prevent retracing of the graph if plotting against a vector which is not the original scale vector ('plot vec1 vs vec2')
10 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
Holger Vogt
560cb6e970
plotting/grid.c, bug fix, avoid string buffer overflow
Prevent a crash of example/FFT_test.cir.
Buffer 'buf' in function drawlingrid() has been too small.
Increase 'buf' size, and add some protection.
The example file examples/plot/test-small-plot.cir
shows the limits of plotting:
difference in two numbers at digit 14 is plotted well.
at digit 15 is plotted with bugs.
at digit 16 is reduced to integer.
consider compiling with
-O1 -D_FORTIFY_SOURCE=2
for gcc, and
/GS
for visual studio.
8 years ago
rlar
91c60c28df
whitespace change, avoid gcc warnings due to missleading indentation
9 years ago
h_vogt
b3827f6488
gnuplot.c, correct the setting of limits in log plots
9 years ago
h_vogt
e5d70d0821
gnuplot.c, bug fix, allow gnuplot with MINGW
9 years ago
rlar
99e864b6bc
graf.c, drop an excess cast
10 years ago
rlar
aca1b3a374
use 'abs()'
10 years ago
h_vogt
6f609abc27
x11.c, fix bug #330 , rename csh variable font -> xfont
reported by graahnul.grom in
#330 setting xfont in .spiceinit has no effect
https://sourceforge.net/p/ngspice/bugs/330/
10 years ago
h_vogt
c0d5d054ab
gnuplot.c, ft_gnuplot(), suppress generating the .eps and .png file
when the given output file name starts with "np_"
10 years ago
h_vogt
42ac9a2859
gnuplot.c, ft_writesimple(), upgrade command 'wrdata'
- remove a bug to allow printing of vectors with differing scale lengths
- add option 'numdgt' to specify the width of the numbers printed
- add variable wr_singlescale
use 'set wr_singlescale' to print the scale vector only once
(vectors need to have equal scale lengths)
- add variable wr_vecnames
use 'set wr_vecnames' to print the vector names to the first row
10 years ago
h_vogt
fef2e1439d
gnuplot.c, ft_writesimple(), command 'wrdata', use the given filename literally
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
9652cc46c8
plotting/graf.c, cleanup
10 years ago
rlar
b1d8b99018
skip-ws, #6/6, rename to match inpcom.c
10 years ago
rlar
22875d056b
skip-ws, #5/6, use functional style
10 years ago
rlar
a86f2068c8
skip-ws, #3/6, use TEMPORARY macros, obj-invariant
10 years ago
rlar
6d1171ad6f
skip-ws, #2/6, introduce "ngspice/stringskip.h"
with some temporary macros to skip whitespace
10 years ago
rlar
40a0cea0d2
swap some `SWAP' arguments for readability
10 years ago
rlar
bd0bc3038b
use `SWAP' macro
10 years ago
rlar
6fe937f931
drop unused `SWAPINT' macro
10 years ago