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
rlar
71a7c3459b
use char variants of the <ctype.h> isxxxx() family
10 years ago
rlar
8ce99a3c66
plotting/graf.c, bug fix, dbfree1() is wanted instead of dbfree()
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
3962453739
dvec abstraction, #9/11, introduce `dvec_free()'
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
68bd883535
plotting/graf.c, collect related global variables in a struct
10 years ago
rlar
c405d0ff86
plotting/graf.c, cleanup initialisation, `gr_init()' is in charge to do that
10 years ago
rlar
299849c0db
plotting/gnuplot.c, ft_gnuplot(), bug fix, allow plotting a family of curves
in the vein of plotcurv.c, ft_graf()
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
9473ec575f
drop some remaining `NEW*' macros, use TMALLOC instead
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
rlar
39fdeb0c9a
src/frontend/plotting/gnuplot.c, enforce "noenhanced text" mode
Contrary to older versions gnuplot 5 uses "enhanced text mode" per default.
The strings which we pass to gnuplot don't have "latex" semantics,
thus consistently enforce "noenhanced text mode".
Add a function quote_gnuplot_string() to escape and quote strings
in such a way that they will arrive in gnuplot unmodified.
11 years ago
Marcel Hendrix
02fe549be7
src/frontend/plotting/plotit.c, allow "plot xlog ylog" (equiv to "plot loglog")
11 years ago
rlar
7bc6374138
cleanup, use '\0' instead of 0 in char context
11 years ago