Holger Vogt
ba1945d685
enable flags xdelta, ydelta for gnuplot command
6 years ago
Holger Vogt
527abee022
Do not print "Units" on a graph, if unknown type
or settype notype is given.
6 years ago
Holger Vogt
70be7508ce
Prevent 'unused variable' compiler message
6 years ago
Holger Vogt
13c23fd71b
Prevent buf2 buffer overflow by limiting the the amount of bytes printed
6 years ago
Holger Vogt
3a00520071
Improve error message
6 years ago
Holger Vogt
5e37955dc5
prevent buffer overrun by using snprintf
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
7a7f717574
make flag 'nolegend' localfor each plot
6 years ago
Holger Vogt
1398ee7aa0
set the proper preprocessor flag __MINGW32__
6 years ago
Holger Vogt
f24ed96cbd
plug some memory leaks
6 years ago
Holger Vogt
e53632c368
When plotting arrays of curves, plot lines only in the direction
of (in absolute terms) growing x values.
Example: MOS output characteristics.
In the rare case of plotting versus varying x directions
(e.g. example memristor.sp), one has to add the flag
'retraceplot' to the plot command.
6 years ago
Holger Vogt
14b154f5f3
Copy the scale vector as well and attach it to the data vector.
Remove it again when the graph is destroyed.
6 years ago
Holger Vogt
f518766c66
add a slight offset between y axis labels and grid
6 years ago
Holger Vogt
1919cf5c94
replace variable 'gridwidth' by 'xgridwidth'
6 years ago
Holger Vogt
c2cf4d7eda
required for reliable re-plotting, however still has the
return line bug no #472
6 years ago
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
6 years ago
Holger Vogt
8d986e50cc
remove the remains of the old xgraph program
that has not been supported for many years
6 years ago
Holger Vogt
32722ecc57
some missing brackets, typos
6 years ago
Holger Vogt
93a408598a
switch to colorarray in graph to string all color data,
one set per each graph.
If we are zooming or selecting a cutout, copy the
source graph's colors to the new graph. Transfer the
old graphs id to the new graph via graph->graphid.
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
a7aaac854f
enable color and font selection for X11:
Add graphics context gridgc for plotting the grids.
Enable rgbd:, input of color by RGB 0 ... 255
If no color1 (text/grid) is given,
select black or white according to backgrund color.
Error message, but no crash if font cannot be selected.
Enable separate linewidth selection for grid and graph.
6 years ago
Holger Vogt
800cd05f3d
new variable nolegend: with 'set nolegend' plotting of
the legend is suppressed.
6 years ago
Holger Vogt
fed7ef378f
add variable ticchar, allow an arbitrary character as ticmark
6 years ago
Holger Vogt
38bb89663d
replace old_x11 by HAVE_LIBXFT defined in configure
6 years ago
Holger Vogt
bef9c70e71
Prepare font selection and rotation only once per graph
in func X11_DefineXft().
Only 0 and 90 degree are supported.
6 years ago
Holger Vogt
3eb04b2fdc
improve on memory leaks
(not yet completely satisfying)
6 years ago
Holger Vogt
18f1e896f8
allow independent linewidth and gridwidth settings from within the .control section
6 years ago
Holger Vogt
3d009fef22
Variables xbrushwidth and gridwidth (to be set e.g. in
.spiceinit) allow setting separately the linewidths of the
graph (xbrushwidth) and the grid (gridwidth).
8 years ago
Holger Vogt
c9edc6fcb3
Add function returning the true string length in pixels.
May be called from outside of x11.c.
9 years ago
Holger Vogt
ca7c77315a
add missing üarameter to DevDrawLine for X11 and HPGL
9 years ago
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.
9 years ago
Holger Vogt
7690b64571
add missing declaration of old_x11
9 years ago
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