Holger Vogt
dacd727d87
separate svg and postscript
suitable text placement for svg
6 years ago
Holger Vogt
87b59d22a5
add generation of svg graphics file
based on patch no. 97 by Giles Atkinson
6 years ago
Holger Vogt
273b0fb4a3
fix a plotting bug with xlog axis and ylabels
5 years ago
Holger Vogt
527abee022
Do not print "Units" on a graph, if unknown type
or settype notype is given.
6 years ago
Jim Monte
3a72b8e562
const qualifier, graph removed from SetColor,
6 years ago
Holger Vogt
74dbb1e843
Commit [88653f] Fixed assorted compiler warnings, memory leaks, etc.
branch beta_jdm by Jim Monte
6 years ago
Holger Vogt
f518766c66
add a slight offset between y axis labels and grid
6 years ago
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.
6 years ago
Holger Vogt
38bb89663d
replace old_x11 by HAVE_LIBXFT defined in configure
6 years ago
Holger Vogt
7690b64571
add missing declaration of old_x11
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
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
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
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
aca1b3a374
use 'abs()'
10 years ago
rlar
bd0bc3038b
use `SWAP' macro
10 years ago
rlar
2b3220086d
graph.h, grid.c, enforce consistent string buffer size (plot "units", LABEL_CHARS)
11 years ago
rlar
c5e0bcde04
cleanup using `hypot()'
11 years ago
Giorgio Vazzana
0348dcd251
bug fix, #286 buffer overflow in src/frontend/plotting/grid.c
12 years ago
rlar
83e3100917
remove unused variables
14 years ago
h_vogt
986f9b7535
grid.c: prevent overflow of div_list
14 years ago
rlar
fe1acd3757
src/frontend/** remove superfluous `return' invocations
14 years ago
rlar
7454a6d486
src/frontend/**, whitespace, indentation, ...
untabify
delete-trailing-whitespace
braces
...
checked for object file invariance on linux
14 years ago
rlar
e91e3c4ec7
lingrid(), avoid buffer overflow
Bug ID: `Buffer overflow detected - ID: 3510521'
reported by Zsolt Makaró
The variable `mag3' sometimes seems to take
unexpected values
(for example log10 can be -Inf, which will be casted to 0x80000000)
and seems then to have overflown a buffer buf[LABEL_CHARS]
14 years ago
rlar
0b5042e7da
remove CVS `Id',`log' etc. keyword incantations
14 years ago
rlar
10346e055c
#1/4 #include <ngspice/...> --> #include "ngspice/..."
14 years ago
h_vogt
ccd115c6e2
Error message on exceeding resolution limit
15 years ago
rlar
d26015586c
#1/7 use a subdirectory "ngspice" for includes to create a uniq namespace
15 years ago
rlar
f8e41f9fb5
remove second incarnation of `grid.h'
15 years ago
rlar
9e86e5ca66
rewrite (double)literal --> floating-point-literal
15 years ago
h_vogt
3547fdc5f3
explicit casts double -> int
15 years ago
rlar
eb06eeb4d9
swallow type conversion warnings
16 years ago
rlar
e6c30efe46
Nr 4/5 (x = ...) != NULL , swallow warnings
16 years ago
rlar
abb87a6115
rename `IGNORE()' --> `NG_IGNORE()'
16 years ago
rlar
80286e0032
pour `IGNORE()' all over the source
16 years ago
rlar
75b6eeb94a
add `int' casts to some strlen() expressions, and center labels on a xlog scale
16 years ago
rlar
1779d62558
add some `int' and `size_t' casts
16 years ago
rlar
5f4b0aa798
(int) cast the return value of some strlen() invocations
16 years ago
rlar
6b5debfc1e
use `NUMELEMS' and add some `(int)' casts
16 years ago
rlar
8f8071aceb
fix some ancient \n\r and \r\n typos
16 years ago
rlar
76d22c3691
function rename, Update() -> DevUpdate()
16 years ago
rlar
38abf408d5
function rename, DrawLine() -> DevDrawLine()
16 years ago
rlar
1693270d35
function rename, Text() -> DevDrawText()
16 years ago
rlar
984754de75
function rename, Arc() -> DevDrawArc()
16 years ago
rlar
2fcbcc5f48
bug fix, implementation of the X11 draw arc implementation.
16 years ago
sjborley
67ff1b3a83
Tidy up of the header files in src/frontend and sub-directories. Motivation is to remove extern declarations within .c files and place them in .h files. Added new header files where necessary (and adjusted makefile.am files where required)
21 years ago
pnenzi
1b7c9386fe
Bug fixes from previous commit.
25 years ago
pnenzi
d735c9a871
Some code cleanup
25 years ago