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.
4 years ago
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.
4 years ago
Giles Atkinson
6494befb2f
Request backing store for X11 plot windows. When supported by the X server
windows are redrawn vey quickly without replotting.
4 years ago
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.
4 years ago
Brian Taylor
8e75cad453
Fix missing initializer warning.
4 years ago
Holger Vogt
57f6d41e69
Enable math characters in vector (node) names for plotting
Replace ft_getpnames() by ft_getpnames_quotes().
4 years ago
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.
5 years ago
Holger Vogt
58bdf9e0e6
Remove 'goto end' and 'end:' statements.
5 years ago
Holger Vogt
d0da4bebd3
make variable 'dir' local
5 years ago
Holger Vogt
e91ec306ba
Remove some compiler warnings
5 years ago
Holger Vogt
1ba168ff30
clarify call to gnuplot on Linux/Cygwin
5 years ago
Holger Vogt
7b9d1fb74a
enable variable 'nolegend' for gnuplot
5 years ago
Holger Vogt
f61ea3aa96
if 'set nounits' is given, plotting of the units is suppressed
(they may be added manually to the y and x labels for SI conformity).
5 years ago
Holger Vogt
43f3fceb75
enable svg also for console app on Windows
5 years ago
Holger Vogt
f31ae08f0b
remove unused args
5 years ago
Holger Vogt
1607b3a21f
X11: Add a button for writing an SVG file to the plot window.
Update button texts.
Add a function hardcopySVG to write the SVG file, called by
clicking the SVG button.
5 years ago
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
a77b529928
set the locale to "C" locally, if shared ngspice
5 years ago
Holger Vogt
273b0fb4a3
fix a plotting bug with xlog axis and ylabels
5 years ago
Holger Vogt
5366f946eb
Remove more compiler warnings
5 years ago
Holger Vogt
238f8d393a
Suppress some compiler warnings
5 years ago
Holger Vogt
c43c6f6ca4
improve comment
5 years ago
Holger Vogt
36e2a9af4d
Add variable 'plainplot' to allow plotting without
function support, but with node names incl chatacters like + - /.
Flag to command 'plot' is renamed to plainplot.
Error message added if vector not found.
Example file added.
5 years ago
Holger Vogt
f0090508b0
If new parameter 'plain' is added to the 'plot' command,
all expression handling is skipped, vectors are plotting as is.
This allows nodes names with vectors like v(+vs) or /out
to be plotted without need resorting to double quotes.
5 years ago
dwarning
f12dfc6e7b
prevent garbage output of X11 plotting function
6 years ago
Holger Vogt
8ea8ddcc03
simplify the previous commit, single step warp if multibyte utf-8 character
6 years ago
Holger Vogt
f911758e4b
X11: re-enable writing text to a graph if libxft is used
6 years ago
Holger Vogt
a04c909a23
Don't add copied scale vector as new vector, but as new scale vector,
thus preventing crash after pushing X11 'Hardcopy' twice or
pushing 'quit' after 'Hardcopy'.
Scale vector was deleted two times, then crashimg ngsoice.
6 years ago
Holger Vogt
f03a32287f
If 'set ngbehavior=ki' in .spiceinit or flag 'kicad' on the plot line:
Add " around vector names containing character /
Numerical ivision in plot line then requires spaces around /
6 years ago
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